Ian Turton ha scritto:
> On 11/28/06, Szakacs, Balazs <[EMAIL PROTECTED]> wrote:
> 
>> If I'm trying to insert a multi polygon but I get an exception:
>> java.lang.IllegalArgumentException: geometries must not
>> contain null elements at …..
>>
>>
>>
>> It's happened only if the inner boundary linear ring touches the outer
>> boundary ring. I didn't find anything in GML document about the common point
>> of inner and outer rings.
> 
> That's definitely not allowed in which ever spec it is that defines
> Polygons - I forget which spec JTS (and thus GeoTools) implements for
> geometry.

Simple feature specification 1.1, and yes, if it's a single point, you
can represent the same geometry with a single outer loop, whilst
if it's multiple points, you can represent the same as a multipolygon
(two or more polygons touching) (see page 2-9 in the spec).

Cheers
Andrea Aime

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to