How S2Geometry Normalize Rectangle span 180 meridian?

29 views
Skip to first unread message

Chao Feng

unread,
Aug 27, 2019, 10:00:03 PM8/27/19
to s2geometry-io
Hello S2Geometry team,

Does S2Geometry have solution to Normalize Rectangle span 180 meridian?

For other GIS spatial library, Normalize method divide the rectangle into 2 sub-rectangles by the meridian,could you advice what method I can use to solve 180 meridian  latitude issue?

Thank you in advance,

-Charles

Jesse Rosenstock

unread,
Aug 28, 2019, 3:47:35 AM8/28/19
to Chao Feng, s2geometry-io

--
You received this message because you are subscribed to the Google Groups "s2geometry-io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s2geometry-i...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/s2geometry-io/1d61a61d-8b50-41db-9da9-43029cf10bf2%40googlegroups.com.

Charles Feng

unread,
Aug 28, 2019, 5:12:39 PM8/28/19
to s2geometry-io
Reviewed test case  written in C++, observed  the method MakePointOrDie  is not implemented  in C# version, compared s2LatLngRect.Contains & S2Polygon.Contains , they work differently, I used same vertices to build a s2Polygon object and s2LatLngRect object,

Execute Contains method against same point object, S2polygon.contains return true, but s2LatLngRect.Contains return false,
can you kindly  advise  whether it works as expected or these two types designed for different purpose? 
Reply all
Reply to author
Forward
0 new messages