I'm getting odd result attempting to select points by an input ring geometry. It's actually selecting all of the points that fall outside of the input ring!
I'm missing the obvious here.
James,
That sounds like your point order for the ring is counter-clockwise then.
I tried running the ring into the Geometry service simplify task and it didn't seem to format the point order correctly.
Ah. Maybe I can just run the ring thru the Geometry service after I get it. This is a python implementation but it's just another REST request.
that is strange that you are querying a ring that is counter-clockwise. In the JS API you can use the Polygon class to test for clockwise and then use Geometry service simplify to ensure it is. But the easier way then the Geometry service is to just use the JS Array reverse method.
Robert -- I think I will take this over to the Python forum section. You've identified the issue and I've marked your post correct answer.
Thanks!
I'm not sure how best to handle this. If I query an existing map service and get a ring, is there any way to guarantee its point order?
Yes that sounds like the issue. I will look to see if there's any sorting problems I am having.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.