MakeValid?

746 views
Skip to first unread message

FredL

unread,
Apr 21, 2011, 6:00:32 AM4/21/11
to NetTopologySuite
Hi,

Is there a technique to make a Geometry valid using NTS? For example,
if IsValid return false, what technique do you use to make a Geometry
valid? I've noticed that Microsoft's spatial library provides this:
http://msdn.microsoft.com/en-us/library/bb933835.aspx and I think the
latest version of Postgis has it too - any ideas?

Thanks.

Diego Guidi

unread,
Apr 21, 2011, 6:09:46 AM4/21/11
to nettopol...@googlegroups.com
the suggested way to do this (as suggested often also in JTS mailing list) is to call Buffer(0)

John Diss

unread,
Apr 21, 2011, 6:12:55 AM4/21/11
to nettopol...@googlegroups.com
Buffer(0) should work...

FredL <fred.l...@gmail.com> wrote:


Hi,

Thanks.

--
You received this message because you are subscribed to the Google Groups "NetTopologySuite" group.
To post to this group, send email to nettopol...@googlegroups.com.
To unsubscribe from this group, send email to nettopologysui...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nettopologysuite?hl=en.

FredL

unread,
Apr 21, 2011, 9:58:48 AM4/21/11
to NetTopologySuite
Many thanks - I'll give it a go.

On Apr 21, 11:12 am, John Diss <john.d...@newgrove.com> wrote:
> Buffer(0) should work...
>
> FredL <fred.leef...@gmail.com> wrote:
>
> Hi,
>
> Is there a technique to make a Geometry valid using NTS? For example,
> if IsValid return false, what technique do you use to make a Geometry
> valid? I've noticed that Microsoft's spatial library provides this:http://msdn.microsoft.com/en-us/library/bb933835.aspxand I think the
Reply all
Reply to author
Forward
0 new messages