An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

2
votes
2answers
50 views

How to encode a point geometry in Geojson?

I have point geometry in posgresql which I query as follows: select ST_AsText(geom) as pointgeom from pointable. I'm using python as server side script. I want to pass the result as Geojson response ...
0
votes
0answers
12 views

Deviated InfoBox - Geojson

I tried to showing info-Box after click (onmouseclick), that is goes well but info-Box's location is far away from my geojson area. Can Someone explain to me what happen in here?
0
votes
1answer
46 views

Add 'name' from GeoJSON to Leaflet List Markers control

Im my web app I use Leaflet List Markers plugin (https://github.com/stefanocudini/leaflet-list-markers). Markers loaded as GeoJSON from GeoServer. I want dispaly name of markers in list control, but ...
2
votes
2answers
30 views

Coordinate Not Match - Convert Shapefile to Geojson

I'm a newbie at GIS programming and I have a problem with file conversion. I've tried to convert shp file to geojson, and the coordinates do not match. But when I try to convert it to kml, it goes ...
1
vote
1answer
18 views

Leaflet interactive styling does not reset style correctly on mexican state geojson layer

I adapted the leaflet tutorial for an interactive choropleth map to create hover highlights and zoom functionality to my Mexican states map. Oddly, when I test out the highlight it leaves certain ...
0
votes
1answer
27 views

Open Layers 3 geoJSON not loading

I am having trouble loading a geoJSON layer (below is my defintion). everything works fine when I read the file locally in a web browser e.g. file:///Z:/inetpub/wwwroot/bang.html however when I try to ...
3
votes
1answer
19 views

Leaflet: Change point icon (geoJSON) on click and change back when clicking another point

I would be very grateful if someone could help me with this. I have a geoJSON (10 points) that is drawn using an icon. I want to change the icon when I click on one of the points and then I want to ...
1
vote
1answer
25 views

Layer toggle disappears leaflet

I'm having a bit of trouble finalizing a project I'm working on. When I upload my map to filezilla, my map layer toggle doesn't show up: before uploaded: after uploaded: Does anyone have any idea ...
0
votes
2answers
43 views

OL3 Style function

I am attempting to write a style function within an open layers 3 application that will change the fill color of a circle based on an attribute from a geoJSON piece of data. I have looked over stack ...
4
votes
2answers
47 views

Access geojson from github in leaflet

I am new to json, github, and leaflet. But I am trying to create a simple application which will render my points which are in geojson up on github. From everything I have read this should work. ...
1
vote
0answers
6 views

OpenLayers 2: Transform the geometries for a list of feature objects

I am trying to export GeoJSON for a list of feature objects. The features are in EPSG:3857 projection and I would like to convert all geometries to EPSG:4326. I am perfectly capable of doing this by ...
1
vote
1answer
33 views

Geoserver WFS GeoJSON layer in Leaflet, having trouble diagnosing 'Uncaught TypeError: undefined is not a function (Anonymous Function)' error

Pardon me if this has been addressed, I searched as far as I could for similar errors. I'm trying to serve a large amount of polyline data as a geoJSON layer from GeoServer to a Leaflet instance. ...
1
vote
0answers
17 views

GeoJSON to routing graph

What are the best automated ways of placing the nodes and edges of a routing graph using the GeoJSON data of a multi-level building? What other data is needed (area layout, accessor directions etc)?
2
votes
1answer
32 views

OL3 - Y Axis inverted

I have a custom map, served by our custom internal map server (XYZ) showing up in OL3. This works perfectly, but now I have to put some vector shapes over the top, these shapes are coming from an SVG. ...
2
votes
2answers
36 views

What's the best way to determine if a point is within a certain distance of a GEOJSON polygon?

What's the best way to determine if a point is within a certain distance of a GEOJSON polygon? Should one use TurfJS buffer method (https://github.com/Turfjs/turf-buffer#turf-buffer)? Can one perform ...
-1
votes
1answer
71 views

D3.js cannot render my geoJSON file

I've been trying to draw maps using the d3.js library in a manner similar to that below. <script> //Width and height var w = 500; var h = 300; //Define path ...
2
votes
2answers
62 views

How to export thousands of features from PostGIS to a single GeoJSON file?

I know how to export one feature from a PostGIS database using ogr2ogr: $ogr2ogr -f GeoJSON out.json "PG:host=localhost dbname=xxx user=xxx password=xxx" -sql 'select id, county, wkb_geometry from ...
1
vote
1answer
78 views

shapefile for mumbai area or section wise

please don't kill me if this question is listed anywhere else, i really searched high and low to find answer to this question. i am working on a project in which i need to plot data on Mumbai city ...
0
votes
1answer
17 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
32 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
30 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 ...
1
vote
1answer
126 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
17 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
42 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 ...
0
votes
1answer
54 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
43 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
1answer
20 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
41 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 ...
0
votes
2answers
113 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
81 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
41 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
198 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
105 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
34 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
132 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 ...
1
vote
1answer
83 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
42 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
43 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
71 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
53 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
61 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
36 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
100 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
62 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 ...
2
votes
2answers
174 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
65 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
100 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
43 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
29 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
89 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 ...