Closed GoogleCodeExporter closed 9 years ago
I am a newbi about to attempt this very operation in same projection. Any news
on
this would be great. Is there any example code? Thanks, Chris.
Original comment by c.seed%n...@gtempaccount.com
on 25 Feb 2010 at 4:42
this looks not a bug but a topology problem.
as fist step try to verify if your geometry is valid (i.e.call
Geometry.IsValid) and if
it isn't, call Geometry.Buffer(o) to force topology validation.
By the way, use the google group for any kind of support question:
http://groups.google.com/group/nettopologysuite
Original comment by diegogu...@gmail.com
on 25 Feb 2010 at 4:46
Thanks, I'll check it. The geometry is a result of a difference operation. How
can
Buffer(0) fix the topology and why Geometry.Difference makes it invalid?
Thanks again
Miri
Original comment by miri.vil...@gmail.com
on 25 Feb 2010 at 6:08
nice questions to answer in the googlegroup :)
Original comment by diegogu...@gmail.com
on 25 Feb 2010 at 6:45
The both geometries are valid. It's not a topology problem. I also called
Buffer(0)
but it didn't help. I got the same exception.
What do you think the problem is?
Thanks
Original comment by miri.vil...@gmail.com
on 1 Mar 2010 at 6:46
Hello
A attach a test case where one of the geometroes were actually not valid.
Geom.Buffer
(0) maked it valid. Nut still union failed and I got the exception.
Attached test case
Thanks Miri
Original comment by miri.vil...@gmail.com
on 4 Mar 2010 at 10:07
Attachments:
thanks for the unittest, I take a look as soon as possible
Original comment by diegogu...@gmail.com
on 4 Mar 2010 at 10:37
Just one thing. Instead const string wkt2 =
"4326@POLYGON ((34.89504284421 30.4639917561117, 34.8974881525283
30.4235194508906, 34.8362388038152 30.4216169690234, 34.8683403196915
30.4762662772922, 34.89504284421 30.4639917561117))";
write
const string wkt2 =
"POLYGON ((34.89504284421 30.4639917561117, 34.8974881525283
30.4235194508906, 34.8362388038152 30.4216169690234, 34.8683403196915
30.4762662772922, 34.89504284421 30.4639917561117))";
- remove SRID and @. We inherited from Writer and Reader to add SRID.
Thanks
Miri
Original comment by miri.vil...@gmail.com
on 4 Mar 2010 at 6:38
I've tested your code and it works using trunk version:
http://code.google.com/p/nettopologysuite/source/browse/trunk/NetTopologySuite.S
amples.
Console/Tests/Various/Issue58Tests.cs?spec=svn492&r=492
please take a look and verify if I've made some mistakes.
Original comment by diegogu...@gmail.com
on 5 Mar 2010 at 8:20
Hi attached file with test that fails and throws an exception on Union
Thanks
Miri
Original comment by miri.vil...@gmail.com
on 17 Mar 2010 at 6:33
Attachments:
as expected, it works using the trunk
Original comment by diegogu...@gmail.com
on 17 Mar 2010 at 7:53
10X, Maybe I am using older version.
I downloaded version 1.7.3 build 416 from March 2009. Is this the latest
version for
download?
Miri
Original comment by miri.vil...@gmail.com
on 17 Mar 2010 at 7:10
try with the attached release
Original comment by diegogu...@gmail.com
on 17 Mar 2010 at 10:22
Attachments:
Thanks again I'll try it
Miri
Original comment by miri.vil...@gmail.com
on 18 Mar 2010 at 2:41
Original issue reported on code.google.com by
miri.vil...@gmail.com
on 23 Feb 2010 at 6:21