Questions tagged [geojson]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Given a GeoJSON or shapefile, how to find the land area of each feature?

I created my own congressional plan of California and want to calculate the land area (not the total area) of each district. How to do this given the corresponding GeoJSON or shapefile? (I am ...
user avatar
1 vote
1 answer
51 views

Edit(Reshape) GeoJSON data coming from database added on leaflet map

I have multiple buildings data displaying on map as GeoJSON, but we have to change their shapes while they are on map and update latest shape GeoJSON in database. How can I make GeoJSON editable on ...
user avatar
1 vote
0 answers
14 views

How to display multiple polygons on leaflet through psql-node-react

Want to display multiple polygons extracted from postgres database to leaflet map. However, no result shows on the map. My guess is that something wrong with geojson. my server.js const express = ...
user avatar
  • 11
0 votes
0 answers
29 views

Changing GeoJSON polygon style with mouseover on a marker in Leaflet? [closed]

I want to change GeoJSON polygon style with mouseover on a marker in Leaflet. Everything is OK, but when I hover nothing happen. Here is the code I end up with: var bandas = L.marker([6.71, 21.25], {...
user avatar
0 votes
1 answer
29 views

Leaflet GeoJSON Filter based on properties / attribute value

I'm trying to add a filter to my GeoJSON data. But I can't figure out where I should add this in my code. Pins are added to shipLayergroup. I want to filter by property KODE. (e.g. KODE = 1) var ...
user avatar
  • 571
-1 votes
0 answers
20 views

Looking for a project similar to UN CartoTile

I am looking for map data (geojson) that is similar in style to the UN CartoTile style of map found here: https://www.un.org/geospatial/mapsgeo/webservices. I found a site some time back that has this ...
user avatar
0 votes
1 answer
25 views

How to get all parcels of Mecklenburg-Vorpommern to GeoJSON? WFS export in QGIS seems to export part of the data only

I am aiming to download parcel boundaries of the German state Mecklenburg-Vorpommern. I found this geoportal, where this data seems to be available: https://www.geoportal-mv.de/portal/Geowebdienste/...
user avatar
  • 188
0 votes
1 answer
26 views

Can't get OpenLayers vector layer to display (loaded by AJAX)

I can't get the vector layer (loaded by AJAX to display). Spot my error? I confirmed the GeoJSON returned by the server is correct. var vectorLayer; function showMap() { var fill = new ol.style....
user avatar
0 votes
0 answers
52 views

Check if a latitude/longitude fits into a polygon

I am using the CSV of this dataset (https://data.cityofnewyork.us/Public-Safety/Police-Precincts/78dh-3ptz) in order to figure out, given a user's longitude and latitude, which police district a user ...
user avatar
0 votes
0 answers
23 views

Display vector points in MapBox from S3

I have a shapefile with around 14 millions points that I want to display in MapBox on a web application. The only documentation around displaying points I can see is by using MapBox tiling service, ...
user avatar
0 votes
1 answer
49 views

Python from GeoJSON to js file

I have created a GeoJSON file from a csv file and now I want to create a .js file to use in Leaflet map. I´ve managed to append the "var data =" but the output file doesn´t have proper ...
user avatar
  • 35
1 vote
1 answer
22 views

Leaflet GeoCSV popups are not being displayed

I am using the Leaflet GeoCSV plug in to try and add markers with popups to my map. With the help of this post, I have been able to add the markers to the map, but I still want to add a popup to the ...
user avatar
  • 73
0 votes
1 answer
39 views

Using "CASE WHEN" and "IN" condition in MapBox GL JS?

I would like to set data driven style for a layer in MapBox GL JS. I want to use two fields: "category" (string) and "status" (string) and display the points with custom SVG icons. ...
user avatar
  • 190
0 votes
0 answers
28 views

Overpass API in terminal, get a parsed GeoJSON for QGIS

When I'm creating a OSM API Overpass request as follows [out:json][timeout:3000]; area[name="Vendôme"]; node[shop=supermarket](area); out meta; Download the data through overpass wget -O ...
user avatar
1 vote
1 answer
177 views

Loading of local CSV file blocked by CORS policy in Leaflet

I am using the the Leaflet Geocsv plug in to display markers with popups from a csv file. When trying to aacess the file my Chrome Browser puts out this error message: Access to XMLHttpRequest at '...
user avatar
  • 73
1 vote
1 answer
45 views

Setting layers from GeoJSON property

I have a .js file with 19000 entries from where I want to create layers from a feature.properties.Issue. I have tried diferent approaches I have found in here but for some reason the layers are not ...
user avatar
  • 35
0 votes
1 answer
35 views

Leaflet GeoCSV Marker not visible on map

I am trying to load data for a Marker from a csv file and I am using the GeoCSV plugin for that. I downloaded the js file and added it to my code and also created a csv file in Excel which looks like ...
user avatar
  • 73
1 vote
1 answer
29 views

CRS.Simple coordinates from SVG for GeoJSON in Leaflet

I am working with CRS.Simple in Leafleat. The y-coordinates from the SVG don't match what I'm supposed to use in GeoJson. I do not want to calculate them manually. How to use coordinates from SVG so ...
user avatar
2 votes
1 answer
48 views

Styling Leaflet markers according to property in GeoJSON file

I´m trying to place markers on a map according to some properties on the GeoJSON file, but for some reason it doesn't work. I have a JSON file which have a property named Issue and that´s what I want ...
user avatar
  • 35
0 votes
1 answer
19 views

Crop a large point cloud with GeoJSON defining the geometries of sub point cloud

I have a large point cloud (a city model) and would like to get the point clouds of every building in the city. I already have the GeoJSON file with the geometries of every single building in the city....
user avatar
  • 1
1 vote
1 answer
118 views

How to split large GeoJSON in small chunks

I am trying to split Microsoft building data for Pakistan. It's size is 6gb. I am trying to use geojsplit to split the large GeoJSON file into small chunks, but it giving me this erro: File "C:\...
user avatar
0 votes
1 answer
24 views

Shapefile to PostGIS to GeoJSON - co-ordinates

I'm trying to do what must be a very basic and common operation: load a Shapefile into PostGIS, and then search within a bounding box, returning GeoJSON. Putting the Shapefile in like this, specifying ...
user avatar
0 votes
1 answer
22 views

Can't edit certain multilinestring lines of my GeoJSON file with GeoPandas

I'm using GeoPandas, Python 3.7. My job would be to edit a GeoJSON file, which contains reference lines, which are off by 30 centimeters + on the x axis. My file looks like this: I have to move the ...
user avatar
2 votes
1 answer
74 views

Set linestring color by property value in PyQGIS

I have a GeoJSON layer consisting of some LineStrings. Each feature has a color property: { "type": "featureCollection", "features": [ { "...
user avatar
  • 125
1 vote
1 answer
73 views

Checking intersection between polygon and geometry in GeoJSON

I have a GeoJSON file with different geometries(polygons). I'd like to find if my polygon intersects with any of the file's geometry. I am not going to paste the file here as it is a long one, but can ...
user avatar
1 vote
1 answer
24 views

Extract SDO_GEOMETRY line elements using index position / dot notation

SDO_GEOMETRY; Oracle 18c: Is there a way to extract elements from an SDO_GEOMETRY line using an index position / dot-notation in a SQL query? For example, extract the X coordinate of the second vertex ...
user avatar
  • 878
0 votes
0 answers
54 views

Protect my GeoJSON in Leaflet

My GeoJSON map is published by Leaflet, how can prevent download from user who want to steal it? I'd taken long time to prepare GeoJSON and I want to preserve my effort. Any suggestion? Do I need to ...
user avatar
0 votes
0 answers
25 views

Deploy GeoServer layer located in PostgreSQL as a vector layer to ASP.NET application

I try to deploy one of my GeoServer layers located in PostgreSQL named "ADA" as a vector layer to ASP.NET application. What should be the URL link? const merkez = ol.proj.fromLonLat([35....
user avatar
1 vote
1 answer
54 views

'NameError: name 'importos' is not defined' when loading GeoJSON file QGIS

I am trying to load a GeoJSON file in QGIS. But I am reaching some difficulties (I am on Mac Os). I am using the following code: import os import glob json_paths = glob.glob(r"/Users/name/...
user avatar
1 vote
0 answers
12 views

Executing Geojson2h3 on the browser without Nodejs

I am trying to execute Geojson2h3 on the client browser without Nodejs. I have imported the 'geojson2h3.js' javascript file. However, I am getting an error with the following code. I am hoping that ...
user avatar
0 votes
0 answers
95 views

React Leaflet layer without attribution properties

how to get layer attributes with geojson? I try to get attributes from leaflet layer, but layer does not currently contain data in e.target when i try click to Polygon. import React , { useState, ...
user avatar
1 vote
0 answers
34 views

Isolated marker won't be displayed when filters are applied to be the single one amongst nearby clusters

I have markers all around the world, thousands of them. In some areas more close to each others, in other areas some even have a number of countries between them. Let's take the SINGLE marker in ...
user avatar
  • 11
1 vote
1 answer
96 views

Extract shapes and shape data from GeoTIFF using Rasterio and store as GeoJSON

I have a GeoTIFF that has a black background and shapes using various colours and each point has a data value. I'm trying to use rasterIO to extract this GeoTIFF into a GeoJSON so it can be displayed ...
user avatar
0 votes
0 answers
37 views

RasterIO how to extract multiple shapes from geotiff rather than background

Im trying to convert my geotiff to GeoJson using rasterio, when I run the following code with rasterio.open("../media/temp/temp.tif") as dataset: # Read the dataset's valid data mask as ...
user avatar
1 vote
0 answers
48 views

Leaflet toolTip-display is a function of layer order

My map creates 3 Leaflet GeoJSON layers representing state, county, and town features collections. Each feature (in each layer) is bound to a tooltip by the onEachFeature option. The toolTip displays ...
user avatar
  • 31
0 votes
1 answer
452 views

Folium draw and highlight polylines with distinct colours from unique GeoJSON

Main gist I have a unique GeoJSON file (roads.geojson) that only contains multiple polylines. Each polyline represent a road. I want to display each entity (road/polyline) from that same GeoJSON (...
user avatar
1 vote
1 answer
82 views

GeoJSON to SVG, keeping properties (mapshaper)

I'd like to include GeoJSON values from an overpass-turbo query (features[0].properties.name) as attribute of the resulting SVG path. Using https://mapshaper.org/, the default includes the sibling @id:...
user avatar
  • 145
2 votes
1 answer
40 views

Find points which fall within specified distance to POI using Python

I have created a test shapefile containing 15 point features in EPSG:2157 and exported it geojson. Each point has been assigned an ID - e.g. 1, 2 ,3 , etc. They look like so: I now want to use ...
user avatar
3 votes
1 answer
472 views

'ValueError: Expected object or value' when reading GeoJSON file with Pandas

I tried to read a GeoJSON file with Pandas, but I got a ValueError message: 'ValueError: Expected object or value' Here's the approach I used: import pandas as pd geojsonPath = r"Z:\dems\...
user avatar
  • 31
0 votes
0 answers
22 views

Mixing JSON and GeoJSON in a Django answer

I want to retrieve two separate GeoJSON created from a PostGIS database with Django as well as some valuable information. Here is an example of what I would like to send back to the front end : ...
user avatar
  • 374
0 votes
1 answer
56 views

Is there a limit on the number of polygons shown by GeoJson on Leaflet?

I have 15,811 block groups of Texas converted as GeoJson. I am trying to show them using Leaflet.js. Surprisingly when I use all block groups, I cannot show them on index.html. What I get is the ...
user avatar
  • 28
0 votes
1 answer
57 views

Using Leaflet.motion plugin on geometry returned by WFS service?

I'm back with my Leaflet.motion service because I'd like to link it to an existing WFS service for easier and live updating. The Javascript plugin for WFS and Leaflet motion are: <script src=&...
user avatar
0 votes
2 answers
267 views

Using GeoJSON as input to leaflet.motion plugin in Leaflet

I'm interested by the script Leaflet motion. I tried to update the code to add a custom GeoJSON created from QGIS or any tool. But the current error is : leaflet.motion.min.js:9 Uncaught TypeError: ...
user avatar
1 vote
1 answer
19 views

Get only a filter value ols:PROPERTIES from this API response

curl --location --request GET 'http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=GetFeature&typeName=ols:ols&srsName=EPSG:4326&maxFeatures=1&format_options=...
user avatar
1 vote
1 answer
151 views

Adding GeoJSON layer to a Layergroup so that it shows as radio button in layer control?

I want to display both the basemaps and the overlaymaps with radio buttons in my LayerControl. I tried this via Layergroups and ran into some difficulties there. I have two GeoJSON layers that get ...
user avatar
0 votes
0 answers
80 views

Deselecting features when zooming to certain zoom-level in Leaflet

I am currently setting up a Leaflet map. I have a GeoJSON-layer and I filter it at a certain Zoom-level. So when I zoom out all of Europe is showing and when the Zoom-level is greater than 10 some ...
user avatar
1 vote
1 answer
166 views

Adding labels to first and last joint in polyline using Leaflet

I am new to Leaflet, I am currently trying to add two labels, at the first and last joint of my GeoJSON polyline. I tried to open tooltips directly on map and adding markers with coordinates and a ...
user avatar
  • 271
0 votes
1 answer
35 views

Having trouble with Mapbox Isochrone FeatureCollection return type

I'm making a call to the Mapbox Isochrone API to obtain a FeatureCollection with this code: string getIso = lng.ToString() + "," + lat.ToString() + "?...
user avatar
0 votes
0 answers
29 views

Append original shapefile projection definition to GeoJSON using Javascript

In our web application we upload shapefiles and convert them into geoJSON format. These shapefiles will be in different projections and I want to be able to add the original projection of the ...
user avatar
0 votes
1 answer
161 views

How to add image in Mapbox with turf.js grid

I divide the map into squares with Mapbox-GL and trufjs and the grid is created. I want to select some of these frames with the mouse and add pictures to the selected frames. The image should be above ...
user avatar

1
2 3 4 5
49