If you're using 1.10 then I'm puzzled by what you're seeing.
Can you post code that exhibits the problem?
John Cartwright wrote:
Thanks for the prompt reply and sorry I omitted the version - 1.10.
--john
Martin Davis wrote:
What version of JTS are you using?
"POINT(1,2)" should not parse as correct WKT. And for several
versions now isValid() has checked for Coordinates with NaN ordinate
values.
John Cartwright wrote:
Hello All,
I notice that if I create a invalid geometry using a WKT string like
"POINT(1,2)", the resulting Geometry still returns true on a call to
it's isValid() method. point.getCoordinate.y in this case shows NaN.
Is the isValid procedure supposed to do this? Is there another way to
determine whether a Geometry does not contain NaN or a better way to
protect against invalid WKT strings?
Thanks!
--john
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel
--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel