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
4 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
14 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
-3 votes
0 answers
21 views

Unable to load GeoJSON File [closed]

I found a problem when opening geojson in either Mapshaper, QGIS, ArcGIS Pro or Geojson.io. When opened via geojson.io instead displays a message like the following Invalid JSON file: SyntaxError: ...
user avatar
-1 votes
0 answers
24 views

File size limit in OpenLayers

I have generated a GeoJSON file that is 2GB in size, When I try to open it in OpenLayers 6 it wont open. Is there a file size limit as even when I cut it down to 1GB it wont open? I can still open ...
user avatar
-2 votes
0 answers
15 views

I am unable to identify the KEY_ON from GeoJSON [closed]

import json import requests import folium import webbrowser import pandas as pd file_path= 'georef-canada-province.geojson' ca_geo = f'{file_path}' ca_map = folium.Map(location=[56.1, -106.3], ...
user avatar
1 vote
0 answers
29 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
30 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
18 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
0 votes
0 answers
45 views

Creating map boundaries or polygons from SVGs [closed]

I have regions of Croatia in SVG format and I want to put them on map (something like this). What I found out that when we what to mark some area on a map that we use polygon. Drawing by hand is not ...
user avatar
-1 votes
0 answers
22 views

Google Maps doesn't show my GeoJSON file after calling loadGeoJson

I am trying to show South African municipal boundaries on Google Maps but my file simply doesn't show using loadGeoJson, this is my code (taken from Google example): /** * @license * Copyright 2019 ...
user avatar
1 vote
0 answers
21 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
35 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
20 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
33 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
89 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
17 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
31 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
46 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
135 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
16 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
61 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
42 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
64 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
28 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
21 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
62 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 vote
1 answer
36 views

ArcPy to include None geometries features

I'm using ArcPy’s JSON To Features function and saving the output featureclass within a gdb. Some of the records in the input GeoJSON file don't have geometries but I want to keep them in the output. ...
user avatar
  • 531
0 votes
1 answer
22 views

How to pass header with L.GeoJSON.AJAX

I'm looking for a way to pass header keys and values. It's not entirely clear how i should do it. So this is the code, but the X api key part isn't working: myGeoJsonLayer = new L.GeoJSON.AJAX(...
user avatar
2 votes
1 answer
49 views

Why is h3.polyfill(geojson, 15) returning empty list for this polygon?

I have a polygon the size of an office block in WGS84 coordinate system. When I run h3.polyfill at resolution 15 it should return a large number of h3 res15 addresses whose centroids are contained in ...
user avatar
0 votes
2 answers
53 views

How to request GeoJSON standard be enhanced to support M-values

As far as I can tell, the GeoJSON standard doesn't support the M-dimension of linear referencing lines. For example, Oracle Spatial doesn't support LRS lines when using the SDO_UTIL.TO_GEOJSON() ...
user avatar
  • 778
3 votes
2 answers
213 views

Loading JSON data into QGIS

How do you load data like this into QGIS? { "href": "https://mapservices.crd.bc.ca/arcgis/rest/directories/arcgisoutput/Basemap/Basemap_MapServer/...
user avatar
1 vote
0 answers
38 views

Get GeoJSON from a VectorGrid.Protobuf layer on click event

I am trying to get the GeoJSON of a VectorGrid layer on a click event. Something like this: ... var vectorTile = new L.vectorGrid.protobuf(url, options).addTo(map) vectorTile.on('click', e => { ...
user avatar
0 votes
0 answers
16 views

Polygon Vertices Pixel are not integers

In a GeoJSON dataset there is the column 'polygon_vertices_pixels'. It says it contains the pixel coordinates of the vertices of the polygon on the matching image. But these values are not integers. ...
user avatar
  • 1
1 vote
1 answer
56 views

Leaflet geoJSON - function within setStyle()

I have 2 styling methods for countries on my map: style_init() for the initial style of a country, style_new() for when a country changes and I want to re-style it on the map: style_init(feature: any) ...
user avatar
1 vote
0 answers
81 views

Overpass Turbo: how to get public transport routes and stops with stop names?

I am searching metro and tram routes and stops, example Bilbao. With overpass turbo wizard on https://overpass-turbo.eu , I use type=route and route=tram or type=route and route=subway to create /* ...
user avatar
1 vote
1 answer
42 views

Merging two polygon features (GeoJSON file) using QGIS

i've seen this tutorial that explains how to merge two polygon features in QGIS. Doing it works, but when I stop editing the layer, I got a message Could not commit changes to layer drawingPolygons ...
user avatar
  • 189
1 vote
1 answer
118 views

Leaflet geoJSON tooltip coordinates

How can I manually set the coordinates for a tooltip in Leaflet with geoJSON? This is how I'm adding it to the map: layer.bindTooltip(country_name, { permanent: true, opacity: 1, direction:...
user avatar
0 votes
0 answers
29 views

Maximum KML file size to be allowed to convert to GeoJSON using Python kml2geojson library

I tried converting KML to GeoJSON using the kml2geojson Python library, and it works with less sized files like 10MB, 15MB,.. but it is not working with 45MB KML files.. import kml2geojson kml2geojson....
user avatar
0 votes
0 answers
26 views

Generate GeoJSON for map of building without Geographical base map

We have a CAD drawing of a building (DWG & DXF) and are looking to use that building map in an interactive chart with D3 and GeoJSON. I'm using a free online tool to convert the DWG to GeoJSON ...
user avatar
1 vote
1 answer
55 views

PostGIS: get Circle to GeoJSON

CREATE TABLE IF NOT EXISTS public.global_circles ( name character varying(64), geom circle); INSERT INTO global_circles (name, geom) VALUES ('My circle', CIRCLE(POINT(16.56115880637268,46....
user avatar
  • 85
0 votes
1 answer
12 views

R Markdown Knitting Produces Garbage

I don't even know where to begin on describing my problem. I made some maps in R Studio and when I knit the document, it gives me 30 pages of junk. I have selected the options to display the output ...
user avatar
1 vote
1 answer
42 views

Displaying pop ups for overlapping polygons in the same layer in Leaflet?

I am working on a leaflet map that shows property ownership over time with polygons and a time slider (https://github.com/jeffjb4488/GeoJASON_test). However, some of my polygons overlap and only the ...
user avatar
2 votes
1 answer
51 views

Providing parameters in a URL to select and zoom to a feature on startup [closed]

I have a Leaflet map with GeoJSON data that shows various properties and I would like to append a parameter like "owner" to a URL (not a coordinate) and have the feature selected and zoomed ...
user avatar
  • 21
0 votes
1 answer
75 views

Choropleth layer selection does not work in Leaflet

I am designing a simple prototype web mapping application where I want a user to be able to click on a dropdown menu and have the map's choropleth layer, choropleth legend, and hover info box all ...
user avatar
2 votes
1 answer
44 views

How to insert a coordinate into an LineString at a specific index

I have a LineString: [ [ -122.263923, 37.87459 ], [ -122.263942, 37.874587 ], [ -122.264151, 37.874534 ], [ -122.264231, 37.874511 ], [ -122.264285, 37.874495 ],...
user avatar
  • 23
1 vote
2 answers
74 views

reading geometries from a web service in python

I have some code that connects to a gis server, esr rest service, and returns the geometries of the features on that layer. I can pick html, json, geojson, kmz, and pdf as returns and I can export the ...
user avatar
  • 1,189
1 vote
0 answers
37 views

Are positions without decimals valid GeoJSON?

I'm trying to understand the https://datatracker.ietf.org/doc/html/rfc7946 specification. Are positions without decimals allowed or not? It says: A position is an array of numbers. There MUST be two ...
user avatar
1 vote
1 answer
41 views

Accessing GeoJSON properties after loading the WFS features on the map

I use the following code to get WFS features on the map. let WFSlayer = new ol.layer.Vector({ title: layer, source: new ol.source.Vector({ url: "/proxy/?layer_name=" + layer +...
user avatar
0 votes
0 answers
58 views

Shapefile > MySQL > Shapefile/GeoJSON

I have created a React application to display a Leaflet map, with a series of polygons over the top. The data source for the polygons is a GeoJSON file. As part of the app, I am giving the user the ...
user avatar
  • 1
0 votes
1 answer
51 views

GeoJSON Spec: What does it mean to extend GeoJSON without using a foreign member?

I'm confused at what these two parts of the GeoJSON spec RFC7946 are referring to You may have Foreign Members Members not described in this specification ("foreign members") MAY be used in ...
user avatar
  • 6,701

1
2 3 4 5
49