I can download statewide NY senate districts using ...
When I query lat/lng against the api... I get zero results.
But when I map the statewide dataset and map the lat/lng I can see I should have an intersect. Can someone tell me why this intersect returns no results when the point falls within zone on the map???enter image description here
1 Answer 1
The spatial reference of the service you are querying is different from the one one of your point (EPSG 3857 vs EPSG 4326). You are trying to specify a geographic point in a projected coordinate system and therefore you get no intersection. However, you can specify the spatial reference of your point in the query with the inSR
parameter. If you specify inSR=4326
in the query url you will get a result. Check the fourth line of the following url versus the fourth line of your query. inSR
is empty in yours.