An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

3
votes
0answers
125 views

GeoJSON support in ArcObjects 10 .NET

i am currently trying to build a geoprocessing application using OpenLayers and ArcObjects, I have some features that user draws on openlayers and i need to send these features to arcobjects for ...
0
votes
1answer
1k views

Alternate colors of GeoJSON linestring segments in OpenLayers?

I am rendering a vector linestring via GeoJSON on top of an OpenLayers map. I'd like to alternate the styling between two slightly different shades of blue, such that the colors alternate from one ...
2
votes
2answers
464 views

how we create line between two cordinates on polymap?

I am working on d3 and polymaps, I plot map and create circle on the given latitude and longitude which retrieves from the JSON file but now I want to connect those circles with line. I tried to do it ...
2
votes
4answers
4k views

How to convert SHP into GPX or JSON?

I would like to convert the tree inventory shape files of London (Canada) into a GPX file and if possible into a JSON file. You can download the archive from their Open Data website. It contains the ...
4
votes
1answer
724 views

Why are GeoJSON coordinates different exported from QGIS vs. ogr2ogr?

I have a shapefile with a Google Mercator projection (900913) that I need converted to GeoJSON. I need to do this on a regular basis amongst other things so I wrote a shell script to do it using ...
3
votes
1answer
487 views

Is it valid to have a properties element in an geoJSON featureCollection?

Is it valid to have a properties element with a featureCollection-element as parent? This is, according to geojson.org valid: { "type": "FeatureCollection", "features": [ { "type": ...
4
votes
2answers
1k 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 ...
2
votes
1answer
420 views

How can I convert geoJSON data to GPX format

I want to know how I can convert geoJSON data to GPX format.
4
votes
3answers
2k views

MySQL to GeoJSON - Formatting Issue

I'm trying to make a select on a mysql table and then write it out to a geojson file. I'm getting close but there are a few issues. Here's what I have so far: <?php require("dbinfo.php"); // ...
1
vote
0answers
45 views

How to load GeoJSON files directly onto QGIS? [duplicate]

Possible Duplicate: Plugin or script to get QGIS to display geoJSON in a layer Is there a way to do this? Or is there a way i can put it onto PostGIS and then load it onto QGIS? I actually ...
2
votes
1answer
1k views

Polymaps Project + Geojson + D3

How are you doing ? I am Mehul Nahar working on a project which is similar to http://www.tableausoftware.com/learning/examples/gpa-analysis. I have used Polymaps platform, where I have used cloudmade ...
9
votes
3answers
2k 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 ...
1
vote
1answer
591 views

Vector layer won't move as window resizes in Chrome

I have a GeoJSON layer that I am treating as a javascript object in my openlayers map. When I use IE or Firefox, everything works fine. However, in Chrome, as I resize the window, the GeoJSON layer is ...
3
votes
1answer
2k views

OpenLayers & GeoJSON files

After some hunting, it seems that if I have an a geojson file, I NEED the data and map to be on a server in order to view this in OpenLayers because of the protocol class. I saw an example where I can ...
1
vote
0answers
132 views

How to show an array of 2d points/polygons in Polymaps (Cartesian coordinate system)

I need to display these 2d points/polygons (Cartesian coordinate system) on Polymaps with GeoJson layer. I do not use the other layers. Do I need to convert xy coordinates to the lat lon? If so, how? ...
5
votes
1answer
153 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 ...
10
votes
5answers
2k 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
2
votes
1answer
4k views

OpenLayers - a GeoJSON layer

OpenLayers can parse GeoJSON in order to create an array of features. So, it is possible to create a layer from GeoJSON input by simply parsing it and then adding the features to a new vector layer. ...
1
vote
3answers
2k views

Trouble Displaying GeoJSON file in OpenLayers

I am noobie to OpenLayers and can not for the life of me figure out how to display a geoJson file. This seems like it should be easy but I have been banging my head for a day. I'm sure I am missing ...
2
votes
1answer
1k views

Openlayers dynamic filtering/styling of geojson layer

I'm working with Openlayers and overlaying a geojson file representing species type over OSM. I have an HTML form that allows users to select a species type and I then need to filter the geojson layer ...
9
votes
3answers
3k 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 ...
4
votes
1answer
439 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
4answers
569 views

Can ArcPy's AsShape be used with GeoJSON FeatureCollection of Polygons with Labels?

The AsShape documentation provides examples that work very well. However, I have been given what I believe to be valid GeoJSON that is a FeatureCollection of two polygons each with a Label. It ...
1
vote
2answers
841 views

Convert ArcGIS Javascript api Geometry Object to GeoJson [duplicate]

Possible Duplicate: How to convert ArcGIS Server JSON to GeoJSON? How to convert ArcGIS Javascript api Geometry Object to GeoJson using Javascript?
1
vote
1answer
296 views

Polymaps / Tilestache tiling grid mismatch

I have set up a basic PostGIS / Tilestache / gunicorn / nginx / Polymaps test environment, rendering my dataset from PostGIS to GeoJSON and shipping it out to be rendered in Polymaps. That works ...
4
votes
2answers
1k 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' ...
0
votes
1answer
2k views

Building Floor Plan map using OpenLayers and json

How to show map of building floor plan using OpenLayers and json. moreover, i want to know that how to change features dynamically with zoom based from json files. Let's take example, Initial the ...
2
votes
3answers
545 views

How to create a efficent linestring out of geography points using postgis

I'm trying to create a linestring out of geography points. At the moment I'm doing it like this: select ST_GeographyFromText(ST_Makeline(a.record_point)) from ( select (record_point::geometry) from ...
2
votes
1answer
977 views

How to render GeoJSON tiles from Tilestream for polymaps?

Have been using polymaps successfully till now. Need to generate GeoJSON tiles for Canada Provinces. Found Tilestream and got it working with Tilemill. Is there a way I can make Tilestream hand ...
7
votes
4answers
6k 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 ...
9
votes
1answer
3k 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 ...
0
votes
1answer
2k views

Data request to GeoServer: “Could not determine geoserver request from http request GET /geoserver/ows?service=WFS HTTP/1.1”

I am using ExtJS ajax to send a data request to geoserver (which is in another domain different from web server), codes are as follows: Ext.Ajax.request({ //send data request url : ...
1
vote
1answer
554 views

How to update GML layer without reloading local file?

I set up a GML layer with local GeoJSON file as data source: veclayer = new OpenLayers.Layer.GML("vector", "localfile.json", { format: OpenLayers.Format.GeoJSON, strategies: [new ...
9
votes
4answers
1k 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. ...
4
votes
1answer
1k 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 ...
10
votes
2answers
2k 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
3answers
367 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). ...
13
votes
3answers
4k 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 ...
10
votes
2answers
4k 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
1answer
2k 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 ...
6
votes
2answers
827 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 ...
13
votes
9answers
8k 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 ...
4
votes
2answers
1k 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 ...
3
votes
1answer
917 views

OpenLayers GeoJSON Data Store

Background: I have a single geoJSON data object that backs multiple Vector Layers of its features. I do this because the feature data has many attributes and can be presented in many different ways, ...
8
votes
1answer
946 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 = ...
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 ...
19
votes
3answers
5k 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 ...
8
votes
3answers
2k 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 ...
1
vote
2answers
325 views

OpenLayers data moves when panning map

I have an OpenLayers map. On to this I have loaded a GeoJSON file. When I pan the map the GeoJSON data moves relative to the basemap. Surely this isn't right! Can anyone shed some light no why ...
3
votes
3answers
982 views

Definitions and limitations of MapInfo TAB file objects

I am working on a MapInfo plugin to convert MapInfo files to GeoJSON files. I am having trouble matching up the object types of the two formats. Each GeoJSON object type is described in the ...