Why not read the GML LinearRing into a JTS LinearRing? Sunburned Surveyor wrote: > Well, it seems from a "robustness" perspective that it would be good > to read in linear rings, even if they are always represented > internally and exported as polygons. > > I will wait for other programmers to comment on what they think the > best course is, then I will implement the needed changes. > > SS > > On Thu, Nov 20, 2008 at 8:38 AM, Andreas Schmitz <[EMAIL PROTECTED]> wrote: > >> Sunburned Surveyor wrote: >> >> Hi, >> >> >>> I'm working on one of the OJ 1.2 bugs I selected for squishing and I >>> had a quick question. >>> >>> Is the GML reader in OpenJUMP supposed to read features represented by >>> a LinearRing? I thought a LinearRing was only used as an exterior or >>> interior boundary of a polygon. A user filed a bug report because a >>> feature geometry wasn't created from a LinearRing using JUMP's >>> GMLReader. But I'm thikning that this isn't a bug, but an improper >>> understanding of how feature geometries are represented in GML. A >>> feature should be represented by a polygon, not a linear ring. >>> >>> If GMLReader is supposed to construct a feature goemetry (polygon?) >>> from a linear ring, then I'll fix the bug. If GMLReader is not >>> supposed to do this, because it isn't the proper way to represent a >>> feature, then I will close the bug. >>> >> I think in GML2 this is allowed: >> >> http://schemas.opengis.net/gml/2.1.2/geometry.xsd >> >> One can always wonder why anyone would want it, but some people apparently >> have >> use cases for everything... The problem that is inherent here is, if you read >> the linear ring in as a polygon, what happens when exporting as GML again? >> Will >> it be exported as polygon or as linear ring? Is every linear ring also a >> polygon? I suppose not, as there are almost no restrictions on the form of a >> linear ring, but many (such as orientation of the rings, self intersections >> etc.) on polygons. >> >> I'm unsure on how to solve this problem though, the better you want to solve >> it, >> the more work it is obviously. >> >> Best regards, Andreas >> -- >> l a t / l o n GmbH >> Aennchenstrasse 19 53177 Bonn, Germany >> phone ++49 +228 18496-12 fax ++49 +228 1849629 >> http://www.lat-lon.de http://www.deegree.org >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.9 (GNU/Linux) >> >> iEYEARECAAYFAkklkpUACgkQ737OVr+Ru7pgtACg5bMBBMLlo3wNsiXw7D+BB0tz >> OG8AoJc+QpDAnPZ2NTA+K//fxBcsCHI7 >> =9hXg >> -----END PGP SIGNATURE----- >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> >> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > >
-- Martin Davis Senior Technical Architect Refractions Research, Inc. (250) 383-3022 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel