Questions tagged [geojson]

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

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

Importing GeoJSON without duplicating values in properties

Here is the issue I am having, it should be fully reproducible. I am attempting to import a GeoJSON into ArcGIS Pro. The issue is that if one of the features has a property that the other doesn't, ...
1
vote
0answers
24 views

Getting JSON data from Google Maps [duplicate]

I have reviewed Getting polygon boundaries of City in JSON from Google Maps API? as well as the answers by german_martin and Kamil Latosinski. There are two critical weaknesses in Nominatim, using ...
1
vote
1answer
35 views

Dump multiple geometry columns of a GeoDataFrame to Features in a FeatureCollection (GeoJSON) instead of properties?

I have a GeoDataFrame with some of its attributes that are geometries (only the position is the one which was interpreted as the active geometry when loading the data from PostGIS): import psycopg2 ...
0
votes
0answers
20 views

Cannot access GeoJSON layer in react-leaflet

I asked this question on SO, but maybe someone here will know how to solve this. I am using React Leaflet to render Leaflet map and its GeoJSON component to render polygons. I am trying to implement ...
-1
votes
0answers
13 views

Use/get ID for Feature in GeoJSON Layer

I have several features in one GeoJSON layer and also assign an id to each feature. ... "type": "Feature", "properties": { ...
3
votes
1answer
66 views

Can't display GeoJson on map

I've generate the GeoJson below, but I'm not able to display it on map, neither on http://geojson.io/. I'm pretty sure it depends from my GeoJson but i don't understand why. What am i doing wrong? { ...
0
votes
1answer
35 views

How to contract geojson polygon

I'd like to convert the big red area to a smaller one (blue) by shifting their borders parallelly by a certain distance to inner direction. This is not equivalent to scale as the result shape will ...
2
votes
0answers
28 views

GeoJSON format (Geography) for posting in Postman tin PostgreSQL

I am trying to do an update posting on Postman for the first using PostGIS / Geography file type and I don't know where I am going wrong. I have included the model below of the table in pgamdin 4 / ...
6
votes
2answers
60 views

Saving two shapefiles into one GeoJSON

I have 2 shapefiles in QGIS (one point layer and one Line layer as shown in Figure). I am trying to save these two layers in one GeoJSON. I have seen some of the previous answers such as answer [1] , ...
0
votes
0answers
16 views

Adding GeoJSON API live feed as a layer in my AGOL web map

I've only ever added static CSV and GeoJSON content. How can I add one of the following links to my AGOL map as a dynamically updated live feed point feature layer? All Incident Data (.csv format) ...
0
votes
0answers
18 views

Getting all GB addresses [closed]

I've been trying (and struggling) for a week or so to best solve this problem. I need all GB addresses in a GeoJSON format with lat:lng coordinates. I first thought about downloading the OSM GB set ...
1
vote
1answer
27 views

Converting ESRI JSON to GeoJSON

I am having trouble converting an ArcGIS Online JSON output to a more standard GeoJSON format. I have tried the solution in this thread, but the answer is either deprecated or no longer working. Every ...
3
votes
2answers
52 views

Selecting all objects with specific value from GeoJSON in new variable

So I have a GeoJSON that I want to pull/filer/select all kitespots with a wind direction that includes "S" in Leaflet. (..and yes, am a beginner at coding..) var kitespots = { "type&...
-1
votes
0answers
22 views

How to call a API in proj4leaflet [duplicate]

I have created a geographical view of a point using Leaflet based on a coordinate system data. Since I'm using the coordinate system rather than lat and long, I'm using proj4leaflet for the conversion ...
0
votes
0answers
32 views

Loading GeoJSON file into ArcMap

I am using ArcMap 10.6.1. I have a GeoJSON file and I wanted to load into my map. I click on the add data option and go to the location where geojson file is stored. However, I could not see the ...
0
votes
0answers
19 views

Python code error invalid geojson

I have a javascript code that worked well , but when convert to python it's doesn't work and raise invalid geojson error . my code in java script is : var point = ee.Geometry.Point([52.55845586988192,...
0
votes
1answer
54 views

Passing GeoJSON API to Leaflet (proj4leaflet) map

I have created a geographical view of a point using Leaflet based on a coordinate system data. Since I'm using the coordinate system rather than lat and long, I'm using proj4leaflet for the conversion ...
0
votes
1answer
25 views

Creating a Rectangle in GIS using JSON

I am trying to use a USGS product called AppEARS to download data. I want all data across the world, but the interface wants me to specify a region. How can I write a JSON file that will allow me to ...
1
vote
0answers
31 views

Populating all city names from WFS file of a state in a drop down using OpenLayers 6 [closed]

How can I populate all cities' names from a WFS file of a state in a drop down? I am using OpenLayers 6 as mapping Libraries. Here is my code to add a GeoJSON WFS layer. //Adding vector source layers ...
2
votes
2answers
50 views

Adding GeoJSON properties when creating marker in Leaflet

I used a manual marker input development under Leaflet found on this website : http://www.gistechsolutions.com/leaflet/DEMO/basic/addmarker.html I have added two properties to the markers: name and ...
0
votes
0answers
20 views

Filter through geometries of a feature collection in Google Earth Engine to export as a shapefile

I'm trying to export a shapefile of administrative units out of GEE, but I get the error Shapefiles cannot contain multiple geometry types; found 'LineString', 'Polygon' Here is my code and the ...
2
votes
2answers
66 views

Showing WMS layer data and marker popup simultaneously in Leaflet

I need to show WMS layer information and if there are some marker or other layers at the same coordinate, it should show both data of WMS layer and marker information. But when marker covers wms layer,...
0
votes
0answers
17 views

GeoJSON EPSG::3857 to normal format (example normal format for Mapbox studio) [duplicate]

I'm really a novice in the field of the Geographic Information Systems (not to say that I don't know anything about it), but I retrieve via a WFS service some GeoJSON data. The problem is when I want ...
0
votes
1answer
36 views

Sorting GeoJSON features array by property value [closed]

I am looking to sort a GeoJSON file on a property so I can then slice it keeping only the top 5 features. For example, I wish to take this GeoJSON and sort the file in descending order by the ...
-1
votes
1answer
40 views

Plotting on map Leaflet when I GeoJSON that comes polygon and mutipolygon (in the same JSON) [duplicate]

I have a GeoJSON that comes with polygon and multipolygon geometry types. Can I plot it on the map anyway, or would it have to be different APIs? And if possible, how would I manage to do that? I have ...
2
votes
0answers
23 views

Upload of geojson to Mapbox studio showing strange artifacts

I want to upload Geojson data to Mapbox studio. The upload works correctly, but the data in Mapbox show artifacts, which do not exist in the original data. It seems that some vertex has a wrong ...
5
votes
2answers
157 views

Reading GeoJSON-String from CSV as Geometry in QGIS

I have a CSV which contains the geometry information as a GeoJSON string, e.g. { "type": "MultiLineString", "coordinates": [ [[10, 10], [20, 20], [10, 40]], ...
1
vote
1answer
77 views

Draw GeoJSON polygon over image returned by Mapbox in Python

I am trying to draw a polygon representing the GeoJSON on top of the image I get from a map returned by Mapbox. If I pass in the GeoJSON in the Mapbox REST API URL, I get the following image. . But I ...
0
votes
0answers
17 views

How to find the furthest coordinates on a polygon in a given direction

My task is to generate a box that maps over the existing polygon, which I’ll call the level. What I’m doing is mapping buildings with geojson, which does so by using a set of lat/long coordinates as ...
0
votes
1answer
29 views

Changing polygon color with external link GeoJSON file

I've done various ways to change the polygon color with external links, but only one color can be displayed, so I need help with changing and displaying more than one polygon color in the source code ...
0
votes
0answers
24 views

Have a common filter via GET variable for multiple GeoJSON layers in QGIS

I have a Leaflet page, that fetches various GPS tracks and data from a website and filters the resulting GeoJSON files via HTTP GET variables. If you want to get the data just for one day, I can use ...
1
vote
0answers
20 views

How to filter and show properties of features when clicked using Leaflet? [duplicate]

So, I'm mapping some features using Leaflet and want to be able to filter by date of the feature and also, when clicked, the feature will display some properties about it. I have yet to implement the ...
1
vote
1answer
26 views

QGIS 3 wrong conversion from QGIS layer to KML or GeoJSON file

I want to save my work as the .kml file Unfortunately, I've encountered a serious problem. Once loaded in Google Earth I have something like below or nothing. A similar thing occurs with the geoJSON ...
0
votes
1answer
39 views

Leaflet - remove data from layer?

I have a quite complex webapp with a lot of data on a map. Except the basemap, the data of each layers are coming from AJAX queries, witch's responses are formatted as GeoJSON object -- up to this ...
0
votes
0answers
14 views

QGIS Server WMS not displaying correctly in Google Earth Pro

So I'm serving up WMS using QGIS Server in Ubuntu 20 using Apache. It works fine when being consumed by QGIS or even online on OneGeology, but when I use Google Earth Pro there seems to be a problem ...
1
vote
1answer
66 views

How to add a polygon coodinates field instead of drawing it

I am working on a simple web mapping app using Django framework, and I am trying to add a geometric field where to insert polygon geometry's coordinates instead of drawing it manually (these ...
1
vote
0answers
22 views

Vector tiles from non-earth coordinates

I have a GeoJSON representing a fantasy world, with coordinates ranging from -3000 to 3000. I have successfully displayed it on a Leaflet map using L.CRS.simple, but the GeoJSON is too heavy and takes ...
0
votes
1answer
65 views

Calling marker-size from GeoJSON file in leaflet.js

I found marker-size: medium in the properties section in the GeoJSON file. so I want to call that marker-size, to be used in the PHP Leaflet code. So I need a solution for using this marker size and ...
0
votes
0answers
16 views

How to Change and Display Marker Color and Marker Icon in GeoJSON Leaflet? [duplicate]

I have two files, .geojson and .html format, I want to use and display marker-color and marker-symbol (marker icon) in .geojson file. How to? I've displayed the basic blue popup and marker with the ...
1
vote
1answer
40 views

Call marker color in Geojson to apply to leaflet.js in php

I have a geojson file which has marker-color properties in it. In this case I want to call the marker color contained in the GeoJSON file, to change the marker color. how to do this? GeoJSON data: ...
0
votes
0answers
30 views

Tooltip on Leaflet GeoJSON is in wrong place

I'm trying to label a shape drawn by GeoJSON data in a way that keeps the label visible even if part or most of the shape is off screen. The code I am replacing uses a marker given fixed coordinates ...
1
vote
1answer
56 views

Problem with using Fiona to write out GeoJSON objects to GeoPackage layers

I'm attempting to use fiona to write out a number of GeoJSON objects to different layers in a single GeoPackage. Here's an example json.dumps() representation of the GeoJSON object containing one ...
0
votes
0answers
26 views

Adding Folium GeoJsonPopup to a function

I have created a a function to create a Folium map that has colors scales based on the value, I am trying to add a option so that when I view/click and that region I could get a popup with the value ...
1
vote
1answer
43 views

Get extent of GeoJSON layer using OpenLayers

I have implemented geojson-vt to load a big GeoJSON file but the problem I am facing is I am not able to get the extent of the layer so that I can zoom in on the specific area in the map neither is ...
1
vote
1answer
31 views

Leaflet - Draw vector layer behind tile layer

I'm using Leaflet to create a map in which I need to render a tile layer on top of a GeoJSON layer: L.geoJson(...).addTo(map); L.tileLayer(...).addTo(map); The Tile Layer should be render on top. I ...
1
vote
1answer
52 views

Changing style of only selected polygons in L.geoJSON layer?

So, I'm going to show a lot of polygons in my Leaflet map but I need an id for each polygon, the URL comes in a path like this. In fact I wouldn't even need an id, if I could somehow get some ...
0
votes
1answer
54 views

Tippecanoe, OpenLayers: Vector tiles from JSON with custom extent

I'm using OpenLayers to display a large zoomable non-geographical map. So far, I've been using raster tiles. In order to improve the performance, I'm trying to switch to vector tiles. I've got the ...
1
vote
0answers
20 views

GeoJSON cluster, group points with the same id

I want to make a cluster with a GeoJSON, to obtain the file I query a table in PostgreSQL and I save the file. The same point can have several associated images, but according to the GeoJSON, it makes ...
0
votes
1answer
45 views

“unexpected character at line 1 column 1 of the JSON data”

I'm trying to add a Vector Lines into my OpenLayers Website by using GeoJSON and used the OpenLayer docs as a help. I think I did everything according to the example but neither my vector layers nor ...
2
votes
2answers
61 views

How to generate smallest possible country boundaries file

The problem i'm trying to solve is rather simple: Given any point X lookup the country Y which it belongs to Assumptions: Country boundaries are expected to be intersection free and have a reasonably ...

1
2 3 4 5
43