GeoJSON is a geospatial data interchange format based on JavaScript Object Notation (JSON)

learn more… | top users | synonyms

6
votes
0answers
96 views

GeoJson structure

I currently designing a table/document database structure and use GeoJson to store points and routes. Currently I choose MongoDb, I will consider PostGIS later. I want to store route info for public ...
4
votes
0answers
301 views

How do I clip Geojson FeatureCollection with another Geojson polygon

I have a GeoJSON file that contains one FeatureCollection with a bunch of features that are polygons. I also have the boundary of the continental USA in another GeoJSON file. I'd like to clip the ...
3
votes
0answers
69 views

Loading GEOJSON in Leaflet and separating attributes

I'm making a cloropleth map with geoJSON and Leaflet. Right now each year has a separate geoJSON file and I load each of them as below: function loadGeoJSON(data) { var json = null; ...
3
votes
0answers
182 views

GeoJSON not showing in leaflet map?

I'm trying to load a geojson file in to my leaflet map and can't see what's going wrong. From looking at other questions i've used Jquery Ajax to call the geojson. The geojson is in the same directory ...
3
votes
0answers
279 views

Folium heatmap not displaying

I have an output file data.json [{"5403": 2, "9734": 1, "2565": 5, "5087": 2, "9061": 1, "1761": 4, "4811": 7 "1111": 5, "3891": 3, "1962": 3}] and a shapefile converted to geojson ...
3
votes
0answers
152 views

Can I use GeoJSON GeometryCollection in QGIS?

I want to create a GeoJSON that contains multiple geometries to be used in QGis later on. Now I red through the specs here: http://geojson.org/geojson-spec.html#geometrycollection When I simply copy ...
3
votes
0answers
1k views

How can a leaflet SVG overlay be placed outside of the leaflet-overlay-pane?

I have SVG on top of GeoJSON in my map. How can a leaflet SVG overlay be placed outside of the leaflet-overlay-pane while keeping GeoJSON in place in the leaflet-overlay-pane? (For example, how could ...
3
votes
0answers
58 views

simple raster format to use in Web applications?

I'm building a Web application in which users create and edit very coarse raster data. They're assigning values to cells in a georeferenced grid. Right now I'm storing the values in a multidimensional ...
3
votes
0answers
165 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 ...
2
votes
0answers
18 views

Leaflet filter on geoJson properties : multiple criteria

I'm using Leaflet filter on geoJson data. I'm able to apply it with a simple criteria : filter: function(feature, layer) { return feature.properties.field1 == "yes"; } I want now to apply it ...
2
votes
0answers
60 views

Insert shapefile draw features into PostgreSQL database using java EE (pragmatically)

I am working with PostgreSQL 9.4 and Java EE i want to insert shapefile or layer's features into PostgreSQL, is there any solution so i can insert the whole shapefile into database. OS Windows10. ...
2
votes
0answers
48 views

Adding geojson to Mapbox GL JS

Seem to be having problems adding a geojson featurecollection to Mapbox GL JS. What is the most efficient way to accomplish this? I've looked through the examples given on their site but they involve ...
2
votes
0answers
16 views

How to display GeoJSON from a URL with authentication in QGIS?

I know I can add a GeoJSON url via the Add vector layer ▶ Protocol ▶ GeoJSON. But I have a URL that requires a username/password. Is there anyway I can provide the username and password for the URL ...
2
votes
0answers
61 views

How to make a network /tower coverage map in in mapbox

I am new to mapping and currently I am trying to make a map showing coverage of a network provider here in my country. The map I am trying to achieve should look similiar to that at ...
2
votes
0answers
38 views

Unable to load and display data from geoJSON source in OpenLayers

It seems like OpenLayers library changes from day to day and loses compatibility with the previous minor version each time... But, actually, I have another question to ask. The problem I face, is that ...
2
votes
0answers
40 views

Combine files in TopoJSON when one is simplified differently to the other

I have two .shp files, I am separately converting these to GeoJSON with ogr2ogr.exe and then combining the files with TopoJSON. Each file independently becomes a ~200kb topojson file, however the ...
2
votes
0answers
88 views

Different Leaflet fillcolors for different layers

I have a leaflet map set up with two layers and I want them to use different colorization functions to color the choropleth shapes. My shapes are set up in layers like this: var povertyLayer = ...
2
votes
0answers
71 views

What is the most suitable way to get the boundary of a state or a country or the whole world dynamically?

I am working on a project where I have to create filled map charts based on the data client has provided. The data has latitude and longitude information. Based on the selected level (city or state or ...
2
votes
0answers
281 views

Leaflet filtering existing featuregroup

I have a leftleat map and i would like to filter the featuregroup i am displaying. exp_colJSON = new L.geoJson(exp_col,{ onEachFeature: pop_col, pointToLayer: function (feature, latlng) { ...
2
votes
0answers
412 views

How to load GeoJSON into PostgreSQL database using Python?

What I have tried to do is (In Python IDLE): import psycopg2 import json try: conn = psycopg2.connect("dbname='carto' user='postgres' host= localhost password='password'") except: print "I am ...
2
votes
0answers
98 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 ...
2
votes
0answers
250 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 ...
2
votes
0answers
439 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 ...
2
votes
0answers
329 views

Formatting Google Places API GeoJSON and Import to QGIS?

Hi Stackexchange I'm trying to export JSON or XML data to my desktop and import it to QGIS. This is the URL I'm using but it appears to be incorrectly formatted: ...
2
votes
0answers
162 views

ogr2ogr does NOT save “styles”, say “color”, information; how do I get around it?

I'm using ogr2ogr to convert KML to GeoJSON and I'd like to extract style information along with the data. The bash script I am using is: filekml="/tmp/poly.kml" filegeojson="/tmp/poly.geojson" ...
2
votes
0answers
116 views

Stray horizontal lines after converting from GeoJSON to topojson

After converting a GeoJSON file to topojson, and loading the topojson into Leaflet, stray lines appear in the resulting map. Like this: What is causing this? If I view the GeoJSON, these stray ...
2
votes
0answers
192 views

What is wrong with my data receiving from php script for geoJSON TileLayer?

I want to get geo data as geojson for geojson tile layer requests in leaflet. I set up a geojson layer like this: https://github.com/glenrobertson/leaflet-tilelayer-geojson/ A php script answers ...
2
votes
0answers
98 views

loading geojson in leaflet

I just added the geoJSON vector layer in leaflet for my hybrid mobile app using phonegap, the problem is that when I add the geoJSON file of size larger than 2mb the application crashes. What is the ...
2
votes
0answers
270 views

How can I merge adjacent polygons and return all (adjacent and not adjacent) as Multipolygon?

I have a postgres database with administrative boundaries and their geometry. Each of those boundaries have an ident number. What I want to achieve: First I want to select all rows which are ...
2
votes
0answers
146 views

Adding marker on a leaflet map

I'm very new to GIS and for learning I started with building a simple web app with GeoDjango. I am using dango-leaflet. Since I have a very limited knowledge I am facing many challenges. I'm trying to ...
2
votes
0answers
492 views

Z-Index in GeoJSON features using leaflet

I have a watershed polygon with sub-watersheds contained within the larger watershed. I would like the sub-watersheds drawn on top. Can i control the drawing order of features within a geojson object ...
2
votes
0answers
459 views

How to add an offset to a GeoJSON layer in Leaflet?

Using the example GeoJSON tutorial code at leafletjs.com. Change the myLines variable so that the two lines overlap, but run in opposite directions as follows: var myLines = [{ "type": ...
2
votes
0answers
2k views

Geoserver WFS get feature doesn't work - “SyntaxError: missing ; before statement”

I'm trying to use geoserver WFS json for creating vector layer (instead of using WMS) because this is a layer I redraw every 20 seconds. This is the code I use : function getJSON() { var ...
2
votes
0answers
231 views

Show geoJSON properties in jQuery Mobile Panel

First off I'm a novice at JS so please bear with me if this is a simple task to complete. I'm currently using the stock LeafletJS popup bubble to display the properties from my geoJSON. However, I ...
2
votes
0answers
564 views

R, GeoJSON and Leaflet

I recently learned about leafletjs.com from an R-Bloggers.com post. One such tutorial that I would like to achieve is to create interactive choropleth maps with leaflet. I have been using the rjson ...
1
vote
0answers
22 views

GML to GeoJSON JavaScript parser

Is there a JavaScript parser to obtain GeoJSON from GML? I have found only Python and OGR solutions.
1
vote
0answers
14 views

MongoDB Error Code 16755 - Can't extract geo keys for duplicate vertices and edge crossing

When I try to create an index on geometry db.polygons.createIndex({"geometry":"2dsphere"}), it stops at a certain polygon with the error code 16755. It says it Can't extract geo keys and then either ...
1
vote
0answers
40 views

Is spat the correct flag to use in my ogr2ogr command?

I have an ogr2ogr command that I'm using to convert part of a Postgres database to a Geojson. I ingested all of Canada in my database and to start, I want to grab all of the buildings in the Toronto ...
1
vote
0answers
36 views

Geojson taking long time to load in google map from database

I am trying to load a GeoJSON file from a MySQL database but it is taking about 6-10 seconds to load the data into the map. This is what I have done so far. I generate a GeoJSON file after doing a ...
1
vote
0answers
19 views

How can I position gps point on svg (or any other special type if exist) scheme of building?

I have an indoor map of a building in svg and this is an only scheme of a building, there is no google maps or any other maps. But I need positioning (navigation) by gps coordinates in this scheme. ...
1
vote
0answers
33 views

Encoding properties for each point in a GeoJSON multipoint

I'm working with GeoJSON Multipoints and wondering if there's any way of encoding properties for each point in the array? I realise this is a vague question but I'm looking for suggestions as to how I ...
1
vote
0answers
49 views

ogr2ogr - mapinfo to geojson. Merging shapes with certain values

I'm just starting out with this so apologies if I explain things poorly. I have some mapinfo files (TAB, IND, MAP etc) and I am trying to convert to Geojson. I can do this using ogr2ogr ogr2ogr ...
1
vote
0answers
10 views

Load information about feature for Geojson

Is it possible to display whole "info" for vector layer? I have a lot of geojsons with different feature in one map. I would like to show information.WMS can display info in this case (image). How I ...
1
vote
0answers
10 views

Using ZCTA (Census ZipCode) polygones

I have downloaded some files from census website and did some cleaning to get ZCTA map for new york, but I noticed that there are overlapped regions (some regions are inside others). For some ...
1
vote
0answers
19 views

Problem in adding geoJSON “info”

I have problem with display geojson "info".When I "click" on geojson layer I see also previous "info". In result I see multiple information. I would like to see only one info . (3 times i cicked in ...
1
vote
0answers
18 views

How to add geojson info using Http inner

I would like to add information about my geojson file after "click" . When I am using example from openlayers 3.14v . It dont work. How should I do it ? Because when I click on the geojson , below I ...
1
vote
0answers
59 views

Plot a bubble chart in d3.js by giving an local geojson file as an input

This is the content in my geojson file { "type": "FeatureCollection", "features": [{ "type": "Feature", "properties": { "profit": 326, "npa": 174.000000 } }, { "type": ...
1
vote
0answers
39 views

How to display Geojson file over OSM, google satellite as abase layer (at correct location) in open layer?

How to display Geojson file over OSM, google satellite as a base layer in open layers. It is showing somewhere. var map = new OpenLayers.Map('map',{ projection: "EPSG:900913", ...
1
vote
0answers
27 views

WebMapping Charts Overlap Issue LeafletJS

I am a beginner in webmapping development using LeafletJS and JS. I am the owner of the website built under LeafletJS. I have faced some problems with charts overlapping. On the right top of the map ...
1
vote
0answers
86 views

Mysql 5.5 spatial to Google Maps API

I've got a mysql table with points and polygons spatial geometries. I can see that MySQL 5.5 doesn't have the ST_AsGeoJSON() function to extract to GeoJSON. I'm looking for the simplest way to ...