0

If I have census data with TigerGIS/PostGIS is it possible to get back all of the long/lat coordinates for the certain census tract? I want someone to be able to type in an address or census tract, and have it draw a shape on Google Maps around the corresponding census tract.

If I understood this correctly, Google Maps can highlight regions (draw shapes on the map) if I feed it a set of long/lat coordinates? I just need one census tract to be displayed.

Would that be the right line of thinking for solving this? Any suggestions to do something like this?

  • Yes, you are looking for data layers – John Powell Jun 30 '17 at 14:54
  • Thanks that is great - what is the format I need to give Google Maps? I assume I need some function to run on the PostGIS database. Am I returning binary spatial data, or am I just returning long/lat coordinates in an array? Apologies if this is a dumb question! – NullHypothesis Jun 30 '17 at 15:35
  • a wms could do this – Ian Turton Jun 30 '17 at 16:45
  • @iant if I wanted to avoid the WMS route, I should be ok though using the database directly to Google Maps right? I only need to show it for a certain region (not have it update in real time) – NullHypothesis Jun 30 '17 at 17:53
  • Depending on how complex your tracts are it might work but a WMS is easy to do and quick. – Ian Turton Jun 30 '17 at 17:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.