Re: [OpenMap Users] follow-up...EsriShapeExport class to export a graphiclist of EsriPolylines

From: Don Dietrick <dietrick@bbn.com>
Date: Thu Nov 20 2003 - 21:32:21 EST

Hi Martin,

According to the Shape specification, "a polygon consists of one or
more rings. A ring is a connected sequence of four or more points that
form a closed, non-self-intersecting loop."

I think the code is working according to the specification. If you
want to force your polygons to be polylines, I'd pass the
EsriPolylineList directly to a ShpOutputStream.

- Don

On Nov 20, 2003, at 6:04 PM, Martin Chapman wrote:

> Don,
>  
> I think I figured out why my polyline becomes a polygon with
> EsriShapeExport.  It happens because my first and last point in the
> lat/lon list are the same thus, the isPolygon() function of the
> EsriShapeExport class returns true and it thinks that my polyline is a
> polygon and then sets the shapetype bit of the shapefile to polygon
> instead of polyline.  Is there way to trick the class into thinking
> that it is a polyline?  Really, the EsriShapeExport isPolygon()
> function should do a runtime type check to determine if the class is a
> point, line or polygon I think.
>  
>  
> Martin Chapman
> Cell 303-885-1936
> Office 303-660-3933 x226
> mchapman@sanz.com
> http://www.sanz.com
>  
>  

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Nov 20 21:31:10 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT