I am uniformly generating points within the contours of Manhattan, using this geojson file.
I plotted the result using Bokeh to make sure that my output was looking good, and this is what I got:
...so there is no east side?
Here is the full code.
The only ideas I have about this are:
- My point-in-polygon calculations are somehow incorrect, in this weirdly specific way.
- The GeoJSON definition file crosses itself over somehow and causes an invisible hole in itself (kind of like what you'd get with an SVG).
I need help debugging this, it's such a weirdly specific error and I'm not sure what to blame.
Here is a MWE: https://gist.github.com/ResidentMario/d5e67b6c94988fdc168f.
Here is another point cloud using a much simpler GeoJSON representation of Manhattan:
Here are the diagrams, from the MWE: