18671

GeoJSON Coordinates?

Question:

I have a GeoJSON file that I am trying to process in order to draw some features on top of google maps. The problem, however, is that the coordinates are not in the conventional latitude/longitude representation, but rather some large six/seven figure numbers. Example:

{ "type": "FeatureCollection", "features": [ { "type": "Feature", "id": 0, "properties": { "OBJECTID": 1, "YR_BUILT": 1950.0 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 772796.724674999713898, 2960766.746374994516373 ], [ 772770.131549999117851, 2960764.944537505507469 ], [ 772794.544237494468689, 2960796.93857 ], [ 772810.48285000026226, 2960784.77685 ], [ 772796.724674999713898, 2960766.746374994516373 ] ] ] } }, ..... ] }

I have been reading about the different coordinates systems, but being new to this I have not reached any where. Ideas?

Answer1:

If your coordinate source is in the United States, most likely the coordinate system is some variation of State Plane or UTM. Otherwise, it's some other coordinate system that works best for the country of origin. There are literally thousands of coordinate systems, and it can be difficult to guess which you have based on just the coordinates.

You'll need to find out from the data provider what the coordinate system is, and then use an API in your programming language of choice to reproject the points. <a href="https://trac.osgeo.org/proj/" rel="nofollow">proj4</a> is a popular one, with bindings in many languages, and it has a port to Javascript called <a href="http://trac.osgeo.org/proj4js/" rel="nofollow">proj4js</a>.

Recommend

  • Delete objects from a JSON file using a key obtained from a list of strings in Python
  • Reading a GeoJSON file into Rails/Leaflet
  • Draw SVG image on paths but as big as needed
  • Turf.buffer and a draggable marker
  • Zoom after search using autocomplete
  • Result discrepancy between cv.MinAreaRect2 and ArcGIS (GIS software) . Possible bug?
  • Why can't I draw a complete circle with arc() in Three.js?
  • moving particles on face of imported *.obj in threejs
  • Deserializing JSON to a .net base class with JSON.net
  • Stored function with temporary table in postgresql
  • BSON::ObjectId vs Mongo::ObjectID
  • Polygon infowindows in Gmaps4Rails
  • IE memory leak and eval with jQuery
  • How to remove Object from array using mongoose
  • FindAndModify, return array of Objects
  • Python : How to center Label in tkinter window
  • What does this mean? (Google Maps API)
  • ClipperLib Clip multiple squares with rectangle produces 1 result
  • Shapely intersections vs shapely relationships - inexact?
  • Removing Duplicate Geometries
  • Does CSS support inheritance [duplicate]
  • Dynamically load css stylesheet and wait for it to load
  • Configure Spring's MappingJacksonHttpMessageConverter
  • BeautifulSoup difference between findAll and findChildren
  • Setting the run time properties on SpringApplicationBuilder()
  • How to create CGPath from a SKSpriteNode in SWIFT
  • Xstream to map “choice” elements of XML
  • C# program and C++ DLL compiled for 32-bit system crash on 64-bit system
  • WPF Visiblity Binding to Boolean Expression with multiple Variables
  • Spring Cloud Microservice Architecture Confusion
  • How does document.ready work with angular element directives?
  • Not able to aggregate on nested fields in elasticsearch
  • gspread or such: help me get cell coordinates (not value)
  • How do I exclude a dependency in provided scope when running in Maven test scope?
  • Abort upload large uploads after reading headers
  • Q promise. Difference between .when and .then
  • java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder on below Lollipop versions
  • What is Eclipse's Declaration View used for?
  • C# - Getting references of reference
  • how does django model after text[] in postgresql [duplicate]