Questions tagged [json]

JavaScript Object Notation (JSON), is a lightweight, human-readable data interchange format.

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

Reprojecting shape data in QGIS

My json data is not projecting correctly. The shape should be in Mali. Can anyone explain how to adjust the projection? [ { "Country": "Mali", "Layer": "...
JaK's user avatar
  • 91
2 votes
3 answers
441 views

Converting a shapefile into a Power BI ready JSON file

I have a .shp file that I want to use in my Power BI dashboard, however I keep running into multiple issues. Because Power BI only accepts TopoJSON for its shape maps, I have to do some ...
jespergeospatial's user avatar
0 votes
4 answers
197 views

How to get a WMS GetFeatureInfo response with MapServer in JSON format?

I use Mapserver with the Leaflet JS library and I want to display some attributes informations of a raster file by clicking on the map. Therefore I use the GetFeatureInfo WMS request in order to ...
Julien's user avatar
  • 131
0 votes
0 answers
36 views

Preparing Mobile Map Package (.mmpk) Popups for Mobile Application

I'm working on creating a new layer for a mobile application built by one of our vendors. The application uses mobile map packages (.mmpk) for each layer. I noticed the application's file system is ...
Fire GIS Guy's user avatar
0 votes
1 answer
14 views

OpenLayers UTFGrid placeholders not resolved

I am trying to implement an UTFGrid layer on my OL 7.5.2 map, according to this sample: https://openlayers.org/en/latest/examples/utfgrid.html. However, when creating the layer, the placeholders in ...
ulrich's user avatar
  • 1,120
0 votes
1 answer
71 views

Extracting spatial information from a web map

I'm trying to extract spatial information from this website: https://www.ausgrid.com.au/Outages/Current-Outages Basically, they have a map showing all current outages and I want to get spatial data ...
Neil P's user avatar
  • 1
1 vote
1 answer
54 views

Populating attribute table string field with the features JSON geometry string (but excluding CRS) in ArcGIS Pro

Wondering if anyone can assist. I have a need to have the JSON geometry string of my features written into a text field of the features attribute table. Currently I use Calculate Field and then with ...
Alan's user avatar
  • 13
1 vote
0 answers
67 views

Spatial resolution and variable name for Microsoft building footprint data?

I am trying to work with the Microsoft building footprint data https://github.com/microsoft/GlobalMLBuildingFootprints They have collated all data here as json https://minedbuildings.blob.core.windows....
89_Simple's user avatar
  • 239
1 vote
1 answer
63 views

How do I turn dictionary object values into columns for .csv export?

I've trained a random forest classifier, and classifier.explain() gives a dictionary containing the following keys: 0: classes 1: importance 2: numberOfTrees 3: outOfBagErrorEstimate 4: trees I store ...
Matt's user avatar
  • 131
0 votes
1 answer
150 views

Import JSON file as table in Excel and visualize polygon geometry using ArcGIS plugin for Excel

I have a quest where I have to visualize the polygons in my local disk in Excel using ArcGIS plugin. Based on what I understand, I can only import it as a JSON file from the get data panel, but the ...
Ashmitha Nihar's user avatar
0 votes
0 answers
95 views

Querying CDSE stac via python

I'm trying to query Sentinel 2 data from the "new" CDSE stac (docs are here). The docs seems very low level and without any working example code. The problem I am facing is the only response ...
PyMapr's user avatar
  • 1,610
0 votes
0 answers
30 views

How to add addtional spatial data to 'qgis2threejs' programatically?

Is there a way to add additional data to the 3D model which exported from the 'qgis2threejs ' module? For example, if I create lines (with X, Y, Z(height) coords) in PostGIS could I load it into the ...
BHadh's user avatar
  • 79
4 votes
2 answers
699 views

Unesting JSON array in SQLite [closed]

I'm using DB Manager on QGIS to write a view. I want to "translate" unnest() SQL function, but I don't find the same in SQLite. SQL SELECT unnest(ARRAY['A','B','C']); unnest A B C The ...
GeoGyro's user avatar
  • 1,576
0 votes
1 answer
144 views

QGIS, trying to load / implement JSON file/data

I tried to implement data about power lines etc. derived from open infrastructure map in my own QGIS project. The projected data appears in a completely different style and verbosity The JSON metadata ...
bongoonko's user avatar
0 votes
1 answer
396 views

Can you grab a JSON file off of an AGOL feature layer using Python API

I need to run a daily script that checks if data hosted on AGOL matches source data in an enterprise geodatabase. I'd like to convert the enterprise geodatabase table and a JSON file containing the ...
geoJshaun's user avatar
  • 1,525
1 vote
1 answer
33 views

Error while trying to calculate zonal statistics in RShiny

I am trying to create a web-map app in RShiny where the user draws a polygon or other geometry on a raster and the app calculates the zonal statistics. The app runs OK until after I have created a ...
Konstantinos Sideris's user avatar
1 vote
1 answer
393 views

Use data from JSON file with Leaflet GeoJSON marker

I have a JSON file that I am fetching from and I would like to use the 'LAT' and 'LON' attribute to place markers. The problem is I am unable to see any markers appear. I think it's because the file ...
Nat's user avatar
  • 65
0 votes
0 answers
212 views

How can I force the update the view of a Hosted Feature Layer View that has a dependent view in ArcGIS Online?

Problem I have added two fields to the hosted layer ("fire_hydrant") and need to update the two associated views to reflect these changes. However, one view is a view of the first view, ...
Austin Averill's user avatar
1 vote
1 answer
74 views

ogr2ogr SQLite and json_each, filtering using WHERE does not work

using ogr2ogr I want to process a geojson file that has a JSON field (see minimal file below). I tried the following command to extract the description corresponding to group a from the JSON field: ...
Quantum Martin's user avatar
1 vote
1 answer
104 views

Get GeoJSON feature from a promise response in OpenLayers?

Openlayers 6.3.5 I am using an APIRest and a promise to request a PostgreSQL database : const test = fetch(`http://...`) .then(rep => rep.json()) .then(ope => { //ope in GeoJSON ...
Leehan's user avatar
  • 1,194
1 vote
1 answer
176 views

Loading geospatial data from GCS to BQ - JSON parsing error

I am in the process of loading a jsonl file from Google Cloud Storage (GCS) into Big Query (BQ). When I load in data directly through BQ, I am not having any issues. However, I have moved on to larger ...
MoreMeowbell's user avatar
0 votes
0 answers
224 views

Edit TileJSON inside MBTiles files

I want to upload a tileset (I created with tippecanoe) to mapbox. I receive the error: Metadata exceeds limit of 60kb Here: https://docs.mapbox.com/help/troubleshooting/uploads/ they suggest to ...
Lenn's user avatar
  • 1,097
2 votes
1 answer
732 views

Convert JSON data to geometry

I have been given some spatial data in a table in a format that I have never come across before and would like to convert it to geometry. How can I convert to geometry? I could use 'text to columns' ...
ffinnm's user avatar
  • 438
0 votes
0 answers
23 views

Loading non geometric JSON in QGIS [duplicate]

I try to import non geometric JSON data from a webservice into a QGIS project (version 3.18), as data table. These data could then be joined to a geometric layer with a common identifier. This JSON ...
gvatin's user avatar
  • 321
0 votes
0 answers
131 views

EsriJSON features not visible on OpenLayers layer

Why is this feature layer not visible on my OpenLayers map? https://services2.arcgis.com/V2PQwgZMTFfgM0Xu/ArcGIS/rest/services/Conservation_Lands_and_Easements/FeatureServer/0 const vectorLayer = new ...
Kirtan Desai's user avatar
2 votes
1 answer
397 views

Importing JSON as point layer into QGIS

I have a JSON file created by an API request. I wish to import this file directly into QGIS (ideally with a model or a Python script) so that with one click the data are on the project. I have tried ...
user207536's user avatar
2 votes
1 answer
730 views

Converting KML to JSON or shapefile in QGIS

I have a KML file open in QGIS and I want to convert it to JSON or shapefile, but many attributes are merged in one as you see in the picture in the description field as HTML code, how to extract ...
AYOUB's user avatar
  • 45
1 vote
1 answer
77 views

Is it possible to use two filters on one layer in maputnik

I'm using Maputnik and thunderforest to create a map layout and I want to show the English labels of a city only if they do not match with the original name of the city AND if there is an original ...
LennardDerudder's user avatar
0 votes
1 answer
208 views

Accessing JSON layer as a Leaflet layer outside the AJAX call

I have a had a JSON file as a layer in my Leaflet project. Now I'm trying to add it in the layer control. But somehow I can not add it. What's the problem? Here is my code: var states = "...
Nicola's user avatar
  • 83
3 votes
1 answer
988 views

How can I get to the updated coordinates from edited L.polygon?

There is a polygon come from api and I need to update coordinates with edit layer by angular-draw leaflet. Here is the html, <div style="height: 100vh;" leaflet leafletDraw ...
Nil's user avatar
  • 39
1 vote
1 answer
314 views

Adding a REST API GET response (JSON array containing individual GeoJSON features) as a new vector layer in QGIS

I'm trying to add a new vector layer in QGIS from a REST API endpoint. This endpoint actually returns a JSON array containing individual GeoJSON features, e.g.: https://api.sharedmobility.ch/v1/...
swiss_knight's user avatar
  • 9,776
1 vote
1 answer
2k views

Merge several JSON files into one CSV file

I have about 37 nested JSON files. The keys and the values are same in all the files. My objective is to combine the data in all the files into a single CSV file so I can analyze the output . I have ...
Edudzi's user avatar
  • 89
0 votes
0 answers
325 views

Features to JSON not working (Conversion tools, .geojson, ArcMap)

I want to export a feature layer to GeoJSON, but in attempts thus far, when I open the exported file in an online GeoJSON map service like geojson.io/ my file doesn't map. Particularly, maximum map ...
Ryan Stephenson's user avatar
0 votes
1 answer
303 views

GeoServer JSON URL valid on browser, but not valid on Python `requests`

I go to my GeoServer URL as JSON and I can see the JSON file, but when I pass in to requests module. This is my Python code: import requests baseurl = "http://someserver.com/geoserver/workspace/...
sutan's user avatar
  • 910
0 votes
0 answers
56 views

Merge separate polygons inside of a single JSON that do NOT share a boundary

I am trying to see if there is a way to merge/connect polygons that do not share a boundary with one another. As you can see from the imagine, these are two polygons that I'm looking to connect, if ...
Wins1897's user avatar
1 vote
1 answer
337 views

Converting nested JSON flight data into shapefile or similar

I am creating a visualisation/map of typical flight patterns over Los Angeles, California. I am interested not in live data, or even particularly recent data; rather, I am hoping to find a data set ...
thomasguide's user avatar
0 votes
1 answer
224 views

Meaning of this code for Mapbox layer styling

This is just a snippet of the code, but I'm trying to get a grasp on Mapbox interpolate/zoom syntax. "layerStyle": [ { "type": "line",...
Kevin M's user avatar
0 votes
1 answer
499 views

How do I add a label to a fill layer using Mapbox?

I have a layer of jurisdictions, and am trying to label them at a certain extent (about 1:750000) but I can't get labels to show up at all. I've got the following code: "layerStyle": [ ...
Kevin M's user avatar
1 vote
0 answers
80 views

Open ArcGIS Map Service tile layer in QGIS

I am trying to open this tile layer (https://www.arcgis.com/home/item.html?id=aa6ba39647df4bd4a58e3e06c8386b30) in QGIS. I know it is possible to connect to ArcGIS Map Service layers but when I use ...
Judiciary3221's user avatar
-1 votes
1 answer
2k views

Convert list of XY-coordinates into GeoJSON/Polygon geometry [closed]

From API-responce I get a long list of XY-coordinates of vertices where each coordinate is separated by comma. How can I transform this list into GeoJSON/Polygon geometry? ,"shape":[52....
Mapos's user avatar
  • 547
0 votes
1 answer
108 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 ...
500gabor's user avatar
1 vote
0 answers
77 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 : ...
BFlat's user avatar
  • 384
4 votes
2 answers
8k 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/...
Emily Haas's user avatar
0 votes
1 answer
574 views

Select SDE.ST_GEOMETRY as JSON text (using SQL)

I have a multipart M-enabled SDE.ST_GEOMETRY polyline FC (in an Oracle 18c EGDB): Using SQL, I want to select the geometry as JSON text: {"hasM":true,"paths":[[[0,5,0],[10,10,11....
User1974's user avatar
  • 1,114
2 votes
2 answers
952 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 ...
MrKingsley's user avatar
  • 1,443
1 vote
0 answers
159 views

Convert JSON URL to GeoJSON in QGIS 3.10 Coruna [closed]

I am using Python in QGIS 3.10 to convert a JSON URL into a GeoJSON. Here is the first part of the code : import requests r = requests.get(' http://environment.data.gov.uk/flood-monitoring/id/floods ')...
GIS Noh's user avatar
  • 191
2 votes
1 answer
55 views

How to fix QGIS fills inner contours of buildings

I have a .json file with building contours. I have enabled contour filling in QGIS to highlight the buildings. And for some reason, QGIS filled the courtyards of the buildings. Please tell me how can ...
Alex M's user avatar
  • 21
1 vote
1 answer
78 views

Import line delimited geojson to single column

Given a large file of line delimited geojson: { "type": "FeatureCollection", "name": "kitten_locations", "features": [ { "type": "...
Avocado's user avatar
  • 295
3 votes
1 answer
496 views

GeoJSON will load from variable, but not from file in OpenLayers

I'm trying to add a point to my open layers map from a file. To start with I loaded the json data from a variable. var data = '{ "type": "Feature", "geometry" : { "...
dwright's user avatar
  • 313
6 votes
3 answers
579 views

Import unknown text polygon format to QGIS

I'm trying to visualize this park in the DRC. Thinking it was a WKT polygon, I isolated one shape as a test and saved it as a CSV. Here {"attributes":{"OBJECTID":27,"NOM":...
JaK's user avatar
  • 91

1
2 3 4 5
10