Questions tagged [json]
JavaScript Object Notation (JSON), is a lightweight, human-readable data interchange format.
453
questions
3
votes
2
answers
191
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/...
0
votes
1
answer
24
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....
0
votes
2
answers
45
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 ...
1
vote
0
answers
33
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 ')...
2
votes
1
answer
33
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 ...
1
vote
1
answer
20
views
Import line delimited geojson to single column
Given a large file of line delimited geojson:
{
"type": "FeatureCollection",
"name": "kitten_locations",
"features": [
{ "type": "...
3
votes
1
answer
71
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" : { "...
6
votes
3
answers
462
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":...
2
votes
1
answer
71
views
Field Calculator to get JSON text
In ArcMap 10.7.1 (with an Oracle 18c SDE.ST_GEOMETRY polyline FC):
I want to use the Field Calculator (Python) in the Attribute Table to get a feature's JSON text.
Pre-Logic Script Code:
-------------...
1
vote
1
answer
20
views
JSON data response
I need to obtain point features for UNESCO sites of italy in JSON format using :-UNESCO POIs (OGC API): https://demo.pygeoapi.io/master/collections/unesco_pois_italy. But unfortunately I am not able ...
0
votes
1
answer
155
views
Convert JSON to GeoDataFrame and append both geometry and filename
I am currently running an experiment on automating a task by merging information from various file types and doing a number of operations to achieve this.
Currently, I am reading a list of GeoJSONs ...
0
votes
0
answers
30
views
How to run and export zonal statistics for each feature of a Feature Collection in Google Earth Engine?
I'm building a JS script in GoogleEarthEngine. I am automating the code for many year to get a vegetation index (Enhanced Vegetation Index (EVI)) for each year. (code here).
I'm trying to get for each ...
1
vote
1
answer
102
views
Updated JSON not showing up in feature layer properties on ArcGIS Online
I wrote a script that will automate the overwrite feature layer process using a map object in ArcGIS Pro. When changes are made to the underlying data they show up on AGOL after running the script. ...
1
vote
1
answer
178
views
Importing JSON data from Internet directly to QGIS [closed]
I need to download and import data from a web like this
Berufsauspendler to QGIS, but with Python Console in QGIS. After that I need to store this Data in my computer.
I don't have much experience ...
0
votes
0
answers
42
views
Connecting GeoJSON and TIFF image for deep learning
I have GeoJSON coord:
{
"type":"FeatureCollection",
"features":[{
"type":"Feature",
"geometry":{"type":"...
1
vote
0
answers
27
views
How to run topojson from Powershell?
I have already installed node.js and used it to install topojson via npm install topojson. But when I run command like topojson input.geojson -o output.topojson, I get the familiar error of
topojson :...
0
votes
0
answers
54
views
How to convert style.json to Mapnik XML
I need to convert a style with JSON format to Stylesheet XML (in Mapnik).
is it a way that I can do that?
I want to create a custom style map and render it from the OSM (OpenStreetMap) server using ...
0
votes
1
answer
109
views
Keep same ID when copying webmap / web app map from ArcGIS Portal to another one
Webmaps are shared with an URL containing the ID.
Example: https://portal.com/portal/home/item.html?**id=8207f51d0c3d4b4193950beb2dcd21d4**
When a webmap configuration is replaced by another, for ...
0
votes
1
answer
124
views
Styling GeoJSON polygons with hatch fill in MapFish Print
I am working with MapFish Print (v3.23.1) and have a mix of layers for a map, some from GeoServer and some local GeoJSON files. I have GeoJSON polygons that I would like to apply a hatch pattern to, ...
0
votes
0
answers
124
views
Mapshaper exporting to .json not .geoJSON
For my Mapbox maps, I am trying to simplify my .geoJSON linestrings using Mapshaper prior to importing into Mapbox Dataset Editor.
My problem is when I export from Mapshaper, despite selecting Export -...
0
votes
2
answers
39
views
ArcGIS - Retrieve all data from REST service in GeoJSON format
The great state of Vermont publishes a number of datasets in ArcGIS:
https://maps.vcgi.vermont.gov/arcgis/rest/services/EGC_services/OPENDATA_VCGI_UTILITIES_SP_NOCACHE_v1/MapServer
I can create a ...
0
votes
0
answers
47
views
Accessing other Properties of GeoJSON Collection for Binding Details to Popup
I have a GeoJSON collection of coordinates and other properties.
I want it so that when each popup is clicked on the map it will show the relevant properties to that marker.
I have checked answers to:
...
1
vote
1
answer
152
views
Creating shapefile from JSON file in Python
I would like to create a polygon shapefile from this output in Jupiter. I can't use ArcPy. Is there any other way?
{'polygon': 'MULTIPOLYGON (((15.0512620 37.463320, 15.0512620 37.4743620, 15.0732421 ...
0
votes
1
answer
337
views
How to get around JSON Decode error while retrieving token from arcgis rest server?
I'm trying to create a script that lets a user check for non-nullable fields in all feature classes in all feature services published to a server. However, I'm running into an issue with just the ...
0
votes
0
answers
88
views
GEE: How can I create error matrices from a large list of feature collections?
I have a list of feature collections, from which I want to produce error matrices. If I select one FC and create an error matrix I have no issue. If I use map to create 3 or 4, it usually works. If I ...
1
vote
2
answers
94
views
Geometries are exported wrongly from PostGIS to Mapbox
I am trying to export some features for UK from PostGIS to Mapbox, in PostGIS seems that geometries and everything is correct but when I upload the layer to Mapbox it appear with weird geometries.
...
2
votes
1
answer
52
views
Tippecanoe throw several errors
I am trying to create a mbtile by using tippecanoe joining few *.json files:
tippecanoe --read-parallel -o name_of_dataset.mbtiles --minimum-zoom=13 --maximum-zoom=16 -l name_of_layer /path/to/where/...
1
vote
1
answer
203
views
QGIS label expression to print "key:value" from a list of dictionaries (coming from an http vector source) in the print layout
Context
In a QGIS 3.16 project, I have a vector data source defined as a connection to a REST API (Python backend):
From the /authors endpoint of the API, I fetch this nested JSON object:
'[{ "...
0
votes
0
answers
26
views
Strange `path` data in ArcGIS JSON response
Our local government runs a MapServer with geo data about the county land, property parcels and such. They provide this data as a bulk download, but some layers are missing. I decided to extract a ...
1
vote
0
answers
26
views
Loading JSON with image link and extents into ArcGIS Pro
One of the ways to get data from ArcGIS REST API in image format is this.
https://services.twdb.texas.gov/arcgis/rest/services/Base/BaseLayerQueryService/MapServer/export?bbox=-11360770.018835%...
2
votes
0
answers
181
views
Load GeoJSON file into GeoDjango database
I am trying to load a GeoJSON file into my database (django.contrib.gis.db.backends.postgis) without success.
models.py
class Node(models.Model):
network = models.ForeignKey(RoadNetwork, ...
0
votes
1
answer
364
views
Python: Converted JSON to GeoJSON format (rfc7946) is in Coordinate system WGS84 but has to be Lambert72
I have some code to convert a JSON object requested from an API to a GeoJSON object based on the standard rfc7946. You see the data requested from the API was not actually a GeoJSON formated so I had ...
0
votes
1
answer
38
views
Show sensor node location in QGIS MapCanvas
I have a Postgres db storaging data from a mobile sensor node, and want to show the location in a QGIS MapCanvas.
Data is in a column in a jsonb format (Location and temperature).
I'm trying to use a ...
0
votes
1
answer
991
views
How to identify correct key_on parameter from JSON file for Folium Choropleth
I'm trying to make a Folium Choropleth map. But I'm stuck for long time on completing it. My map shows boundaries correctly, even shows legend correctly but the map is not filled with choropleth ...
3
votes
1
answer
122
views
Defining zoom on tileset extents using CesiumJS
I work on windows 10 with Cesium 1.72.
NodeJS and Cesium work well.
I succeed in adding a tileset format3D tiles (Meshs + associated texture).
However, I would like to define a zoom on my tileset ...
0
votes
0
answers
63
views
Problems using the QGIS Db Manager and accessing a PostGIS file with a JSON field content to plot up JSON attribute content
Using the QGIS (Madiera) Db Manager window and accessing a PostGIS file to try and plot up some of the JSON file content on to an existing QGIS basemap. I am not a QGIS (or GIS) superuser!
I have ...
0
votes
0
answers
410
views
Transforming NetCDF into JSON using Python for dynamic display (with movement) using JavaScript
I have NetCDF data and am trying to transform this into JSON, using Python, to then use in a web sig (NCWMS server).
By transforming this into JSON, could I display this same data dynamically (with ...
0
votes
0
answers
118
views
Choosing coordinate reference systems for esriGeometryPolygon in GeoPandas
I extracted a layer of parcel
Geometry Type: esriGeometryPolygon
and save as JSON, this is a fragment of one row of this JSON:
{
"attributes": {
"OBJECTID": 171195,
&...
0
votes
1
answer
33
views
Return geocode information with Carto
I'm using the Carto API for a few functions and I'm looking for a way to return geocoded information similar to how Google does it here. With Google, you make a call with the Address like: https://...
0
votes
2
answers
272
views
GeoJSON Datastore and GeoServer
I found a way that should allow to use (Geo-)JSON flies with GeoServer: An unsupported GeoTools GeoJSON Datastore (thanks to this answer)
Here is a link to the jar: https://mvnrepository.com/artifact/...
0
votes
1
answer
120
views
Using large data JSON file in Leaflet markercluster [closed]
I want to show the JSON file consisting of many points on the map using the leaflet marker cluster plugin.
My JSON file looks like:
[
{
"json_featuretype" : "Output",
"...
0
votes
1
answer
106
views
FME Desktop - json Extractor Transformer Error
I have a workbench which takes a JSON file and uses the following transformers to parse the data: JSONFragmenter, JSON Extractor and a vertex creator.
I am getting warning errors in my translation log ...
0
votes
1
answer
42
views
Find number of features in ArcGIS MapServer layer
Given an ArcGIS MapServer layer URL (eg https://gis.dallascityhall.com/wwwgis/rest/services/Sdc_public/Zoning/MapServer/15), how can I find (preferably in JSON format) the number of total features in ...
1
vote
1
answer
308
views
Publish JSON with GeoServer
I generated a JSON by a PHP script and now want to load this JSON to GeoServer. So far I just found ways to publish SHP files but not JSON...
1
vote
0
answers
50
views
Access coordinates from a firebase database
I want to access the coordinates from a firebase database in order to add them to my web map.
The structure of the data looks like this, and there around 12,000 sets of coordinates.
In my python ...
2
votes
1
answer
193
views
Adding metadata from JSON file as text to QGIS print layout
I have a have a static URL pointing to a json file on the web that I load to QGIS. It is updated regularly. In the source, before listing the features, it contains metadata, between else a line "...
1
vote
1
answer
127
views
Multiple Json files conversion to feature class using ArcPy
I am a beginner in Python.
I am migrating from visual basic.
I have multiple .json files that I want to convert them all in one script using python to a file Geodatabase:
What is the issue in the ...
1
vote
0
answers
144
views
GeoServer REST WorkspacesAPI.postWorkspaces call by a Swagger client fails: "CannotResolveClassException: name". Unexpected JSON content received
Using GeoServer 2.18.2 REST API by a Swagger Java client generated from workspaces.yaml (taken from documentation page), I attempted to create a workspace through this small test code, under Spring ...
1
vote
0
answers
65
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
1
answer
147
views
How to get 'GetPropertyValue' result in JSON format in geoserver?
I have tried adding outputFormat = application/json but not working :( my URL looks like this
http://domain/geoserver/wfs?service=wfs&version=1.3.0&request=GetPropertyValue&typeNames=...