Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [geojson]

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

1
vote
1answer
10 views

Non-interactive points in Leaflet

I do have a point layer (data from a GeoJSON) and a polygon layer (also GeoJSON) in Leaflet. Both layers are created the same way and I made both layers "non-interactive". Unfortunately the point ...
0
votes
1answer
21 views

How does one add `properties` to a GeoJSON polygon created using GeoPandas with Python?

I'm using the code in this example to create a GeoJSON polygon file. When I just use that code it works, although I would like to add values to the properties of each feature. When I try this it gives ...
1
vote
0answers
21 views

Transformation issue while SVG to GeoJSON conversion

I have a vector image in SVG format. (without georeferences) I am trying to display it using OpenLayers to display properties of different polygons in it. I tried converting it to GeoJSON but the ...
0
votes
0answers
35 views

SVG to GeoJSON conversion - incorrect render

I have a vector image in SVG format.(without georeferences) I am trying to display it using OpenLayers to display properties of different polygons in it. I tried converting it to GeoJSON but the ...
1
vote
1answer
44 views

Access geometry.coordinates of sliced vector grid

I am trying to represent LineString GeoJSON as vector tile layer using Leaflet.VectorGrid. But i need to do some interactive by clicking on vector tile layer. but this vector tile layer has came with ...
2
votes
2answers
30 views

Setting Labels on Vector features in OpenLayers 5

I am following this very big example to set labels on the style of the vector but it's confusing. The labels should be the Plot numbers, of each feature, which come from the JSON file. Also i have ...
0
votes
0answers
19 views

Reprojection REST Service

Are there any open source projects that offer a reprojection service over REST? I know there are online converters available, but I want to deploy something on premises. What I'm looking for is a ...
1
vote
1answer
36 views

Manipulating polygon data imported from Google BigQuery GIS within R

I have some polygon shapefiles (representing UK postcodes) which I have uploaded to BigQuery, using this guide, hoping to take advantage of the inbuilt GIS support described here. I am trying to ...
0
votes
0answers
23 views

Import GeoJSON in QGIS with file name as layer name?

When I add a GeoJSON layer to my QGIS project, it always gets the name "filename name_field_value". For example, file named CZ0100554782.geojson is as layer in QGIS named "CZ0100554782 Praha" I ...
2
votes
1answer
52 views

GeoJSON files being saved without line breaks

Why are my GeoJSON files being saved without line breaks? Why are they missing the proper formatting? All features in the file are being saved in the same line. I'm using QGIS 3.6.3. Here is what I ...
1
vote
0answers
18 views

Blur all other area outside polygon in mapbox-gl

I am trying to create an effect like Can view it by adding feature from fiddle in http://geojson.io/#map=14/46.9597/7.1446 when added the feature in mapbox as geojson layer of mapbox-gl I am getting ...
0
votes
0answers
17 views

Convert Mapbox vector tiles to GeoJSON in browser

Although Mapbox's vt2geojson is fine for node use, I need to convert vector tiles to JSON in the browser. I haven't found a browser based solution for this. Is there one? Possibly the solution is ...
0
votes
1answer
21 views

Using ogr2ogr for converting tables from non-public schema to GeoJSON

I've used ogr2ogr to convert tables in PostgreSQL database to GeoJSON which works fine for the public schema. The question is how can I set the schema to non-public to access my tables? I've already ...
0
votes
0answers
20 views

Creating shapefile/GeoJSON from CSV with zip codes

I have a CSV file containing zip codes to territory code mapping. I would like to create a map showing the boundaries of the territories as either a shapefile, GeoJSON, or TopoJSON. I was able to ...
1
vote
1answer
26 views

Join a CSV file to GeoJSON using ogr2ogr in a Python script?

I have a CSV which I would like to join to a GeoJSON. I found this answer which I tried to implement but I can't get it to work just yet. Here's an extract of my python: join_command = ['ogr2ogr', '...
-1
votes
1answer
31 views

Converting ArcGIS Polygon data to Lat/Long? [closed]

I have downloaded some ArcGIS data from here: ArcGIS Data and there is an explanation of the schema here: ArcGIS Data Documentation How do I convert the values in the array to lat/long? i.e. Here'...
3
votes
1answer
52 views

Re-project GeoJSON from pixel-space to lat-long in Python

I have created a GeoJSON of linestrings in pixel space using Python. However, I now need to re-project the file to match the same projections and extent of the .tiff file I wish to layer the GeoJSON ...
0
votes
1answer
64 views

Which is more performant GeoJSON or WMS/WFS using OpenLayers? [closed]

I'm developing a web application using PostGIS, Laravel, Vue.js and Openlayers, for the moment I generate the GeoJSON from my database using the following code : public function plosWithGeom() { ...
2
votes
0answers
34 views

Creating GeoJSON REST service

I'm trying to create a GeoJSON REST service from a PostgreSQL connection. First I fetch GeoJSON as a string from PostgreSQL: import java.util.*; import java.sql.Connection; import java.sql....
1
vote
1answer
35 views

Checking if GPS coordinate is in country polygon

In order to check in which country GPS coordinate is in, I've found this github repo, where there is GeoJSON file for each country. I've loaded the files to geojson.io, and they seem very accurate. ...
1
vote
1answer
39 views

GeoJSON layer shows/enables only one row in attribute table in QGIS

I have a GeoJSON polygon layer which I converted from a shapefile layer. The layer opens up in geojson.io, for example, with no problem, displays the table correctly, etc: However, in QGIS the ...
-2
votes
1answer
41 views

WFS display problem using GeoServer and OpenLayers

I know a lot of issues have already been posted about this tricky situation, but I can't figure out where is the problem in my script and most of the discussions about OpenLayers are outdated. I'm ...
0
votes
0answers
34 views

Leaflet display PHP data on GeoJSON popups

I want to display data from my database which I get in JSON format with getJSON function. I want to display these data on all GeoJSON features based on a condition. I am trying to do that with the ...
0
votes
0answers
34 views

How convert OSM relation to GeoJSON -based all kind of relation member roles

I just want to convert OSM data to GeoJSON where it is pretty simple with node and way tags of OSM data, but relation which is giving complex can't find the logic to convert OSM relation to GeoJSON ...
3
votes
3answers
63 views

Projection fails when ran with assertions enabled [closed]

The following minimal example runs fine only when assertions are disabled: src/main/kotlin/main.kt: package com.regions import org.geotools.geojson.feature.FeatureJSON import org.geotools.geometry....
0
votes
0answers
7 views

QgisGeoJSONExportPlugin won't install

I'm trying to download and install the Plugin "QgisGeoJSONExportPlugin" I downloaded from the "QGIS Python Plugins Repository", since I couldn't find on the "manage and install plugins" window. So I ...
0
votes
1answer
79 views

How to cluster markers using the “Geojson-dashboard” in Leaflet JavaScript

I know how to use Leaflet.markercluster, but for some reason I can't use with geojson-dashboard framework template for Leaflet (http://fulcrumapp.github.io/geojson-dashboard/). But I have a simple ...
0
votes
0answers
41 views

Opening geodata in GeoPandas?

I've downloaded some geodata but I'm unable to import it into GeoPandas. This is a sample of the geodata (I've trimmed the JSON object): {'displayFieldName': 'NAME', 'fieldAliases': {}, '...
0
votes
1answer
42 views

Unreadable GeoJSON file in QGIS fixed by trivial reordering

I'm having a problem reading a GeoJSON file in QGIS. The file can be found at this git repository. When I try to load in the file, I get an error message that it's invalid, but the "Reason:" field is ...
0
votes
0answers
13 views

Interpolating timestamps for breakpoints for linestrings of GeoJSON

I have a GeoJSON file containing a couple of LineStrings. The properties contain the Departure and Arrival timestamp for each LineString. I would like to interpolate the timestamps for each breakpoint ...
0
votes
0answers
12 views

Google Labelled Places (Pins) into KMZ or Shapefile

I hope this isn't a redundant question as I tried searching and trying several things to fix my problem, but here it is: My coworker dropped a bunch of pins in Google Maps, hoping that I could get ...
0
votes
1answer
41 views

How to get individual features from a GeoJson-Multipoint feature using map.on('click'…) in openlayers 4.6.5

I'm trying to get the features of each MultiPoint-point when i click on a point in my openlayers map (4.6.5). The points shows on the map. I want to add a pop-up on each feature when i click on the ...
0
votes
1answer
30 views

Leaflet 'Click' event on line portion

I have a polyline as GeoJSON layer in Leaflet. I need a JavaScript event when the user click on the portion of the line. I have to highlight the selected line segment. Is it possible this?
0
votes
0answers
17 views

In Leaflet is uGeoJSONLayer the correct approach to get smaller amounts of Point data from GeoDjango?

I have a GeoDjango model containing a PointField. There are about 200,000 records spread over a large area. We view these records with Leaflet. The data only has relevance at a small scale (zoom level ...
0
votes
1answer
27 views

PostGIS: unable to import GeoJSON data (selected attributes) to PostgreSQL database using ogr2ogr

I downloaded sample OSM data of my area of interest via Overpass-turbo as my_map.geojson. I am trying to import this geojson file to my PostgreSQL 10 (Windows 8 x64 machine) database using ogr2ogr (...
0
votes
0answers
20 views

Creating and saving OpenStreetMap locations within GeoJSON file?

I am not experienced in working with OpenStreetMap, but I am wanting to collect points. All points that the user collects will be saved inside a GeoJSON file, however whenever I use this, the file is ...
0
votes
2answers
64 views

Changing Color and Opening Label on Hover

I'm initializing GeoJSON markers in Leaflet, and I'm trying to change the color and open a label on mouseover. Upon mouseout, I want to change back to the default color and close the label. However, ...
0
votes
0answers
25 views

ogr2ogr: How to export / explode GeoJSON features from collections into separate files

I would like to use an ogr2ogr command to export features as multiple separate geojson files from a single GeoJSON feature collection. I have tried using the -explodecollections command but I am ...
0
votes
1answer
49 views

Mapbox Vector Tiles appear to lack accurate intersection nodes?

Mapbox Vector Tiles appear to lack accurate intersection nodes. Is this a bug? i.e. should the tile's geojson include a shared node between two intersecting streets? Details: Using MVT's from http:...
0
votes
0answers
22 views

Trigger click on geoJSON layer on dragend

I have a map where users can click on municipality polygones and the lat/lon values of the clicked position as well as the respective municipality name are saved in form fields for later use. I want ...
0
votes
1answer
65 views

Show time series data with non-contiguous times using Leaflet TimeDimension plugin

My data is made up of squares forming a grid where the value of each square changes with time. The times are equally spaced with 1 hour intervals, however, the data is only available for a certain ...
0
votes
0answers
36 views

Chinese encoding problem in ogr2ogr from DXF file to GeoJSON?

I have a dxf format file named test.dxf which has some Chinese characters inside. I tried to transform it to GeoJSON file using ogr2ogr -f GeoJSON test.geojson test.dxf and returned GeoJSON showing ...
1
vote
1answer
154 views

Load GeoJSON polygon time series with Leaflet Time Dimension plug-in?

I have a GeoJSON file with time series data, representing repeating polygons with varying data. I have managed to display the data for one time interval (a subset of the data representing one interval)...
0
votes
0answers
124 views

Pushing features to external GeoJSON file

I am working on a project which uses Leaflet and leaflet.draw to show and draw shapes on the map. I also have a data.json file which I use to display former features generated from geojson.io. What I ...
0
votes
1answer
59 views

Get GeoJSON or simple WKT from a GPFeatureRecordSetLayer ArcGIS js API

Is it possible to get the GeoJson representation of a GPFeatureRecordSetLayer that is returned from GPServer task? I am able to draw the feature on the map (using the ArcGIS js API) with code like ...
0
votes
1answer
101 views

Export selected lines as GPX

I have created an option in my Leaflet.js web map that exports clicked lines as GPX, but it is just exports only the last clicked line. I need to export all clicked/highlighted/selected lines in one ...
0
votes
1answer
167 views

How to change the color of GeoJSON layer?

I want to show my road network in red color. How can I change this default color of the road network. Where should I attach style property? var roadNetwork = new L.LayerGroup(); $.getJSON("{% url '...
0
votes
0answers
40 views

Quadtree based polygon indexing? (Python/Java)

I was wondering how to best represent the inside of any given polygon (GeoJSON coordinates) with some sort of indexing, like a grid or quadtree? See image below for an approximation of what I have in ...
-1
votes
1answer
66 views

Searching Polish districts in JSON

I am looking for a map of polish 'powiaty', eng. 'county' or 'district' (i.e. second-level unit of local government and administration in Poland, equivalent to a county, district or prefecture) in ...
0
votes
1answer
33 views

OpenLayers5: GeoJSON: featureProjection vs dataProjection

What's the difference between featureProjection and dataProjection in OpenLayers 5, GeoJSON class?