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
48 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 ...
  • 41
0 votes
0 answers
23 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 ...
0 votes
1 answer
18 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/...
  • 764
0 votes
0 answers
16 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 ...
-1 votes
0 answers
21 views

Nested JSON to GeoJSON [duplicate]

I have JSON data from a URL. I would like to unnest the information and format as a GeoJSON but am unsure of how to handle the nested attributes. There are both points and lines in my data and the ...
1 vote
1 answer
57 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 ...
0 votes
0 answers
35 views

Python bulk downloading issue

Here is my code to download the Landsat data. from landsatxplore.api import API import json username = 'username' password = 'password' api = API(username, password) ...
0 votes
1 answer
24 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",...
0 votes
0 answers
41 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": [ ...
1 vote
0 answers
20 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 ...
-1 votes
1 answer
195 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....
  • 479
0 votes
1 answer
30 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 ...
0 votes
0 answers
24 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 : ...
  • 374
0 votes
0 answers
10 views

map icon attribute popups

I have a code that plots points on a map for an Json file. I would like to have a pop up menu with some of the other attibutes in the json file when icon is clicked. I tried several examples but can ...
3 votes
2 answers
527 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
112 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....
  • 918
1 vote
2 answers
210 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,253
1 vote
0 answers
59 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 ')...
  • 61
2 votes
1 answer
36 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 ...
  • 21
1 vote
1 answer
34 views

Import line delimited geojson to single column

Given a large file of line delimited geojson: { "type": "FeatureCollection", "name": "kitten_locations", "features": [ { "type": "...
  • 275
3 votes
1 answer
162 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" : { "...
  • 163
6 votes
3 answers
480 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":...
  • 81
2 votes
1 answer
118 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: -------------...
  • 918
1 vote
2 answers
54 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 ...
  • 165
0 votes
1 answer
399 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 ...
  • 65
0 votes
0 answers
38 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 ...
2 votes
1 answer
239 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,465
1 vote
1 answer
346 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 ...
  • 31
0 votes
0 answers
61 views

Connecting GeoJSON and TIFF image for deep learning

I have GeoJSON coord: { "type":"FeatureCollection", "features":[{ "type":"Feature", "geometry":{"type":"...
1 vote
0 answers
38 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 :...
  • 1,169
0 votes
0 answers
84 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
194 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 ...
  • 1,015
0 votes
1 answer
182 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, ...
  • 1,396
0 votes
0 answers
248 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 -...
  • 1
0 votes
2 answers
63 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 ...
  • 275
1 vote
1 answer
651 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 ...
  • 33
0 votes
1 answer
473 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
2 answers
128 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. ...
1 vote
1 answer
81 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
257 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: '[{ "...
  • 6,993
0 votes
0 answers
28 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 ...
  • 101
1 vote
0 answers
30 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%...
  • 1,527
2 votes
0 answers
276 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, ...
  • 193
0 votes
2 answers
570 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
40 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
1k 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
239 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 ...
  • 731
0 votes
0 answers
86 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
620 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
144 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, &...

1
2 3 4 5
10