GPSFileDepot.com
 

News:

Welcome to GPSFileDepot!

Main Menu

County Lookup on Latitude, Longitude

Started by dhulting, April 28, 2009, 11:27:13 AM

Previous topic - Next topic

dhulting

Is there a way to get the county of a latitude, longitude pair?

tia

-Oz-

For what purpose, a web program or what?

The map i made the one above started out as polygons so I can easily pass that to you if that would help.
Dan Blomberg
Administrator - GPSFileDepot
GPS Units: Garmin Dakota 20, Garmin GPSMap 60csx, Nuvi 255W, Nuvi 250W, ForeRunner 110, Fenix 2, Tactix Bravo, Foretrex 401
See/Download My Maps!

dhulting

That would be awesome! I have sales people listed by counties, and I'm trying to pair them up with geocoded locations of prospects (lat/lon). County data is tough to extract. The polygon solution sounds promising.

maps4gps

If you do not have to many, Global Mapper will let you load up to 4 files (for free).  Open a State's county polygon file from Census and your coords as a .gps, csv or ascii file and match one at a time.  With a GIS program($$$$) the match could probably be done automatically.

-Oz-

county shapefiles (polygon): http://www.gpsfiledepot.com/uscounties.zip let me know once you've downloaded it so I can clear up the space...
Dan Blomberg
Administrator - GPSFileDepot
GPS Units: Garmin Dakota 20, Garmin GPSMap 60csx, Nuvi 255W, Nuvi 250W, ForeRunner 110, Fenix 2, Tactix Bravo, Foretrex 401
See/Download My Maps!

leszekp

One way you could handle this is to convert the geocoded coordinate pairs to a point shapefile with the free GIS MapWindow:

http://freegeographytools.com/2007/a-free-and-easy-shapefile-coordinate-converter

Then use the county polygon shapefile, the coordinate point shapefile, and MapWindow's Identity of Shapes With Polygon function to determine which county each point lay in:

http://freegeographytools.com/2009/assigning-attributes-from-a-polygon-shapefile-to-another-shapefile

Indrid Cold

Quote from: leszekp on May 10, 2009, 11:00:50 PM
One way you could handle this is to convert the geocoded coordinate pairs to a point shapefile with the free GIS MapWindow:

http://freegeographytools.com/2007/a-free-and-easy-shapefile-coordinate-converter

Then use the county polygon shapefile, the coordinate point shapefile, and MapWindow's Identity of Shapes With Polygon function to determine which county each point lay in:

http://freegeographytools.com/2009/assigning-attributes-from-a-polygon-shapefile-to-another-shapefile
Even better!

dhulting

Thanks a mil for the solutions! When I can get back to thisproject, I'll take these for a spin.