Questions tagged [json]

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

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

GeoJSON as string to GeoPandas geometry Python

I have this (subset) Pandas dataframe: I read it from an XLSX file. I would like to convert it to geopandas GeoDataFrame. In order to do so, I need a valid geometry column. The GeoJSON column in my ...
0
votes
0answers
14 views

Extract ways and corresponding nodes from .json file of OSM and save to CSV

I fetched the highways data from turbo overpass API, and save the result in json file. OSM json has very nested document structure. I want to get the ways and their corresponding node IDs from json ...
1
vote
1answer
140 views

Importing JSON or GeoJSON in Google Earth?

I was wondering if it was possible to import layers such as GeoJSON layers on the web-based version of Google Earth? I didn't find any resources online but for the pro version and only for ...
1
vote
1answer
42 views

Fetching the leaflet map with plain JSON data

countnuing the problem from this query: Import pure (regular) JSON file to Leaflet I have trouble with input the plain .json data to the leaflet map. I tried 2 ways to do this: I attached the .json ...
1
vote
1answer
35 views

Import pure (regular) JSON file to Leaflet

I would like to add pure JSON file to Leaflet. Saying "pure" I mean plain JSON structure that is not GeoJSON compliant. There are lot of examples advicing how to add GeoJSON files: Leaflet load JSON ...
0
votes
0answers
13 views

What is the intended workflow for making regular updates to a feature layer on ArcGIS Online?

I've been managing a portal on ArcGIS Online now for a while and since it's inception I've probably been doing things in ways that are harder than they need to be. In addition to many static layers I ...
0
votes
0answers
49 views

Loading JSON/GeoJSON multipolygon data from the external domain onto Leaflet map

I'm making my own map for the personal use only and at the moment my code looks like this <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=...
0
votes
0answers
16 views

Updating GeoJSON properties onPress Event

I'm new to Mapbox GL and I am creating an indoor map using react native that consist of parking slots with a green or red color based on the properties of the JSON file. The question is how to ...
0
votes
0answers
37 views

Changing bad coordinates of GeoJSON shape to coordinates of another GeoJSON shape?

I have two GeoJSON file one with true coordinates, one with wrong coordinates with labels. They both refer to the same geographical object: districts in Georgia. I would like to convert the ...
1
vote
0answers
43 views

Loading JSON data in QGIS and matching it with GeoJSON layer on `id`

I am new to QGIS and I'm trying to add a JSON file with data to a GeoJSON layer by using the same "id" they have in the "properties" field. I have a GeoJSON file with ids: { "type": "...
0
votes
1answer
32 views

3rd party JSON into ArcGIS Operations Dashboard

I have a 3rd party JSON response of coordinates and attributes coming from SQL Server via WebMethods and want to get it into an ArcGIS Operations Dashboard. I can't seem to find a straightforward way ...
1
vote
0answers
35 views

Draw several lines to represent the distance to a certain point for several points

It gives a certain point that I want to analyze. I want to see what is the distance of that point from the rest of the x points on the OpenLayers map ... The data comes from external JSON in the ...
1
vote
0answers
22 views

PostgreSQL points to line error [duplicate]

I have GPS locations with date. These are points. I want to convert the points to lines, sorted by date. Using PostgreSQL Tried: SELECT observations.id, ST_MakeLine(observations.geom ORDER ...
1
vote
1answer
57 views

Viewing ArcGIS Pro layer as JSON to illustrate CIM (Cartographic Information Model)

In order to work with the Cartographic Information Model (CIM) from ArcPy with ArcGIS Pro I am interested in viewing the JSON for a particular layer. In a YouTube video from Esri's 2019 Developer ...
0
votes
0answers
23 views

Using QGIS Queries With ArcGIS Server FeatureServer

I am trying to load USGS Transportation Vector Data from the US National Map data set. REST Link: https://carto.nationalmap.gov/arcgis/rest/services/transportation/MapServer If I use the feature ...
2
votes
2answers
207 views

Loading .json files into Leaflet and filtering them [closed]

I am new to web development and Leaflet/GIS in general. I have a couple of shapefles, let's say they are roads.shp and utilities.shp. And let's say I have the means to convert these shape files into ....
1
vote
2answers
70 views

Leaflet search plugin for $GetJSON function

I want to make my markers researchable in JSON layers. This is how the code looks for GeoJSON layers (imported as a .js file) var openreach = L.geoJSON(openpoor, { pointToLayer: function (feature, ...
1
vote
1answer
113 views

Leaflet markers from multiple JSON layer within the radius given after layer selection

Continuing the issue with the multiple JSON layer selection with leaflet: Leaflet select markers from multiple JSON files within the radius given I was trying to put a step forward and make the ...
0
votes
0answers
31 views

Leaflet map - legend with custom icons

Continuing the query: Leaflet GeoJSON legend with custom icons I am struggling with the implementation of the custom icon to the legend. I found an another example also here: http://www....
0
votes
0answers
52 views

Nest a dictionary in JSON with Python for GeoJSON properties

Using the Python GeoJSON library I am creating a feature collection of MultiPolygons. I cannot find a way to include properties (attributes) in the features. I have tried: features = df.apply( ...
2
votes
0answers
32 views

JSON file fails to open

I have a file that has no extension. This file resides on an internal web server and it's called by a web map application based on django python. It looks like : > {"crs": {"properties": {"name": ...
1
vote
2answers
252 views

Leaflet select markers from multiple JSON files within the radius given

Continuing work with the issue presented here: Leaflet - select markers within the radius given with details provided I am going to a further step and I want to use more than 1 json file to fetch ...
0
votes
1answer
259 views

Changing image size in JSON file [closed]

I am wondering how to change image size, available under the link in JSON file. I base on the example: http://www.gistechsolutions.com/leaflet/DEMO/baseball/BaseballPanel.html which uses a links ...
1
vote
1answer
96 views

GeoJSON file generation based on MS Excel

I am wondering how to CLEARLY generate the JSON file from the data based in Excel file. I know some ways to do it, although as a result I have got sth like this: {"type":"FeatureCollection","...
0
votes
1answer
57 views

OpenLayers Get Column Value Of Currently Selected Feature Having JSON Data Source

I have a service that return data in json format as the following snippet: {"type":"FeatureCollection", "features":[{"type": "Feature", "id": 1, "sheet_no": "NF4011D", "geometry": {"type":"...
0
votes
0answers
94 views

Requested JSON parse failed while getGetFeatureInfoUrl

I am trying to get the feature attributes from WMS service published in GeoServer and showing the attributes as a popup in the .NET application. When I make an Ajax call it gives "requested JSON ...
0
votes
1answer
121 views

Get field value: JSON response from feature service [closed]

I have JavaScript in work order management software: load("nashorn:mozilla_compat.js"); importPackage(java.util) importPackage(Packages.psdi.server) var ctx = new HashMap(); ctx.put("url","https://...
1
vote
1answer
53 views

Interpreting JSON lat/lon data from an ESRI interactive map?

I got access to some data from an ESRI-based interactive map and I am trying to make sense of the data. In particular, I'd like to extract the geometry of some shapes. Below is a snippet of the JSON ...
1
vote
0answers
31 views

Using ArcPy.AsShape results and converting them to feature class?

I have a GeoJSON that I'm trying to convert to a feature class or shapefile using ArcPy. The original GeoJSON is taken from a web link here: geojson Here's a sample of the GeoJSON: { "type": "...
2
votes
1answer
142 views

Getting ExecuteError: ERROR 001558: Error parsing JSON file in ArcPy?

I'm trying to convert some open-source data in JSON format to a shapefile for use in ArcGIS Desktop. I'm attempting to do this in ArcPy with ArcMap 10.7. The data I'm trying to access is here, in ...
1
vote
1answer
121 views

Leaflet load JSON data

Does my code have problem? Because if I run in Visual Studio, it doesn't show error, but the file didn't load on my map. I put the JSON file and HTML on my desktop. This is my code : ...
1
vote
1answer
35 views

Updating gdb with JSON?

parcelsFC = os.path.join('temp.gdb',JsonDirectoryLocation) arcpy.JSONToFeatures_conversion(parcelsFC) Created gdb with above code. How can I add attributes to gdb with another JSON file?
0
votes
0answers
32 views

Adding JSON layer in Leaflet just like GeoJSON data? [duplicate]

I am trying to add different layers to a leaflet map. Now i really want these layers in order to add features like zoom. With GeoJSON file this was easy but I am not getting a good way to plot array ...
0
votes
1answer
617 views

Leaflet marker popup link from outside of map dynamically

I am using Leaflet JavaScript library to show some earthquake informations. You can able to see few red circles on map. When you click that red circle it will display few details in popup. I want to ...
0
votes
1answer
89 views

Loading GeoJSON file into map in Leaflet

I put my GeoJSON file on my desktop, I don't know why my file can't load to the map. My code: <html lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> <head profile="http://gmpg.org/xfn/...
1
vote
0answers
214 views

Convert SHP to JSON

I need to convert shapefile to JSON in the following data structure.How can I do this? { "field": [ { "latitude": 52.8812385372, "longitude": 6.9287692025 }, { "...
1
vote
2answers
91 views

Why the icon can't display with my JSON data on Leaflet

I tried many time, but the icon didn't show on the map. I want to know what the problem on my code. This is my code: <!DOCTYPE html> <html lang="en-US" xmlns="http://www.w3.org/1999/xhtml"&...
0
votes
1answer
171 views

Showing GeoJSON result on Google Maps [closed]

I have some points result query in MySQL database which is GeoJSON and I want to show these points on a Google map. I need to get this result with AJAX and deliver them to Google Maps. Can anybody ...
2
votes
1answer
87 views

Convert Java object to JSON with jackson

I am trying to read the data from a shapefile and once read, I want to convert it to a JSON file. To read the data I'm using the geoTools library, and to write to JSON, I use the geojson-jackson ...
0
votes
2answers
1k views

How can I convert KMZ file to JSON?

I'm writing a ArcGIS JS project, in which user will upload KMZ which will be displayed on map, since ArcGIS doesn't have a magic trick to do it, I want to convert KMZ to JSON (or KML) and then display ...
0
votes
0answers
123 views

Multiple point add in OpenLayers maps with ajax request

I want to display multiple points in the database on the OpenLayers map. Points are in the form of gps coordinates. Here is the code that we have done so far: <?php $con = mysqli_connect("...
0
votes
0answers
127 views

Creating a Leaflet Overlay from JSON

I am trying to make an interactive map using leaflet where the user can toggle an overlay of multi-polygons. So far the following code works using a checkbox to display dummy point data, and radio ...
2
votes
2answers
333 views

Date and geometry from JSON objects to Google Earth Engine?

I would like to know if there is any way to get the geometry and date data from a JSON object. I'm putting the coordinates and dates by hand but all my data comes from JSON files that have either the ...
0
votes
1answer
23 views

Get Feature Service syncCapabilities with ArcPy

I'm working on an ArcPy script to test layers. I have either an arcpy mapping module layer object, or a feature service URL as a text string. I wish to get the feature service's capabilities, in ...
2
votes
0answers
62 views

Performing viewshed analysis from each pixel (now points) in raster and getting JSON out of it using QGIS? [closed]

My question can be divided in 3 steps and I guess I can answer 1.5 of them already. To perform the viewshed analysis from every single pixel in a raster I will need: A viewshed plugin (which I am ...
1
vote
0answers
26 views

JSON response to shapefile [closed]

I'm collecting road accidents from an API through a Python request and getting my response as JSON. The JSON response contains coordinates and general information as below. {u'RESPONSE': {u'RESULT': ...
0
votes
0answers
30 views

View the output of GP Server

My geoprocessing tool has 2 inputs 1 output. 1st input parameter type is a feature layer 2nd input parameter type is a String 3rd output parameter type is a shapefile when I run it, the window was as ...
2
votes
0answers
56 views

Creating features from JSON without writing to disk first using ArcPy?

In ArcPy, I want to use JSONToFeatures_conversion, but I'm working with data that I pulled from a web service. I have no need to save the data to disk. So, I thought I could do something like this: ...
0
votes
1answer
291 views

How to determine which point lies in which polygon from a list of multiple polygons

I am new to python and currently working with Json file and I need to determine the location of each tweet and represent the grid in which they are present with the count of tweets in each grid cell.I ...
-1
votes
1answer
229 views

Searching Polish districts in JSON

I am looking for a map of polish 'powiaty', eng. 'county' or 'district' (i.e. second-level unit of local government and administration in Poland, equivalent to a county, district or prefecture) in ...