[OpenMap Users] Polygons with holes in 4.6.2

From: Alexander Sokolov <sokolov@system.ecology.su.se>
Date: Thu Feb 17 2005 - 17:58:33 EST

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@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Feb 17 18:20:41 2005

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