An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

0
votes
0answers
5 views

How to plot a Start and Stop point while drawing a line in CartoDB?

My visualization plots a bunch of lines on a map using CartoDB using a Start coordinate and a Stop coordinate. My data contains geojson formatted coordinates (for each row) I want to show a "Start" ...
0
votes
0answers
25 views

Why can't gdal save CRS information to GeoJSON?

gdal fails to add CRS definitions to GeoJSON files in some cases. Try this, for example, from any linux terminal that has gdal installed: # download the data wget ...
0
votes
0answers
19 views

error converting shapefile to geoJSON with Ogre online tool

I am using on online tool built with ogr2ogr to convert shapefiles to geoJSON: http://ogre.adc4gis.com/ It's worked well except for one shapefile, and I can't see why... The shapefile has only six ...
0
votes
0answers
59 views

OpenLayers and GeoJSON

Recently I started learning Openlayers 2x and I've been struggling for a while now with a GeoJSON and it's projections. So, here is the deal; I successfully added wms layers from ( ...
1
vote
1answer
14 views

QGIS geojson vector layer

When I add vector layer to QGIS using geojson protocol, data form server are being displayed. Problem is that every change of map extent (pan, zoomIn, ZomOut) is causing request for same data again. ...
1
vote
1answer
37 views

How do I make my map use a set of coordinates

Right a little background. I've made a custom google map with the google map api which has a few functions that work well within it - one specifically is limiting the user on what they can view within ...
-1
votes
0answers
18 views

Change Coordinates in GeoJSON with geojson-jackson

I have .geojon files that look like this: { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", ...
0
votes
1answer
32 views

ogr2ogr convert DXF to GeoJSON with defined geometry

I trie to convert a DXF file into a GeoJSON file with: ogr2ogr -f 'GeoJSON' -sql "SELECT * FROM entities WHERE layer = 'geom_test'" test.json dfxtest.dxf Is it possible to convert only geometries ...
1
vote
3answers
33 views

How can I create GeoJson map from OSM Data

I am trying to build a map of countries in the some countries in Europe (Spain/France/Portugal). What is the best way to build such map: Should I look for shp files, then concatenate them. Is ...
0
votes
0answers
15 views

GeoJSON: line connecting features

How do I create a line connecting Features in GeoJSON? I hope to avoid having to re-enter coordinates for the polylines I use to connect the Features separately...
1
vote
1answer
33 views

Click Events with Leaflet and geoJSON

How do I attach a click event to a geoJSON that then executes an Ajax function when clicked. I looked into onEachFeature but that executes when the geoJSON is loaded, not when clicked, thus executing ...
-1
votes
2answers
64 views

Convert shapely polygon coordinates

I am trying to work with a shapefile using shapely, fiona and python. The original coordinate system is in latitude and longitude that I am trying to convert to state plane system. So I want an ...
1
vote
1answer
57 views

Convert Multipolygon Geojson to multiple geojson polygons?

I see a lot of questions going from Polygons to MultiPolygon, but is there some easy way to go the other way around? It would also be useful to preserve the attributes from the MultiPolygon to apply ...
1
vote
1answer
37 views

GeoJson based on shapefile : large coordinates

I'm quite new to GeoJson (for use with d3), and in need of some help. When I convert my available shapefile (.shp) with ogr2ogr to a GeoJson-file, the resulting coordinates are very big numbers (in ...
5
votes
1answer
186 views

Conventions for returning GeoJSON via an API

I have a queryable API that returns one or more GeoJSON FeatureCollections. Currently the response looks something like this: { "success": { "data": { "layer1": {"type": ...
0
votes
2answers
46 views

Change marker color based on GeoJSON filter in Leaftlet

This is what I would like to do: Display all features of a GeoJSON file using Leaflet. Provide a text box where a property can be entered, if any of the GeoJSON properties match with what is entered ...
1
vote
0answers
30 views

Read and Write data with Open Layers3

I'am currently using postGIS/geoDjango/OL3 I need the capability for a user to drop a point on the map, and store that in my database. When any user returns, that point will be shown on the map. ...
0
votes
2answers
92 views

Using AJAX to run PostGIS SQL statements and display results via GeoServer

I am learning Web GIS, and I can't find a good example that gives a big picture of a web interface of running spatial analysis using PostGIS. What I am looking for is a graphical/GIS version of ...
0
votes
1answer
57 views

Geopandas/folium map not displaying

Good afternoon, I'm trying to use a combination of geopandas, pandas and folium to create a polygon map that I can embed incorporate into a web page. For some reason, it's not displaying and wonder ...
1
vote
2answers
38 views

GeoJSON from OpenStreetMap with bike routes of a city only?

How can I get (if it's possible) a GeoJSON from OpenStreetMap with bike routes of a city only? I have to say that I'm pretty new with the all the map/geo language. But as a developer I'm ...
1
vote
0answers
40 views

Extract polygons of PNG with GdalOgrInJava

I have PNG pictures with polygons of different colours on them. What I plan to do is to extract these Polygons using the polygonize function (see here) Then I will try to encode the polygons in ...
0
votes
1answer
48 views

Leafletjs Invalid GeoJSON object

I am using the following coming back from a socketio connection: L.geoJson(data.streets, { onEachFeature: map.onEachFeature }); It's throwing the following error: Invalid GeoJSON object. My ...
-1
votes
1answer
47 views

export from json file the coordinates

Hello i need help i cant export and print the coordinates , the format of json is came from a query in a database the format is ...
2
votes
1answer
54 views

How to get a table from a leaflet map?

I have a map Here based on leaflet JS and the layers are geojson. I would like to get a table at on another div when I click on each layers. How would I be able to do that? Thanks
2
votes
1answer
31 views

Openlayers: Parsing GeoJSON-properties results in a “data”-property in feature

I'm using OpenLayers 2.12. I try to load a GeoJSON-response from server and (nearly) everything works fine: but the properties contained in the GeoJSON-response ("nummer" and "befund" below) were ...
1
vote
2answers
71 views

Open Source solution to batch process shortest distance between points along road networks?

I have the locations geocoded (a fairly small dataset, ~200), but I haven't found a straightforward way to load these data into QGIS and perform network analysis between nodes. Any suggestions? ...
1
vote
1answer
51 views

Problem with Leafletjs and GeoJSON

I am new to Leafletjs and I am trying to figure out how to plot a polyline on a map using a geoJson object. I've gotten as far as getting a map, making it centered on a given lat/long and setting the ...
1
vote
2answers
82 views

Reproject GeoJSON in OpenLayers 3

I'm basically trying (and failing) to replicate this in OpenLayers 3. I've set up a fiddle here: http://jsfiddle.net/vu8ecy8v/5/ I'm under the impression that OpenLayers will reproject a GeoJSON ...
2
votes
0answers
59 views

Developing workaround to arcpy.asShape truncating all values to 3 decimal points?

I've read a few questions\answers about converting a GeoJSON Shape into an ESRI Object. Unfortunately most of the answers pointed to decoding the dictionary's manually. Im a bit more lazy ^_^ The ...
1
vote
1answer
70 views

How can I convert GeoJSON with multiple Polygons and MultiPolygons into single MultiPolygon?

Is this even possible? I have a GeoJSON file with multiple polygons and multipolygons, and I need to set styling on them (in Leaflet.js). I'd like to create a single, large MultiPolygon from the ...
2
votes
1answer
41 views

Why is my GeoJSON polygon only displayed as a line?

I'm trying to convert a simple shapefile drawn in GIS to GeoJSON. However, it's not working and I don't know why. The file converts with QGIS (Save As), but the http://geojsonlint.com/ doesn't plot ...
1
vote
0answers
27 views

Export isochrones to images

I'm looking for automated/scripted ways to generate PNG images based on GeoJSON multi-polygons. I have multiple polygon isochrones for a given starting point, e.g. 10 minutes, 15 minutes, 30 minutes, ...
0
votes
0answers
68 views

GeoJSON and php i cant visualy roads from postgres database

I am make a json file with geometry MultiLineString from the posgresql but when i try to load the file in map.data.loadGeoJsonis not visually the roads but if i take the link from google api example ...
1
vote
0answers
80 views

How to get feature on vector layer in Openlayers 3?

I'm try to get feature of a vector layer, but I'll have 3 or more Vector layer. When I click the map, I didn't get the feature. My vector layer definition; var vectorAltAlan = new ol.layer.Vector({ ...
1
vote
1answer
70 views

Find all street names or addresses within a polygon

I have a geojson list of lat/long coordinates that make up a custom polygon of a section of my county. Ideally I would like to be able to find all the addresses that are within the polygon boundaries. ...
1
vote
1answer
32 views

openlayers 2 can't close popup

I have a map with points from GeoJSON file. I created a default style and a select style for these points. I created a popup with attributes from GeoJSON when clicking on a point. All works fine, ...
0
votes
1answer
29 views

How can I load JSON into GRASS?

I have received rainfall data in JSON format. I want to load the data into GRASS. Sample JSON output: ...
2
votes
0answers
43 views

Using OpenLayers' Refresh strategy for GeoJSON

I am trying to use the Refresh Strategy reading a GeoJSON file in OpenLayers, however it doesn't work (but it works perfectly using for instance .Fixed() strategy), here is my code: var ...
3
votes
1answer
46 views

Troubleshooting with Tiger for d3 — is this the wrong projection? Why's it look like this?

UPDATE: Solved, sort of … I downloaded the file afresh and tried feeding it through ogr2ogr and topojson again … and wouldn't you know … after a while it worked. I think I was possibly not setting an ...
0
votes
1answer
77 views

Converting JSON to GeoJSON or CSV?

How do you convert a JSON file to a GeoJSON file or csv. I have a JSON file with lat lon information, but how can I can convert this file to GeoJSON or csv. I have found some online tools to convert ...
1
vote
1answer
182 views

Online WKT and GeoJSON viewer

I once found a great but simple webpage that has a drop down with several text-based GIS formats such as GeoJSON and WKT, and a text box to copy/paste your data. The feature is then drawn on a world ...
1
vote
0answers
63 views

leaflet layer control checkbox options min/max

I have a straight forward leaflet map that is on a webpage. I am using the angular-leaflet-directive and all works as expected except for the layer control box. When only one baselayer is specified I ...
1
vote
1answer
89 views

How to get the mapserver WFS OGR driver to encode unicode in geojson

Running mapserver 6.4.1, gdal 1.14.3 I try to output some WFS features using outputformat=geojson. The relevant bits of the mapfile are appended below. Everything works fine, but unicode characters ...
0
votes
1answer
40 views

How to use a Geojson layer as a background mask?

I have some Geojson neighborhood shapes that I am using to create a small multiples chart. They are like this: I want to give them backgrounds for the area they represent. I want the streets and ...
1
vote
1answer
30 views

Center a group of features all to the same point

Given a group of features in a geojson object, is there a way to translate them, such that they all have the same center? I'd like achieve this in the actual coordinates of the files.
1
vote
2answers
43 views

Ogr2ogr not executing

I am trying to run this Ogr2Ogr command but it doesn't execute when entered. What is wrong? ogr2ogr -f GeoJson -where "neighborhood IN ('Lower East Side', 'Greenwich Village', 'Columbia St', ...
3
votes
2answers
110 views

How to determine number of features in GeoJSON file using Python or JavaScript?

Is there a best way to determine the number of features in a GeoJSON file? Ideally using Python or JavaScript.
1
vote
0answers
38 views

How to change color of points dynamically from a geoJson in openlayers

I am new in Openlayers and what I am trying to do is to dynamical give a color to some points read by a GeoJSON file. I am taking inspiration by this post How can I add an infowindow to an ...
0
votes
1answer
44 views

geoserver to leaflet via jsonp

Please somebody help because I am on the edge of madness:) I have no idea what is wrong with my code... Only what I want is adding layers to my leaflet map: 1 point layer, 1 line, and one polygon. ...
2
votes
0answers
77 views

Getting JSON/JSONP/GeoJSON from GetFeature WFS request to ArcGIS for Server?

I'm trying to perform a GetFeature request to an ArcGIS 10.2.1 for Server WFS service and would like to get response in geoJSON format. If I look at the GetCapabilities from the service the only ...