Questions tagged [geojson]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
29 views

Importing a CSV file with GeoJSON columns in ArcGIS

I have a CSV file with five columns containing GeoJSON data. The other columns contain additional demographic data like age. How can I import the CSV file in ArcGIS Desktop? I already tried various ...
2
votes
0answers
34 views

Leaflet + GeoServer WFST - Inserting Polygons to PostGIS database

I have a GeoServer installation on top of a PostGIS database. I am trying to set up a leaflet webmap (using Leaflet WFS-T plugin) so that I can insert, update and delete polygon features. I have ...
2
votes
1answer
38 views

How to get Leaflet map.hasLayer(label) instead of map.hasLayer(layer)

I want to get label of the layer selected in option control in order to know which thematic analysis to run. because I have just one layer, but different fillcolor regarding the label in the list ...
-2
votes
0answers
64 views

Export a table that content results value

I import a table that have a collection of points defined by (pts), but wean I call (pts) by ee.Feature (pts) I can not export the table. var feat = ee.Feature(pts, {date: ee.Date(date), rain: ...
1
vote
0answers
25 views

Use a WFS-T layer in d3.js without adding a background map?

I am currently working on a d3.js project and would like to include a WFS-T layer to my SVG map to display and update location data stored in a PostGIS database. I know that I need to transform my ...
0
votes
0answers
26 views

Illegal GeoJSON after converting from a copied SHAPE file [closed]

I am converting a copied SHAPE file into GeoJSON and for some reason the GDAL library is generating an illegal GeoJSON, see details below {"type": "FeatureCollection","features":[{"type":"Feature", "...
0
votes
0answers
31 views

Conversion from shapefile to GeoJSON fails with large shapefile [closed]

I just noticed that the conversion from shapefile to GeoJSON fails when the shapefile is too large, in my case the shapefile is 400 MB. The converted GeoJSON has coordinate values that are bigger ...
1
vote
1answer
43 views

System.ApplicationException: 'EPSG PCS/GCS code 4326 not found in EPSG support files. Is this a valid EPSG coordinate system?'

I have setup a consol app in C# that uses the GDAL.CORE NuGet, it seems to work fine when converting most of the .shp files I have, however with one .shp file I am getting the error below: System....
1
vote
0answers
42 views

Using Leaflet.VectorGrid with local GeoJSON and addLayer

I am trying to test out Leaflet.VectorGrid from https://github.com/Leaflet/Leaflet.VectorGrid. My overall goal is to load a large 20MB or larger geojson quickly. I am getting this error... "...
1
vote
0answers
31 views

Render map data faster in Leaflet using MapTiler

I have a Vuejs app containing a Leaflet map that displays GeoJSON files. Some of these files, such as the file containing polygons for all zip codes in a US state are very large and load too slowly. ...
0
votes
0answers
29 views

GeoJSON file with all the capitals

I am looking for a GeoJSON file with all the capitals in this format: { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {}, "geometry": { ...
1
vote
0answers
28 views

Adding GeoJSON to layer of QGIS using Python plugin [closed]

I want to read data from database and then put it in a layer using Python plugin. I know I can create a layer by addVectorLayer, but it only accepts file path. layer = iface.addVectorLayer("../test7....
0
votes
0answers
10 views

Repoject NSIDC DATA

I would like to project these data https://nsidc.org/data/G02186/versions/1 on my map. I don't understand how I can convert the data to fit on my projection. So far I created the map in Mapbox with ...
2
votes
1answer
29 views

How to install additional driver to GDAL installed with apt-get

I have installed GDAL 2.2.3 on Ubuntu 18.04 using apt-get. I'd like to add the GeoJSONSeq driver. How can this be done?
0
votes
0answers
42 views

After shapefile to GeoJSON conversion coordinates look wrong?

I have downloaded a shapefile of Iceland. Here is the source: http://www.arcgis.com/home/item.html?id=7a21f6f05b8d45848ed16298cbf96d59. I then converted the shapefile to geojson, using this tool: ...
0
votes
1answer
38 views

How to get attribute data based on the GeoJSON you clicked Leaflet?

I'm trying to pull the attribute data from a GeoJSON layer. var neighLyr = new L.GeoJSON.AJAX("data/neighbourhood.geojson",{ }).addTo(mymap); neighLyr.on('click', function (e) { console.log(...
0
votes
2answers
33 views

Leaflet Feature bindpopup does not display (OnEachFeature)

I am attempting to have a click event popup with some data pulled from Wikipedia and displayed on my Leaflet map for each point that displays GeoJSON data. My data is displayed on map as you can see ...
-1
votes
0answers
9 views

Web mapping using GeoJSON file with Leaflet [duplicate]

How can I start web mapping using Leaflet using a GeoJSON file. I really don't know how to go about it.
1
vote
1answer
21 views

Identify the nearest feature from a GeoJSON file to a given point?

I am trying to identify the feature nearest to a given point. The features are lines modeling roads in GeoJSON. Example GeoJSON: { "type": "FeatureCollection", "name": "test", "crs": { "type": "...
-2
votes
1answer
33 views

Reading local GeoJSON file using ArcGIS API for JavaScript

I am using ArcGIS API for JavaScript 4.14. I change the "url" which only receive the "http"-start str to "data",but it didn't work. const geojsonLayer = new GeoJSONLayer({ data: "js/...
1
vote
0answers
62 views

GeoJSON as string to GeoPandas geometry Python

I have this (subset) Pandas dataframe: I read it from an XLSX file. I would like to convert it to geopandas GeoDataFrame. In order to do so, I need a valid geometry column. The GeoJSON column in my ...
1
vote
0answers
51 views

How to convert FEMA flood map (FEMA NFHL v3.2 kmz) to GeoJSON

TLDR: Using Python, how can I convert a kmz file to GeoJSON? It appears that the kmz file makes web service calls. Details: I downloaded the FEMA_NFHL_v3.2.kmz file from FEMA here: https://hazards....
2
votes
1answer
42 views

Draw a polygon from the mentioned data

I want to draw a polygon from the below JSON data from a GeoJSON file. However I am confused about the coordinates array since I believed they corresponded to a latitude and a longitude. But clearly ...
1
vote
1answer
57 views

Convert image from GeoJSON

I am trying to convert feature collection GeoJSON into image. I want to use geotools to convert. I tested the soultion from this post here. But I am really noob that I ran into some errors like this: ...
0
votes
1answer
36 views

Opening GeoJSON style properties in QGIS

I constructed a GeoJSON file (exemple below) that works fine with http://geojson.io. This GeoJSON file has style properties e.g. 'fill' (hex colour) and 'fill-opacity'. They appear on geojson.io but ...
1
vote
2answers
43 views

Finding geographic coordinates of shapefile using ArcPy with ArcMap

I want my Python script to check if the first coordinate in a GeoJSON polygon is within a polygon in ArcMap, and if so draw the polygon to a featureclass. My issue is that the GeoJSON file is using ...
1
vote
2answers
53 views

Python GeoJSON - TypeError: string indices must be integers

I am trying to iterate JSON objects and append selected features to new GeoJSON using geojson Python library. When hardcoded the script works fine. But when append method is used in a for loop I get ...
2
votes
0answers
33 views

Fetching the on-click data from the website into QGIS

I would like to fetch the on-click data into QGIS and show them as the placemarks. Basically the issue comes from i.e this website: https://eclipse.gsfc.nasa.gov/SEgoogle/SEgoogle2001/...
2
votes
1answer
73 views

Cannot get local GeoJSON file to load features on server hosted Leaflet map [duplicate]

The answers I have tried prior to asking this question: Loading external GeoJSON file into Leaflet map? Load external geojson file into leaflet map Issue in loading external geojson file into ...
1
vote
1answer
43 views

Layer.bindTooltip doesn't work in Leaflet

My objective is to plot polygons and assign a tooltip label to each one. For some reason, my code doesn't seems to work. poly_geojson = L.geoJson(poly_gon,{ onEachFeature(feature, layer) { ...
0
votes
0answers
20 views

Create PostgreSQL table from GeoJSON data FeatureCollection [duplicate]

I would like to store GeoJSON data into PostgreSQL database. WITH data AS (SELECT '{ "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": {"type": "Point", "...
1
vote
1answer
37 views

QGIS 3.10 attribute table change to default or modify when export the layer to different format

When I export my newly digitalized layer I noticed, that my data attribute changes. In the QGIS I set the data attribute table like this: but each single export to the different format change it, as ...
2
votes
1answer
43 views

QGIS transparent polygon returned after digitizing

After the digitalization of my raster map as per below: I saved it in .geojson format and .kml format. The geoJSON works fine: but once I export as a kml and open (in Google MyMaps), then I have ...
1
vote
2answers
122 views

GeoJSON does not appear on my Leaflet map

I'm a beginner in Leaflet and I need help to deal with GeoJSON files. I succeeded in creating a Leaflet basemap. I can add markers without troubles but I cannot manage to show a GeoJSON layer. Here ...
1
vote
1answer
53 views

Leaflet: Compare two side-by-side GeoJSON layers?

I'm trying to use the side-by-side plugin downloaded from https://github.com/digidem/leaflet-side-by-side. I want to create side-by-side GeoJSON layers to compare the cancer rates between the two ...
4
votes
1answer
101 views

GDAL VectorTranslate creates shards/fragments along anti-meridian

I have challenge to take a GeoJSON file and convert the CRS to WGS84/EPSG:4326 and also split the polygons along the anti-meridian. These are both in preparation for presenting the data via mapbox....
2
votes
1answer
57 views

Exporting a polygon shapefile to GeoJSON with the longitude and latitude switched to latitude and longitude

I want to integrate the GeoJSON of a shapefile into React.js to display it as an interactive map with OpenStreetMap used in the background as a tiled image. I have used QGIS to export the shapefile ...
1
vote
0answers
50 views

Tool Script for Geojson to Shapefile

I am creating an Arcmap tool script that takes user input and then takes a geojson file from a specified folder and then opens it into Arcmap as a shapefile. The issue I am running into is that I am ...
3
votes
1answer
50 views

Exporting GeoPackage layer to GeoJSON changes CRS from WGS 84 EPSG:4326 to OGC:CRS84

I'm attempting to convert a polygon layer from GeoPackage format to GeoJSON in QGIS 3.10.1. The original layer has a coordinate reference system of WGS 84 (EPSG:4326) which is what I need. Yet the ...
3
votes
1answer
41 views

Extracting/casting mixed geometry types to single type using ogr2ogr?

I have a GeoJSON file with mixed geometry types, something like this: { "type": "FeatureCollection", "features": [{ "type": "Feature", "geometry": { "type": "GeometryCollection", "...
0
votes
0answers
36 views

Using PHP on Webservers and PostgreSQL

I'm creating a general webapp that is displaying data from a Postgres database hosted on Digital Ocean. My problem is that I can't get the PHP script to run on my webserver(hosted by Hostgator) to ...
0
votes
0answers
34 views

Importing GEE python coordinate data into QGIS

I have a .csv file with data and coordinates for that data in GeoJSON format: {"geodesic":false,"type":"Polygon","coordinates":[[[-76.24486906575804,39.72835276629949],[-76.2445995711728,39....
1
vote
2answers
66 views

Dynamical refresh of Mapbox layers after drawing edits

I fetch some GeoJSON from a DB, and add them to my map. After I use the mapbox-gl-draw library for editing. My problem is that, after editing a feature on the map I would like to directly change it (...
1
vote
0answers
28 views

Leaflet geoJSON filteration clash with markerCluster and map.on zoomend function

I would like to solve the problem of mismatch between geoJSON filter data and zoomend function. I recently have managed my geoJSON filteration as per the example below: http://www.gistechsolutions....
0
votes
0answers
18 views

Finding adjacency matrix of GeoJSON object which is of type FeatureList in R

I am trying to find the adjacency matrix of several counties which I currently have in a GeoJSON Object, but I am running into issues. I have not worked with GIS data in the past, so this is my first ...
0
votes
0answers
16 views

How to use OGR layer creation options for QGIS Processing algorithm outputs

When saving outputs from Processing algorithms, is it possible to use OGR's layer creation options à la ogr2ogr? In my case, I'm trying to save .geojson outputs from the Refactor Fields tool with the ...
-1
votes
1answer
23 views

Filtered GeoJSON data don't return bindPopup

I have problem with my filtering data bindpopup Whereas my code looks like this: //If On-Hold is clicked. document.getElementById("On-hold").addEventListener('click', function(event) { ...
0
votes
1answer
21 views

GZIP geojson files & Mapbox GL JS

Is there a way to serve mapbox GL gzipped geojson files? I have style.json file that pulls multiple geojson files and it is pretty heavy.
0
votes
0answers
55 views

Selecting points within GeoJSON polygon bounds using Leaflet

I am thinking how to make my geoJSON polygon able to select points within its area: So far I have this option available for on-click marker wiuthin the radius given, as per the example below: http://...
1
vote
2answers
64 views

Error trying to upload data using Mapbox API

I'm using the Mapbox API and I'm trying to upload my GeoJSON but I'm getting the following error: bounds west value must be between -360 and 360 My GeoJSON looks like this: {"type":"...