An open geographic data format based off of JavaScript Object Notation
17
votes
3answers
3k views
How to store lines and polygons in JSON documents?
Looking at the increasing NoSQL movement and considering that databases like MongoDB offers a new perspective in flexible data storage for GIS. What is the best way to store lines and polygons in ...
12
votes
3answers
2k views
Converting SimpleGeo Places GeoJSON file to shapefile?
SimpleGeo has recently made their "Places" data set freely available which is GREAT, because now we can use it for our own purposes, even offline. So I went about downloading the 2GB dataset, which ...
11
votes
4answers
4k views
Create Vector Tiles for Polymaps
Ok, likely my bad for not making it to WhereCamp5280 and asking the FortiusOne geeks directly, but what's the process for creating GeoJSON 'tiles' for use in Polymaps?
The Population example over at ...
10
votes
2answers
1k views
polymaps & poly… polygons
I've been playing with Bing Maps + Polymaps recently.
It has become apparent that Bing is the only mapping resource available to Polymaps that includes satellite imagery. Is this true?
I am trying ...
10
votes
1answer
1k views
Convert GeoJSON to TopoJSON
Question
How do you convert GeoJSON data to TopoJSON?
Why
Most likely, because you want a smaller file size. From the TopoJSON docs:
TopoJSON eliminates redundancy, allowing related geometries ...
10
votes
2answers
2k views
How do dissolve polygons from shapefile using open source tools?
In my current project I'm visualizing data on a map representing some values for each administrative areas of a country. I'm given a shapefile of this country, which I'm converting to GeoJSON for use ...
8
votes
5answers
3k views
How to convert ArcGIS Server JSON to GeoJSON?
I'm creating a web map using Leaflet, and I want to be able to grab feature layers from our ArcServer. I have successfully been able to retrieve a feature class as JSON, but Esri's JSON objects don't ...
8
votes
4answers
677 views
Alternatives to ogr2ogr for loading large GeoJson file(s) to PostGIS
I have a 7GB GeoJson file that I would like to load into a PostGIS database. I have tried using ogr2ogr but it fails because the file is too big for ogr2ogr to load into memory and then process.
...
8
votes
2answers
559 views
Future for geospatial on App Engine?
2 years ago, this question was posted here at Gillies's blog, on date of 2009-05-15.
Future for geospatial on App Engine?
At that time there was no news relating to any apps of GIS web services ...
8
votes
2answers
3k views
ogr2ogr converting to shapefile - how to select feature types?
Shapefiles can only have one geometry type, but many other formats (kml, geojson) can have multiple types.
When converting to shapefiles, is it possible to to tell ogr2ogr to create multiple ...
8
votes
1answer
595 views
arcpy.geometry __geo_interface__ and AsShape() function: loss of precision and holes
I'm serializing my arcpy geometries as geojson so that I can 'hydrate' them back as geometries later and I'm having 2 problems in the cycle.:
PROBLEM 1: Precision
R0 = ...
7
votes
1answer
1k views
How to display geoJSON from an URL in a layer?
I am looking for some type of plugin or code which would allow me to add a geojson URL, define the areas to input the lat/long variables from the visible Qgis canvas map and call/render the results ...
7
votes
5answers
2k views
Is there an existing library for converting ArcGIS Features to Json?
Is there an existing library for converting ArcGIS IFeature types to and from Json/GeoJson?
7
votes
2answers
184 views
How to reduce the file size of GeoJSON data?
For my project I am trying to convert the tiger shapefile information for us states into GeoJSON format
However when I use the ogr2ogr tool the data file is about 20 MB. I have seen the geoJSON file ...
6
votes
1answer
1k views
How to Export Feature GeoJSON from PostGIS
I'd like to do a GeoJSON dump of a PostGIS table, but I want to export features (the geometry and the properties) not just the geometry. I've been digging into the ST_AsGeoJSON function but it looks ...
6
votes
2answers
215 views
Converting KML files for use with Python library Shapely
I am trying to get a KML-file (wijken.kml) into Shapely. The KML-file is validated against the proper XML schema, so I guess the input is correct.
Routes I have tried:
1) Converting to WKT or WKB ...
6
votes
5answers
348 views
GML, KML, GeoJSON - Speed rendering 3109 polygons?
I am working with Geoserver, serving U.S. Lower 48 counties to openlayers (3109 polygons - lots more vertices). The counties are loaded into a postgis database. I am curious about developer ...
6
votes
3answers
196 views
What is the intended Behavior of -skipfailures in ogr2ogr?
I am trying to run ogr2ogr to convert some geojson to shapefile. All is good until any of the geojson features have an invalid geometry (for example, the coordinate array of point geometry is empty).
...
6
votes
3answers
1k views
Trying to find a .NET GeoJSON library
I'm trying to find a .NET GeoJSON library which I can use to export my SqlServer2008 spatial boundaries (in binary format -> eg. STAsBinary()) from my .NET code to my HTML frontend to display on a ...
6
votes
1answer
124 views
How do I represent the whole Earth as a Polygon?
This is related to determining the interior of a Polygon.
My difficulty is that if I specify a Polygon covering the Earth going from East to West, it will still have a boundary along the ...
5
votes
2answers
592 views
Generating GeoJSON with Python
Hi I want to programatically create a GeoJSON file using polygons from a shapefile but adding attributes from my own application.
This is easily done for a shapefile:
def ...
5
votes
4answers
300 views
GeoJSON too bulky - what to do?
I am using leaflet.js to allow web users to select a region. Valid regions are US states, Canadian providences, and world countries (except for US and Canada). I constructed a shapefile myself using ...
5
votes
3answers
2k views
How to create a GeoJSON that works with D3?
I'm simply trying to convert a .shp file to a geoJSON format using:
ogr2ogr -f geoJSON output.json input.shp
After executing the command nothing seems to be wrong. Here's an excerpt from the ...
5
votes
2answers
1k views
How to Validate a GeoJSON
I have a small script that I'm using to generate GeoJSON data from a data format not currently supported by GIS software.
I would like to validate the output, but when I use ogr2ogr to read it, it ...
5
votes
3answers
692 views
GeoJSON Styling information
As far as I can see there is nothing in the GeoJSON standard to store styling information, i.e. line colours, thicknesses etc.
Am I missing something or is this just something that GeoJSON doesn't ...
5
votes
2answers
724 views
Converting MapInfo TAB to GeoJSON
Is there an easy way to convert MapInfo TAB files into GeoJSON?
I am working on a web-based mapping system which will use GeoJSON to transfer data. I also use MapInfo and would like to be able to ...
5
votes
1answer
97 views
Representing a TIN in GeoJSON
Regarding the GeoJSON representation of a TIN, are there
any specifications or
existing implementations I may not be aware of?
You could probably hack one together using the multipolygon ...
5
votes
2answers
568 views
Generating GeoJSON tiles from GeoDjango - basic overview?
I'm working with the glorious PolyMaps and I want to build a map similar to the population example.
I understand that this needs GeoJSON tiles. I have a GeoDjango database, with a bunch of County ...
5
votes
1answer
316 views
Exporting Arcgis Online content as georss or geojson? [duplicate]
There are number of sites talking about how to add a georss feed to an ArcGIS Online map (see silverlight and flex examples from esri_webapi), but I haven't located anything about exporting a georss ...
5
votes
1answer
477 views
Working examples of Leaflet/Polymaps with GeoJSON tiles generated from Tilestache using Shapefiles?
I'm looking to create choropleths using GeoJSON tiles generated from ESRI Shapefiles by TileStache(or similar), in either Leaflet or Polymaps. So far reading and drawing GeoJSON from both Leaflet and ...
5
votes
1answer
1k views
Setting up TileStache
I want to set up TileStache, but I'm new enough to the world of GIS to find the TileStache docs a bit impenetrable.
I've just about figured out that I need to run
tilestache-server.py -c ...
4
votes
3answers
81 views
How to insert a GeoJSON polygon into a PostGIS table?
I need to insert a polygon from GeoJSON to my PostGIS table. This is how the SQL query looks like.
INSERT INTO tablename (name, polygon)
VALUES
(
'Name',
ST_GeomFromGeoJSON
(
{
...
4
votes
4answers
2k views
Source for GeoJSON data for the US
Does anyone know of any good sources for US data (counties, congressional districts, etc) in GeoJSON format? Has anyone converted public-domain shapefiles/sources to GeoJSON that they would be willing ...
4
votes
1answer
612 views
Open a GeoJSON file with QGis
If I have a GEOJson file, for example a file named test.js with inside the following:
{ "type": "FeatureCollection",
"features": [
{ "type": "Feature",
"geometry": {"type": "Point", "coordinates": ...
4
votes
2answers
256 views
Where can I find GeoJSON resources files?
I'm looking for demographic information and various things, and most of the time data are available as CSV (my application use geoJSON format).
Shall I encode the CSV to geoJSON or is there a ...
4
votes
2answers
914 views
Beginner needs suggestions on map clicks and geojson
I'm a beginner with programming, and javascript. I went to the FOSS4G-NA conference and was very inspired to learn more. I'm trying to learn PostGIS, and have come across a very useful tutorial for ...
4
votes
1answer
462 views
What's up with the GeoJSON spec and CRS as a IRM?
I'm writing a web API to our GIS data, currently revamping our geocoding service. I'm creating the option for folks to specify the output type as GeoJSON so I'm trying to follow the spec. Our data is ...
4
votes
2answers
863 views
How do you convert OSM XML to geojson?
I want to take the XML output of a Xapi query and display it using leaflet or polymaps. How can I do that? Is there an easy way to convert XML to geojson
4
votes
2answers
794 views
GeoJSON/GeoCouch questions from a newb [duplicate]
I am new to JSON and GeoJSON and would like to start to use this but I am a little confused about some things. Perhaps you can help me out:
1) Is there a GeoJSON validator out there?
2) Is the text ...
4
votes
2answers
115 views
How to remove redundant points
We basically have points table including vehicle routes.In huge traffic conditions,devices collecting data on route may output redundant points where at any coordinate same points may repeat.We can ...
4
votes
2answers
244 views
How can I setup a simple web mapping system?
I'm new to mapping and GIS and I'd like to setup a mapping system to display informations on a map, I think the following could work but I'm not sure how good it is..
1- I store my data (lat, lng ...
4
votes
2answers
500 views
Using QGIS, how can I add a bounding box attribute?
I have a shapefile where I am exporting the features to GeoJSON objects with ogr2ogr based on a simple where clause. One thing that I would like to be included in the GeoJSON object is the 'bbox' ...
4
votes
1answer
186 views
Real time positioning of vector features using database
I am a newbie in GIS and want to implement something like a vehicle tracker wherein I will get a series of coordinates in a database.
I have no idea how to go about it, I mean what should my process ...
4
votes
1answer
130 views
binding nested arrays as geojson popups in leaflet
I am struggling with geojson popups in leaflet.js
I have nested arrays as properties for my features -
an example would be counts of fish caught at a location (not my actual project data!)
...
4
votes
1answer
692 views
Auto zoom on multipolygon with leaflet
I have a geojson with a multipolygon and I want to fit this multipolygon to the map. The map center only on one polygon not on the multipolygon.
Here is my script
var map = L.map('map',{ ...
4
votes
1answer
196 views
Generate tiles for google maps overlays
I am trying to show some information on Google Maps which would be in the form of translucent circle overlays. The problem is that some circles overlap, which results in increased opacity and blending ...
3
votes
1answer
342 views
Is there an XML equivalent to GeoJSON?
In my web application, I am retrieving geospatial data from a server backend (Java) to the browser frontend (JavaScript). I am considering two options of how to serialize the data in this ...
3
votes
2answers
52 views
Is there any efficient way to convert Geojson to WKT?
I want to use ST_GeomFromText() to load vector data to PostGIS. However, I don't know how to convert from Geojson type to WKT.
N.B. I know I can use OGR2OGR to upload the geojson directly, but I just ...
3
votes
1answer
337 views
How to avoid corrupt geometries when translating between TopoJSON and GeoJSON?
I'm trying to display some geojson vector features on a leaflet map.
The size of my GeoJSON is too big (25.4mb of data, 8.47mb gzipped), so I'm trying to use a TopoJSON format to reduce the size ...
3
votes
1answer
169 views
What is generally faster in OpenLayers: WMS or GeoJSON?
I work both with WMS (connection with postgres) and GeoJSON in OpenLayers. I have the impression that a WMS is faster when more feature need to be loaded. And I have the impression that GeoJSON is ...


