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

learn more… | top users | synonyms

0
votes
1answer
95 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
2answers
374 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 ...
1
vote
1answer
251 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
187 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
28 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
70 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
93 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, ...
3
votes
1answer
109 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
51 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
123 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
102 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
25 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
190 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
103 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
23 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
63 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
55 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 ...
2
votes
2answers
80 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
143 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
43 views

JSON to line string

I'm getting a JSON return like so: ...
2
votes
1answer
63 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
65 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
20 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
373 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
284 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
241 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
304 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
2answers
665 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
168 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
50 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
91 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
56 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
20 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 ...
0
votes
0answers
14 views

Importing osb.pbf data into MongoDB [duplicate]

I'm new to this stuff and trying to get the osm.pbf file imported into MongoDB. I have the data files in osm.pbf format and I would like to convert this into a GeoJSON first and import the resulting ...
1
vote
2answers
232 views

Applying a single leaflet search control to search multiple layers?

I am attempting to add a single search button to look through geoJSON layers. They will look through the field "name". Unfortunately, my method of creating a layer group is not working. What am I ...
1
vote
2answers
171 views

Separating two GeoJSON files, one with properties and another with geometry?

Using Leaflet with GeoJSON, I would like to create a map with geometries, and with alphanumerical data associated to each item of the geometry. A map very similar to the easy sample at ...
0
votes
1answer
32 views

Offline Playback of Vehicle in OpenStreetMap

How to do offline playback of routes traveled by a vehicle using postgis in OpenStreetMap when the coordinates are given in JSON format? I am getting gps data from gps device in json format but it ...
0
votes
1answer
92 views

Leaflet Search for GeoJSON creating duplicate, non-functional buttons

I added a plugin for searching a GeoJSON file in leaflet, but now there are multiple search buttons and they do not recognize any input. I suspect that it is initializing for every single instance of ...
0
votes
0answers
110 views

geojson very slow to load in openLayers3

I'm new to openLayers. I have parcel data stored in a geojson file, and it's pretty huge - there are about 170,000 records. I would load the data as a WMS, but I want the features to highlight in a ...
0
votes
1answer
115 views

Clickable hyperlink from GeoJSON field in feature

How do I make a URL a hyperlink when the information is called from a GeoJSON field? I have tried adding html tags, but since the link is not in-line, it does not work. (Script below) LOC_Catalo is ...
0
votes
1answer
155 views

Activating Search Plugin with JS Leaflet

I am attempting to add the following plugin to search a GeoJSON file I have open in Leaflet Javascript: http://labs.easyblog.it/maps/leaflet-search/examples/geojson-layer.html I have brought in the ...
1
vote
1answer
305 views

Create shapefile based on geojson data with geotools (Java)

I'm using Geotools 14.0 for Java and I'm trying to generate shapefile based on data from GeoJSON. Here is my code: try { String url = "geojson.json"; File geojson = new File(url); ...
2
votes
2answers
67 views

cannot open shape file

I'm trying to open this shape file with CartoDB or http://geojson.io, but I keep getting different kind of errors. I can open it with qgis, but then I tried exporting it to geojson, kml, esri shape, ...
1
vote
0answers
73 views

Selecting leaflet markers based on Json features [closed]

I have data coming from a Json file and I created a layer based on this Json file using markerClusterGroup. I am hitting the wall trying to do two things: 1 - Select some markers based on some Json's ...
2
votes
2answers
747 views

GeoJSON - how to style features of GeometryCollection

I have a GeoJSON file with a feature as follows: { "type": "Feature", "properties": { "Start Date": "01-09-2015", "End Date": "01-09-2015" }, "geometry": { "type": ...
1
vote
1answer
112 views

Edit GeoJSON attribute table

Is it possible to adjust tabel headers of GeoJSON files in ArcGIS? If yes, which max length has a row header? In QGIS there is no possibility to edit a GeoJSON table.
0
votes
1answer
303 views

How do I show feature attributes in a Leaflet popup?

So I have a JSON file displayed on my leaflet webmap. I would like to have it so a popup will appear when a feature is clicked. Right now it is a polygon feature. How do I call up information from ...
2
votes
3answers
99 views

get external jsonp and convert coordinates in leafletjs

I need to solve two problems: convert my coordinates from wgs84 to epsg28992 use external geojson from an jsonp url Both problems are as far as I understand not supported by Leaflet itself. So I ...
2
votes
1answer
633 views

Openlayers-3 - Extracting data for styling from my GeoJSON

I am trying to understand how to get data from my GeoJSON while rendering the map, so I can style every polygon/point differently. What i'd like is to create style-groups with the property named ...