Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [json]

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

0
votes
0answers
5 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
11 views

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

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 ...
0
votes
0answers
14 views

How to create a grid with help of a JSON file which consist 16 values for different polygons [closed]

I have a JSON file which consist of polygon coordinates for 16 polygons. How do I create a grid and name the grid cell with the respective id of that grid cell, and in the end I have to compare which ...
1
vote
0answers
16 views

JSON response to shapefile [on hold]

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
10 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
44 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
0answers
35 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
48 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 ...
0
votes
1answer
59 views

Uncaught TypeError: L.GeoJSON.AJAX is not a constructor

I want to add my json files to leaflet using leaflet-ajax plugin. But it always says following error: Uncaught TypeError: L.GeoJSON.AJAX is not a constructor Why this error is showing in my code? ...
0
votes
1answer
30 views

Differences between Geoserver 2.15.0 and 2.11.0

I was doing a GetFeature request call to a WFS service in Geoserver in json format with my application. I had initially installed 2.11.0, then when I moved to 2.15.0 my app stopped running, I have ...
2
votes
1answer
83 views

Better performance for geohash aggregation with PostGIS

I'm using the GeoNames (https://www.geonames.org/) dataset and want to aggregate the points in geohash of a specific precision. Beforehand I'm filtering with an bbox. So this is the query I came up ...
0
votes
1answer
88 views

Converting JSON response into a GeoJSON layer in my Leaflet map

I need to convert a JSON response from Mapquest elevation API into a GeoJSON layer in my Leaflet map. var ele = $.getJSON('http://open.mapquestapi.com/elevation/v1/profile?key=<API_KEY>&...
1
vote
0answers
28 views

Make a script run indefinitly

I have created a script which reads a JSON file and based on the attributes creates a grid and assigns values to the grid. This JSON file may change. I wanted to create an infinite loop to run the ...
0
votes
1answer
48 views

Integrate JSON file inputs (specifically latlng) in Leaflet with JS

It's my first time using Leaflet and I wanted to simply put two markers based from my inputs. I managed to connect my JSON file with the JavaScript and the only problem I have is how to dynamically ...
0
votes
1answer
21 views

Why is this happening? I show GeoJSON some coordinates with OpenLayers by request Ajax

I want to display a GeoJSON on OpenLayers with a request from Ajax from the database: I store in the geojson variable all the information and I icercated in two ways: 1. Directly from the already ...
2
votes
0answers
137 views

Adding points to map with Leaflet using .forEach function

Trying to add an array of points to a map with a Leaflet with .forEach. I thought this should work, but alas, it does not: var jsonData = [ { "LNG":-75.16472099534634, "LAT":40....
3
votes
1answer
61 views

Using ogr2ogr on Anaconda

I am building a Choropleth map in D3.JS. In order to do that, I have downloaded a map from Eurostat. From the GeoJSON file, I want to extract the country for the visualization, in my case Portugal. ...
0
votes
1answer
52 views

Displaying bounding box polygon from CSV using ArcGIS Desktop?

I have a data file (.csv) with a minimum and maximum longitude and latitude. These 4 fields (roughly a few thousand rows) make up a bounding box. However, I am unsure of how to get this data to be ...
0
votes
0answers
28 views

CAD To GeoJSON after publishing it shows the job failed

I have written the code for CAD to GeoJSON. When I ran ArcMap or ArcCatalog it's working fine, after publishing the code it's giving the error. The code is too long. Can you provide the code ArcGIS ...
0
votes
0answers
56 views

GeoServer - Use JSON properties in SLD

Is there currently any way to reference a JSON Property of a Postgre DataStore in SLD? After researching and playing with GeoServer, SLD and even the MongoDB plugin all day, the only thing I ...
1
vote
0answers
109 views

Leaflet routing machine - get route JSON response

I created a simple page based on Leaflet routing machine tutorial. I would like to process obtained route with my API. How could I to get full JSON response with route?
0
votes
1answer
123 views

Getting data from JSON data API?

As asked in previous question: Displaying icon name next to icon using OpenLayers? , now I need to change data source to the JSON API data, and used jquery plugin bypass CORS (http://www.ajax-cross-...
3
votes
0answers
281 views

Why does QGIS 3.4 and higher create .tmp file instead of refresh editing layer after saving?

I downloaded QGIS 3.4.0 and try to save edits in .geojson file. I can save new objects, but not edits in attributes. Insted of it, QGIS creates .tmp file with my chаnges into the same folder with ...
4
votes
1answer
79 views

ArcObjects: Convert Feature to JSON

I need to get the JSON from a feature using ArcObjects. According to I tried to following code, but it does not work: var jsonWriter = new JSONWriterClass(); jsonWriter.WriteToString(); var ...
0
votes
0answers
258 views

Json To Features ERROR 001558: Error parsing json file. The workspace is not connected

I am trying to convert a JSON file into a feature. My code was working fine until today and now I am getting the following error - ExecuteError: ERROR 001558: Error parsing json file '<filepath>'...
0
votes
1answer
80 views

GDAL/BUILD can't get result files Geojson to mbtiles

i try to 2.55gb of GeoJson (maybe 200 over layers in one file) to vector Mbtiles, but fail to create .mbtiles. so i try convert each layers(.shp) to geojson(over 200 files), then create each ....
4
votes
2answers
2k views

How do I write a GeoPandas dataframe into a single file (preferably JSON or GeoPackage)?

I'm new to GIS and having a basic beginner problem. I've got data in the form of a geopackage .gpkg from GADM.org. I can read in and use the data without problem using Geopandas (via built-in Fiona)....
2
votes
1answer
72 views

Error on showing .js as spatial object with JSON.parse()

I have a Leaflet map exported by qgis2web plugin. The geodata is stored as (Geo-)JSON-objects inside a variable saved as .js-file. I have an attribute field ("bildpfad") with comma-separated pathes to ...
0
votes
1answer
25 views

QGIS - Import transposed points coordinates/nodes as polygons

I'm attempting to streamline the process of importing polygons (19 in this case) from a website into QGIS. I extracted the JSON using chrome's dev tools and converted it into CSV spreadsheet here. The ...
0
votes
1answer
90 views

Display markers and autohide them after few seconds using data of nested JSON object from an API in Leaflet Map

I'm trying to load 4 markers at a time and timeout should be 5 secs for them and then new markers should come up and old one's should be hidden automatically. I have written this code and unable to ...
0
votes
1answer
123 views

How to append geojson file using featureselection

For example, I have a file as shown below: { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {}, "geometry": { "type": "...
1
vote
0answers
330 views

Google Maps API - Multiple Polygons

I'll be generating my JSON file using PHP and SQL for displaying around 200 polygons, on a map. I've managed to test the concept with two polygons but still struggling. I'm not experienced with JS or ...
0
votes
1answer
267 views

GeoServer & QGIS - Using GeoJSON in a WFS request

I'm trying to load a WFS Layer in QGIS. I requst the data from my GeoServer and would like to import the data as GeoJSON. I can export my data in the layer preview section as GeoJSON. Everything ...
0
votes
2answers
132 views

Error converting Json file to a feature class

I want to convert some json data being returned from a request to a feature class, but I keep getting a RuntimeError: Object: Error in executing tool. I made a test gdb in a folder 'C:/Workspace/...
1
vote
0answers
272 views

Using updated wikimapia API to export data

My goal is to get a json export from Wikimapia. I'm trying to use their updated API but I always get no objects returned no matter what coordintes or categories I specify. Here is my example query (?...
0
votes
1answer
402 views

How to Zoom Google Maps Javascript API to level 25

Cannot Zoom Google Maps Javascript API after 1:564 (zoomlevel: 20) in Mapstore. Can anyone help me to solve this cause my layer keeps on zooming but the map is stuck at zoom 20, I want to zoom it to ...
0
votes
0answers
76 views

Filter on array. Tabletop to leaflet map, points.

Im looking at tabletop to leaflet (tabletop to leaflet). I want my latlon points in spreadsheet to appear on the map. The spreadsheet have a column "city", and i want individual points for each "city" ...
0
votes
0answers
155 views

Adding Unique Properties to Each Feature in a Large GeoJson

I previously asked Add properties to large GeoJSON but that was rather unclear and I learned something from people's feedback. I went back to the drawing board and got even more confused. I am trying ...
0
votes
1answer
795 views

Add properties to large GeoJSON [closed]

I have a geojson of multipolygons like so { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "ADMIN": "Aruba", "ISO_A3": "ABW" ...
0
votes
1answer
95 views

Has anyone used ESRI JSON data with json-schema validation?

Passing data between web services often means passing JSON data. A standard for evaluating JSON data is under development at json-schema.org. I would like to incorporate ESRI JSON data in my schema ...
0
votes
0answers
19 views

OSMIDs don't match despite the same extent

Upon joining two fields in ArcMap by their OSMIDs ~90% of my data has gone missing. Field 1 contains the OSMIDs of buildings in a metropolitan area. This dataset has been extracted from a feature ...
3
votes
1answer
255 views

esriRequest json response to feature layer

I am using JavaScript 4.7 and I am able to retrieve json using esriRequest from our ArcGIS server. However, I have difficulty in showing this data on the map layer. the call map.addLayer(...
0
votes
1answer
739 views

Python and Google Maps API place search: Read csv read row by row and loop fuction

I want to automate a task in Python with the Google API Search Place. Right now, my code with Google Maps API is returning places 'hospital' for one set of geographic coordinates. But, I have a CSV ...
2
votes
1answer
143 views

geojson file not interpreted properly (wrong format?)

My problem: I am using a web application that uses geojson file to define point data - here is the application: https://smartcville.com/racks.html I would like to use the skeleton of the ...
0
votes
2answers
391 views

How to get JSON data from cql_filter WMS layer with OpenLayers 4

I am trying to get the JSON feature data which I have filtered using cql_filter. <script> var wmsSource = new ol.source.TileWMS({ url: 'http://localhost:9090/geoserver/ilfs/wms', ...
1
vote
1answer
715 views

Create a collection of geometries in JTS

I'd like to create a program that a user inputs coordinates as points or lines and gets a geojson file. The problem is I don't know how to store all the geometries in one file. For example I want to ...
0
votes
0answers
454 views

Why am I getting an error when using multiple logical filters for WFS?

I am using openlayers to query a geoserver WFS and am trying to use ol.format.filter.and to include multiple logical filters: var featureRequest = new ol.format.WFS().writeGetFeature({ ...
1
vote
1answer
745 views

Change/filter markers from custom check boxes

So I'm working on a map using leaflet and I want to use custom check boxes, not the default controls. I'm returning the correct json information when I check the boxes. I'm just not sure how to swap ...
0
votes
0answers
253 views

arcpy.JSONToFeatures_conversion and json module conflict

I'm using arcpy.JSONToFeatures_conversion() to batch convert some json files to features in a gdb. Python kept running into errors (either ERROR 001558: Error parsing json file, or ERROR 999998). This ...
2
votes
2answers
384 views

Joining GeoJSON and JSON at client end for Choropleth Map in Leaflet

This is not a duplicate of Merging/Joining GeoJSON and JSON? because I need to join on client side. I want to develop a choropleth map. I am using the same tutorial of Leaflet. I am also using the ...