[OpenMap Users] shapefiles - getting the outerRing

From: C S <usmsci_at_email.domain.hidden>
Date: Thu Nov 18 2010 - 10:26:41 EST

Hi again all,

  I was wondering if there was a way to retrieve information about the outer ring of each shapeRecord of a shapefile. It doesnt look like ESRIRecord or any of its subclasses offer any way to look into each record of a shapefile and give you info about clockwise or counter-clockwise orientation of rings. below is a small snippet of code for reference. I have done a shpdump on the shapefiles as well and there doesnt seem to be an indicator of which was would be the outer ring.
    
  shapeFile = new ShapeFile(shpInputfile);
  shapeCount = dbf.getRowCount();

for (int i = 1; i <= shapeCount; i++) {
ESRIPolygonRecord shapeRecord = null;
        
shapeRecord = (ESRIPolygonRecord) shapeFile.getNextRecord();

for (int polyIndex = 0; polyIndex < shapeRecord.polygons.length; polyIndex++) {
    ESRIPoly.ESRIFloatPoly poly = (ESRIPoly.ESRIFloatPoly) shapeRecord.polygons[polyIndex];

.......

}

      

--
[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 18 10:36:37 2010

This archive was generated by hypermail 2.1.8 : Thu Nov 18 2010 - 10:36:38 EST