[OpenMap Users] Polygons with holes in 4.6.2

From: Alexander Sokolov <sokolov_at_system.ecology.su.se>
Date: Thu, 17 Feb 2005 23:58:33 +0100

Hi Don,

It seems the code to handle polygons with holes in the ESRIPolygonRecord
conflicts with the new default behaviour of the BasicGeometry and we
need to call
     ((OMAreaList)sublist).setConnectParts(false);

in the ESRIPolygonRecord.

// if (false && ispolyg) {
            if (ispolyg) {
                // There's a problem here with OMPolys that wrap
                // around the earth, putting them in OMAreaLists makes
                // them draw lines through the map. Need to sort that
                // out before enabling this code by removing 'false'
                // in if statement.
                sublist = new OMAreaList();
                
                ((OMAreaList)sublist).setConnectParts(false);

Please find modified file in the attachment

Regards
Alexander


> OpenMap 4.6.2 has been released and is available on at
> http://openmap.bbn.com. The main new features of this release are:
> Other changes:

> * Modified the ESRIPolygonRecord to include the donated code to handle
> polygon holes using OMAreaList. This code is disabled, however,
> because OMAreaList doesn't really handle shapes that go around the
> earth yet, and having this modification breaks world-level shapefile
> display. OMAreaList needs to be fixed before this code is enabled
> full-time.
>
> * Updated BasicGeometry to have the option of connecting shapes that
> are appended, instead of automatically not doing that. Updated
> OMAreaList to make that BasicGeometry append call with the connect
> parameter.





--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Feb 17 2005 - 18:20:41 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT