An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

3
votes
1answer
40 views

Leaflet geojson styling leaves gaps between polygon

I'm styling a geojson polygon composed of multiple closely placed vertical segements which doesnot have a gap in between (i've checked the topology). I want to display just the fill and without ...
1
vote
1answer
61 views

Given a collection of polygons, how do you find which one contains a given point? Java or Python

I'm looking for Java or Python libraries that will help me answer this question efficiently: given a collection of polygons (via shape files or GeoJSON), which one of them contains a given point? The ...
0
votes
0answers
12 views

Leaflet geoJSON point layer with divIcons (SVGs) how to toggle visiblity?

I have posted a few related questions about this topic here here and here. I have tried to set the opacity of the layer, then reset it with setStyle on a zoom event like so: Layer18 = ...
1
vote
1answer
143 views

Import GeoJSON into PostGIS

I want to import GeoJSON avaliable in the following dump into PostGIS but I am not able to import it. I already imported geousa data available in this public dump into MongoDB smoothly. Let me know is ...
1
vote
1answer
64 views

Importing GeoJSON into MySQL?

I want to import GeoJSON data into MySQL to compare performance with other databases. Is there any way I can import following data into MySQL. And if it possible, how to create table for such records. ...
0
votes
0answers
32 views

how to add multiple divIcons to each point in a geoJSON - Leaflet

I am trying to add divIcons (SVGs) as markers to a point layer from a geoJSON in a webapp using Leaflet. I need to have different sized markers at different zoom levels. I have asked related ...
0
votes
0answers
71 views

Leaflet / JQuery -cannot add or remove class to divIcon marker

(this is related to a previous question of mine) I am adding a divIcon (an svg) as the icon for features in a geoJSON, using Leaflet. I can add a class to the html property of the icon, but I cannot ...
0
votes
0answers
7 views

Unable to load geojson or KML file into OpenLayers 2 as base layer [duplicate]

First, sorry for the repost! I asked this a long time ago and never got a response. Now I am getting back to it... Using OpenLayers 2, I want to have an offline baselayer, that is loaded from a KML ...
1
vote
1answer
72 views

C# / .NET library for converting GeoJson to KML

I'm pulling in data from ArcGIS using ArcGIS.PCL which provides the geometries as GeoJson. I'd like to convert this GeoJson to KML. Does anyone know of any .NET libraries that provides this ...
0
votes
1answer
23 views

Leaflet: how can I find all geo-json features at a certain position

For a small project we are using leaflet with geojson features instead of openlayers backed by geoserver. Now, when I click in the map, I want to see a list of all features in that position. I use ...
0
votes
0answers
36 views

Searching for UN regions/sub-regions shapefile

for a visualisation project I need the boundaries of the UN regions as defined here : http://unstats.un.org/unsd/methods/m49/m49regin.htm That's 21 polygons for the sub-regions. I have been looking ...
0
votes
0answers
33 views

How to add the geometry to google maps from geojson(retrieved as json) for a specified condition using javascript

I have a array called place_names which holds some place names. I have a GeoJSON layer loaded in CartoDB, which has three columns id, name and the_geom (which is a geometry object) that can be queried ...
0
votes
2answers
75 views

Given a GeoJSON file how do I calculate the area of the embedded features?

We have a GeoJSON file that contains an array of features each with their associated geometry. How can I calculate the area of each feature? Are there any Java or Swift libraries to help me? Any ...
2
votes
0answers
44 views

Writing GeoJSON data into PostGIS in perl?

I am working with GeoJSON files and need to store them in PostgreSQL using perl. I can do this in 2 steps: open (JSON,">$path/tmp/current.json"); print JSON $fullJSON; close JSON; followed by: ...
0
votes
3answers
105 views

How do you read/write a FeatureCollection from/to a json file?

I am trying to read in a json FeatureCollection (geojson 1.3.1) Python (2.7), add some properties, and write it back out to a json file (or string). I can read the file, and modify the properties, ...
-2
votes
1answer
45 views

openLayer3 Vector Layer

var vectorSourceJsonp = new ol.source.Vector({ format: new ol.format.GeoJSON(), loader: function(extent, resolution, projection) { var url = ...
0
votes
1answer
58 views

Convert SQL Server spatial table with unknown coordinate reference system to GeoJSON with ogr2ogr

I have a table in SQL Server with an STSrid of 0. I would like to convert this table to GeoJSON using ogr2ogr. The problem is, despite converting to EPSG:4326, the resulting coordinates are not valid ...
2
votes
1answer
134 views

How to tell if a GeoJSON path intersects with another feature in Leaflet?

I have an application where the user draws a path (a series of connected straight lines) and this path may not intersect any feature in a particular GeoJSON layer. I need to check that no point along ...
0
votes
1answer
113 views

SQL Server Convert GeoJson format into SQL geometry/spatial data

I'm using javascript and Openlayers 3 and to draw shapes or geometry in osm map. The data is in geojson format and i want to store it in SQL server 2008 R2 using SQL geometry or spatial data types. ...
2
votes
1answer
94 views

Zoom to GeoJSON point feature in leaflet

I'm relatively new to Web Mapping and trying to develop a litte Application with Angular JS and the angular-leaflet-directive. In this application I will work with a GeoJSON point layer representing ...
1
vote
0answers
24 views

Openlayers GeoJSON write not maintaining projections

How do I get GeoJSON.write to maintain the projections used in the construction of the GeoJSON? points.geojson {   "type": "FeatureCollection",   "features": [     {       "type": "Feature",       ...
1
vote
1answer
44 views

OpenLayers 2, GeoJSON cant get coordinates to work

I'm trying to display some Polygons on a map, and I'm new to OpenLayers, maps and GeoJSON. First what work: vector1 = new OpenLayers.Layer.Vector("GeoJSON1", { projection : "EPSG:4326", ...
1
vote
1answer
42 views

Determine points where a LineString meets the boundaries of a Polygon using Turf.js

Using Turf, I'm trying to determine the points at which a line (LineString) meets the boundaries of a polygon. Turf has the ability to do point-in-polygon/point-on-line and polygon intersections etc, ...
2
votes
1answer
56 views

Invalid GeoJSON when inserting data to a CartoDB (PostGIS) table from Leaflet

I've been following along to this tutorial from CartoDB. I create the GeoJSON using: var drawing = "'"+JSON.stringify(layer.toGeoJSON())+"'"; and then inserting using a custom SQL function ...
0
votes
1answer
22 views

cannot get properties of multipolygon - mapbox/leaflet

I'm currently using mapbox with natural earth and geojson to populate a map with multipoygons and custom markers. Each of these has a set of properties and information that I need to display on click ...
2
votes
2answers
70 views

GeoJson to Spatial Geography in sql server 2012, fix orientation of polygon

I've download from Mapzen many geoJson files related to countries with their respective administration level. Then I've parsed all the geoJson files and saved them to my sql server 2012 as geography ...
1
vote
2answers
78 views

OpenLayers adding properties to geojson

With the save strategy I am posting the geojson to a php script where it is merged and reloaded when the map is loaded. How do I add properties attributes to the geojson that is posted? Like a ...
0
votes
0answers
21 views

Apportioning census data using GeoJSON?

I am working on a project now that requires me to merge/dissolve census tracts into predefined neighborhoods. I know this is possible using ESRI's apportionment functions, but I am currently working ...
1
vote
1answer
113 views

Leaflet: How to create toggleable overlays from a single GeoJSON FeatureCollection?

I am a beginner to Leaflet/Mapbox and I can create a simple map and plot all the points from a GeoJSON FeatureCollection, but I am unsure how to add the ability to toggle (via checkboxes) specific ...
1
vote
2answers
64 views

OL3 GeoJSON vs. turf GeoJSON

I am using OL3 and I try to inspect whether two lines are intersecting or not using turf. I used GeoJSON in OL3 and fed the lines into the intersect() in turf but I get Unknown GeoJSON type. here is ...
0
votes
1answer
20 views

Finding contiguous geographical units

On a map with territorial units, I wish to be able to compare a property of one territorial unit with those surrounding it. How can I find the contiguous territorial units of a specific one ?
0
votes
0answers
34 views

GeoJSON to GPX with togpx

I have a leaflet map that I use for directions (routing) and I'm trying to convert geoJSON to gpx (for exporting) using the togpx js. Everything works okay and I can see the gpx in my console, but ...
0
votes
1answer
36 views

How do you toggle between layers that have been loaded using the FileLayerLoad.js?

I'm trying to toggle between geojson layers that were loaded using the filelayerload javascript. Right now I'm basically stuck on how to append the geojson layers to one variable once they have been ...
1
vote
2answers
55 views

Mapbox Natural earth map disappears on zooms 0 & 1

As the title says, I'm currently using mapbox to create a little atlas app the issue is whenever I zoom out to anything lower than zoom level 2, the map dissappears with the map background being the ...
1
vote
0answers
7 views

Walking a number of kilometers in one direction in digital map [duplicate]

Is there a recommended way to calculate the new position of a point in a map when "moving" the point for example 10 kilometers to south ? Example: Point = { lat : 'LATITUDE VALUE', lng : ...
1
vote
1answer
101 views

From featureclass (or shp) to WKT e GeoJSON

I use ArcGIS 10.1 without Data Interoperability extension and I want to convert some feature classes (point, lines and polygons) contained in an .mdb. I read some posts but can't convert my file. ...
-1
votes
1answer
37 views

JSON to line string

I'm getting a JSON return like so: ...
2
votes
1answer
56 views

Cannot open this geoJson in QGIS 2.10

I have this home made geoJson: {"type": "FeatureCollection", "features": [{"geometry": {"type": "MultiPolygon", "coordinates": [[[[2.28313, 48.84024], [2.28297, 48.84011], [2.28282, 48.83993], ...
0
votes
2answers
44 views

Generate GeoJSON from MongDB Query

I want to extract my MongoDB query in a GeoJSON format it order to be able to visualize the result. I use Robomongo, which seems to be able to generate a JSON format. After I run the query, this file ...
3
votes
0answers
19 views

QGIS: Edit attribute values of geojson file: toggle editing greyed out [duplicate]

I'm trying to edit the values of attributes in QGIS, but it does not work. I tried to google an answer, but couldn't find anything so far. This is what I'm doing: Open QGIS. Drag in a GeoJSON file. ...
1
vote
2answers
153 views

Invalid GeoJSON object

I'm working with Leaflet trying to get some GeoJSON going. Everything works fine when I directly define a var as the GeoJSON I'm trying to display: var censustracts = { "type": ...
3
votes
0answers
166 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 ...
0
votes
0answers
133 views

Adding time slider control to OpenLayers map?

I am looking for a way to add a time slider control to my OpenLayers 3.10.1 map. This control would load properties from different years of a vector layer, as in the following map: ...
2
votes
4answers
159 views

Python Library for converting GeoJSON Multi-polygon to polygon

I would like to know if there is a Python library that can be used to convert GeoJSON Multi-polygon to a Polygon. Note: i want to convert .geojson file Multi-Polygon feature type to Polygon feature ...
2
votes
1answer
322 views

How to calculate the bounding box of a geojson object using python or javascript?

I have django app with leaflet on the frontend and I need to calculate the bbox of my geojson so that I can pass the coordinates to map.fitBounds() I have tried some libs as well as trying the ...
2
votes
1answer
113 views

GeoJSON: PolyhedralSurface geometry type not supported

I am trying to make a 3D web application which should be able to render 3D buildings (I will be using Cesium, but that is not that important for now). I basically have a database consisting of the 2D ...
0
votes
1answer
38 views

Leaflet + GeoJSON and ArcMap : Map fails to load if missing variable

I am working on my first web map using the Leaflet API. I have a shapefile that was converted to the GeoJSON format (within ESRI's ArcMap software). The Shapefile contains a field attribute named ...
0
votes
0answers
63 views

CartoDB data load from csv , geojson file error

I had installed CartoDB locally on my Ubuntu 12.04 and the installation was perfect. I can create dataset by CartoDB's GUI and able to visulaize data perfectly without any problem. But when i drag and ...
1
vote
1answer
46 views

Lat long co-ordinates in geojson format for Alaska(smaller), bigger Guam and Puerto Rico?

How do I get the geojson format of Alaska, Guam and Puerto Rico in different sizes ? The sizes I have for Alaska is too large and too small for Guam and Puerto Rico. I'm very new to mapping ...
0
votes
1answer
19 views

Standardized format for contributing street closure data to navigation apps

I am wanting to put together an application that will digest georeferenced road closure data. I am wondering if any such format currently exists for notifying google maps or other navigation ...