An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

1
vote
2answers
124 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
74 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
70 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
73 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
124 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
144 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
61 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
60 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 ...
1
vote
1answer
71 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
143 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
82 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
280 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 ...
2
votes
1answer
311 views

installing geojson-vt with Leaflet

Super rookie question I'm sure, but I need help using the leaflet plugin geojson-vt. According to tutorials, like this one on http://bl.ocks.org/Sumbera/c67e5551b21c68dc8299, there should be a js file ...
0
votes
2answers
160 views

Reading in local geoJSON file for openlayers

I am kinda new to openlayers and not (yet) very experienced in javascript. Can anyone tell me what I am doing wrong here? I have a wordpress blog and I want to replicate and adjust the following ...
0
votes
0answers
47 views

Web mapping application with select/unselect features and receiving names of selected features on map

I am creating web application that need to have the following functionality: display polygonal features on the map (about 20-50 Mb if GeoJSON) on click on feature - select them and view names ...
0
votes
1answer
122 views

How to draw a rectangle on a Leaflet map from GeoJSON data

I am trying to draw a rectangle on a Leaflet map with JSON data which looks like this. var geojsonfeatures = {"type":"FeatureCollection","features":[ {"type":"Feature", ...
0
votes
0answers
41 views

Does Leaflet handle TopoJson in OSGB EPSG:27700 projection?

I already have a Leaflet map showing custom base map tiles in British OSGB projection, EPSG:27700 (using the Proj4Leaflet plugin). I would like to overlay some nationwide admin boundary data in the ...
1
vote
0answers
24 views

Validate that Openlayers GeoJSON layer is in the correct format with OpenLayers.Protocol.HTTP call

I am completely new to JS and openlayers, i am trying to figure out a way to validate the received layer with the OpenLayers.Protocol.HTTP call. I want to validate that it is in the correct format ...
0
votes
0answers
26 views

Leaflet GeoJSON ignores first clicks

I have a functioning Leaflet map. In order for the click event to work I have to click on the area that has the event then click on an area without an event then click on the area with the event to ...
0
votes
1answer
465 views

Convert Lon Lat to XY in Openlayers 3

I have a map which retrieves Points of Interest from a database and displays them however the Lon Lat need to be transformed into XY to be placed properly. Currently the all just appear at O,O and I ...
1
vote
1answer
177 views

Issue dsplaying GeoJSON file in OpenLayers 3.9.0

I'm trying to get vector feature from geojson file displayed in openlayers 3.9.0. {"type": "FeatureCollection","crs": {"type": "name","properties": {"name": "EPSG:3857"}}, "features": [{"type": ...
1
vote
1answer
44 views

Openlayer3 3.9 vector layer ignores some linestrings

I updated my small OL3 project to 3.9 but noticed that one of my vectorlayers now only displays very few features: Other point layers work fine. Also I checked the basics: Browser calls and ...
2
votes
2answers
59 views

How to enable Arabic/UTF8 labeling in Openlayers?

I have data in Geojson contains arabic in some attribute when reading the attribute info.push(features[i].get('Name')); I get this Unreadable how to enable utf8 or I dont know....
1
vote
1answer
80 views

Mapbox Directions Plugin - Get Route GeoJson

Goal: find the GeoJSON points in a web map that are closest to a directions route using turf.js. I am using the Mapbox Directions plugin. I am following this example. How do I work with the route ...
1
vote
0answers
104 views

Can you check if a gps coordinate is inside a gps polygon in R?

I'm trying to determine if a specific gps coordinate is within a gps spatial polygon. My gps coordinate is being outputted from the geocode function from the ggmap library and the spatial polygons ...
1
vote
2answers
102 views

Loading Json properties in a popup using leafletjs

I have a geojson file (tide_gauges.geojson) { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, ...
2
votes
2answers
100 views

ogr2ogr - Lost projection when converting geojson to MapInfo Tab

I have the following geojson that I would like to convert to MapInfo tab with ogr2ogr: ogr2ogr -f "MapInfo Tab" output.tab input.geojson geojson: { "type":"FeatureCollection", "crs":{ ...
1
vote
1answer
76 views

ogr2ogr - Convert geojson to shapefile create offset in coordinates

I want to convert this geojson file below into a shapefile using ogr2ogr command ogr2ogr output.shp input.geojson. However, an offset is appearing in the output coordinates that make the shapefile ...
0
votes
0answers
87 views

Using multiple custom markers from geojson attributes using Mapbox

I'm new to Mapbox and ran into the following problem: I'm loading marker positions from an external geojson and want to manipulate the looks of several markers filtered by an attribute like "title". ...
1
vote
2answers
294 views

Convert WKT to GeoJSON with leaflet

I have a point type WKT geometry column in a MySQL table storing the location of some stores. I want to display it on a leaflet map on my website. I've found plenty of tutorials to doing this on ...
2
votes
0answers
31 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 ...
0
votes
0answers
13 views

Create Map Service for AGOL from JSON file

I have a .json file which I would like to be able to import into ArcMap to then publish as a map service to AGOL. The format of the json file when I receive it is like this: ...
0
votes
1answer
192 views

How to extract style data from DXF when converting to geoJSON

I am using ogr2ogr (GDAL) to convert DXF files (from autoCAD) to geoJSONS for usage inside Leaflet.js The issue is that a lot of information, like line stroke size and colors are not kept during the ...
0
votes
1answer
264 views

How to use leaflet-search for a geojson feature property?

All, I'm trying to use the leaflet-search plugin to search for a specific geojson property (i.e. 'Name'). The trick part of this is I want to perform a search on a Geojson file thats loaded in via ...
0
votes
0answers
28 views

Accessing Topojson features

I am having trouble with accessing the "density" property of my TopoJSON file. Basically I want to change the density property or add another property named "metric" in my properties and make the ...
0
votes
0answers
51 views

Save JSON from Openlayers using AJAX

I am trying to build a web app where users can use OpenLayers to draw features and then save them either as a download or write to a file on the server which I can collect when I need it. I am happy ...
0
votes
1answer
118 views

Get GeoJson feature by ID and zoom on entity

I have got a leaflet map with Geojson layers : I use jquery Autocomplete to search an entity by name or id, I have no problem with that. I need your help because I'm not able to refer to a specific ...
5
votes
0answers
80 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 ...
1
vote
2answers
260 views

How can I represent Time in GeoJSON?

I'm modelling a bus route as a series of waypoints. Most of these waypoints have just a latitude and a longitude and represent points along a road. However, when the bus gets to a bus stop, the ...
3
votes
1answer
171 views

D3 javascript and GeoJSON: lines in Stockholm map very strange

All the code and shapefiles that I'm using are available in this GitHub repo. I'm trying to draw a map of Stockholm with D3. The shapefile looks ok in QGIS: However, drawing the GeoJSON produces ...
3
votes
1answer
240 views

cannot convert shapefile into GeoJSON

I have downloaded a shapefile of Stockholm (files on GitHub). I'm trying to convert the shapefiles to GeoJSON with the ogr2ogr command line tool. It does not work with the following error: Export ...
1
vote
1answer
59 views

Can you display data from a csv (or other file format) onto a GeoJSON popup?

All, I'm trying to display data from another file such as a csv into a GeoJSON popup window. So far I know I can match the data using a nested for loop with a common id between the two files, but I'm ...
0
votes
1answer
114 views

Leaflet GeoJSON style function feature only colors one GeoJSON feature

I need to style every feature differently that I pull from a GeoJSON file. However this anonymous style function only changes the style on the first feature it comes across and stops. I am new to ...
0
votes
1answer
162 views

Leaflet Marker Cluster from GeoJSON

I've created marker cluster in this example and now I want to show the same thing with data from GeoJSON, but it doesn't work. I'm trying to reproduce same situation in this example, but marker ...
5
votes
4answers
711 views

Methods to Convert .SVG File to GeoJSON

Question How do I convert an SVG file to GeoJSON format? Desired Outcome: I want to make a choropleth map using something like D3.js, or any of the other libraries out there. Challenge: I have an ...
1
vote
1answer
43 views

Certain polygons not obeying JavaScript style rules?

http://catalinagis.org/ownership You can see that some of the parcels don't follow the fill style rules (opacity: 0.5) even though the same style rule applies to all polygons in the data. This ...
2
votes
0answers
64 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 = ...
1
vote
0answers
51 views

show polygon from database in browser in geodjango

I tried to retrieve the polygon which I saved into postgis database. (all polygons) Here is my code: models.py from django.contrib.gis.db import models class MyMap(models.Model): name = ...
1
vote
1answer
50 views

Shared edge between two geojson polygons

I am interested in getting the coordinates of a shared edge (if exists) between two geojson polygons. I am (currently) using turfjs and geojson-equality libraries I tried this but I consider it quite ...