We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a shp file (also have a bunch of other files given to me: *.dbf, *.kml, *.prj, *.sbn, *.sbx, *.xml, *.shx. But the shp file looks the most useful) which maps out all the counties in a state. In Processing I want to be able to determine which county a latitude and longitude point resides within.
Comments
http://en.wikipedia.org/wiki/Point_in_polygon
Or use the classical "draw each region in one distinct color on an off-line graphics and check the color at the position in this graphics to see which region is touched" trick...
So how would I read a *.shp file in Processing? I want to be able to do something as following:
I want to be able to go through a dataset of coordinates and determine in which region they lie, and see how many coordinates lie in each county.
That's a quite different question! Have you tried to search the site (from Processing.org, not from this forum)?