Questions tagged [geojson]

GeoJSON is a geospatial data interchange format based on JavaScript Object Notation (JSON)

Filter by
Sorted by
Tagged with
-2
votes
0answers
22 views

Mapserver + WFS + Leaflet? [on hold]

Is it possible to add a vector layer in Leaflet from MapServer's WFS ?
1
vote
0answers
16 views

Pop up appearing blank after JSON parse?

My aim is to retrieve the attribute list of a WMS layer. The concept is to fetch it as JSON data, then parse it and display it in a pop up. I am using OpenLayers3 with local GeoServer and JavaScript. ...
0
votes
1answer
34 views

Importing GeoJSON File

I am dragging and dropping this GeoJSON file into QGIS but for some reason I cannot reproject it from WGS 84 (EPSG:4326). It remains at the original LAT/LONG even in a new project where UTMs are ...
0
votes
1answer
27 views

Add more than one layer of GeoJSON data to Leaflet?

This is my code for loading one layer of .geojson data to Leaflet. The data is basically in the form of markers and it's demonstrating different location in Saudi Arabia. It's saved as "saudi_location....
0
votes
1answer
32 views

Add a local GeoJSON file as a layer with GeoJsonLayer

I turned a state boundary feature class into a geojson file called region2_boundary.json: { "type" : "FeatureCollection", "crs" : { "type" : "name", "properties" : { "name" : "...
0
votes
0answers
16 views

Cannot load GeoJSON in OpenLayers 4.6.5

Using just a simple test case, I cannot load GeoJSON into OpenLayers. I've used a base case, with a simple polygon and yet cannot load it. If anyone has any ideas please let me know. I have created ...
1
vote
0answers
22 views

Create shapefile with images as attributes using JavaScript

I want to make a feature in a react.js web application where I can export/download shapefiles from the dashboard. I have implemented shp-write which takes a GeoJSON input. It is working fine with ...
1
vote
1answer
34 views

Transforming GeoJSON data to turf.polygon?

I want to transform GeoJSON multipolygon to turf.polygon for find point within polygon but it can't read property from GeoJSON. Is there any way to do that? This is my polygon data in GeoJSON: ...
2
votes
1answer
45 views

Largest polygon inside a GeoJSON multipolygon [on hold]

How to find the largest polygon in GeoJSON of type multipolygon so that I can add a Leaflet tooltip to the largest polygon rather then a random polygon in multipolygon?
0
votes
0answers
14 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
17 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
22 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
0answers
21 views

Convert ODK geo_shape to geojson

I've collected polygon data using ODK's geo_shape. I'm trying to convert it to a geojson for use in QGIS. I'm using python 3, pandas and geojson to do this. The geo_shape output from ODK looks like ...
0
votes
0answers
8 views

Choosing correct GeoJSON from several available polygons from OSM city relation ID

For our MultipliCity tool, I'm adding outlines of cities as system boundaries. I get the city outlines by taking the relation ID from openstreetmap and use the great "Convert Open Street Map relation ...
2
votes
1answer
32 views

Parsing GeoJSON in Python?

I want to try and split a GeoJSON FeatureCollection into the individual features. So that the name of the file I write to is the "ED_ID" field. So far I can only read the JSON. I am new to python and ...
0
votes
0answers
12 views

How to convert shapefile into Google Maps-compatible GeoJSON? [duplicate]

I have a shapefile whose Coordinate Reference System's NAD_1983_CORS96_StatePlane_ Florida_East_FIPS_0901_Ft_US/ESRI:103257. How do I convert this shapefile into a .geojson file that can be read onto ...
0
votes
2answers
40 views

Leaflet - select markers within the radius given with details provided

I know the tool in Leaflet, provided by this link: http://www.gistechsolutions.com/leaflet/DEMO/Select/SelectPoints3.html which enables me to select a markers within 150mi distance. This is fine, ...
1
vote
1answer
22 views

OpenLayers: projection of WMS and vector layers

I have two layers in my OpenLayers map, the background in WMS and GeoJSON features in a vector layer, both in ESPG:3006. (And a standard OpenStreetMap background just to see which one of the layers ...
-1
votes
0answers
14 views

TurfJS like library in Go

I am curious if anybody here has recommendations for a library very much like turfJS in terms of being able to calculate intersections, pointWithinPolygon and similar functions in a language other ...
0
votes
1answer
29 views

Overpass API returns points instead of polygons

I'm able to retrieve geojson using the following call to the Overpass API for boroughs in London: import overpass api = overpass.API() response = api.get('relation(1811626);>;out;') However the ...
0
votes
0answers
47 views

Implementing “conformal mapping” in OpenLayers?

I want to preserve shape of objects, so how do I implement "conformal mapping" in openlayers 4.6.5? My current objects: I have several geoJSON objects (WGS84) around the globe in long/lat with a ...
0
votes
1answer
26 views

3D Multipatch feature class to 3D GeoJSON in ArcGIS Pro?

I have generated some building blocks in CityEngine and exported them as "Multipatch feature class" in GeoDataBase, then I imported them into ArcGIS Pro and tried to convert them into 3D GeoJSON ...
1
vote
1answer
78 views

Angular - How to visualize GeoJSON on Google Maps

I am using @agm/core for visualization GeoJSON on Google Maps. But I can't display my buildings on Google Maps. I think the problem is the geometry that is represented as multiple аrrays. I used FME ...
1
vote
1answer
28 views

Transforming a GeoPackage table's geometry column into GeoJSON?

I have a GeoPackage that is downloaded to client devices for a mobile app. I need the clients to query the GeoPackage to retrieve a GeoJSON representation of the geom column. I'm familiar with ...
0
votes
0answers
24 views

Leaflet: Unable to filter GeoJSON beyond the `properties` element level

I have the following code which displays a Layer in my Leaflet map from some remote GeoJSON: // Create Layer: Airspace var featuresUTMAirspace= L.geoJson(dataGuardianUTM, { filter: FuncAirspace, ...
0
votes
0answers
25 views

When re-saving a GeoJSON file to a shapefile, the .dbf significantly increases in size

When re-saving a GeoJSON file to a shapefile, the .dbf significantly increases in size to the point where the file size becomes unmanageable. For example, I re-saved a 250 MB GeoJSON file to ...
0
votes
3answers
24 views

Linked popup image in GeoJSON file

Developing the issue solved in this post: Trying to pop up image in GeoJSON file? I would like to have each GeoJSON image thumbnail possible to open in larger window. I was trying to connect with ...
1
vote
1answer
36 views

Trying to pop up image in GeoJSON file?

I am trying to put an image inside the geoJSON file. I know, that Geojson works as string and I cannot input the image directly, however I found some stuff, like this below: http://www....
2
votes
0answers
41 views

Shapefile or GeoJSON? [closed]

I'm interested in understanding the relative merits of using GeoJSON or shapefile formats for handling geo-spatial data, particularly in an open-source, Python (CKAN project), web-development context. ...
1
vote
0answers
40 views

Writing more than 1000 rows with arcpy.da.InsertCursor? [closed]

I have a GeoJSON which I'm able to successfully covert to a shapefile via the following process: using arcpy.asShape to find geometry, and inserting this geometry as new fields using cursor insertRow)....
0
votes
0answers
5 views

GeoJSON opening hyperlink to local file in the local aplication instead of browser

I have got a GeoJSON file with link to the local file, which works. How to write hyperlinks to local files in GeoJSON properties? Continuing the question above I would like to have this link sorted ...
2
votes
1answer
66 views

How to write hyperlinks to local files in GeoJSON properties?

I am wondering how to make a hyperlink from GeoJSON file properties to the local drive file. I found two options here: Clickable hyperlink from GeoJSON field in feature this option refers to a whole ....
1
vote
1answer
19 views

Iterating through sub-element `sections` of GeoJSON on a Leaflet map?

I have the following code which I use to display a marker on my map with a popup containing the feature.properties.name element from my GeoJSON: var featuresUTMGroundHazards = L.geoJson(...
1
vote
1answer
22 views

Cast 3D geometry as 2D for ogr2ogr GeoJSON

I'm trying to take a shapefile that can be downloaded here (specifically the shapefile titled PVS_19_v1_vtd_21031.shp), convert it from EPSG:4269 to EPSG:3857, and output the GeoJSON into CSV with ...
0
votes
0answers
40 views

Leaflet GeoJSON legend with custom icons

I have been developed a legend, details are here: Leaflet GeoJSON map legend Now I am wondering how to take into account my custom icons, set for GeoJSON file. var myIcon = L.icon({ iconUrl: '...
1
vote
0answers
30 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": "...
0
votes
2answers
49 views

Leaflet GeoJSON map legend

I am struggling with creation of the map legend adequate to my GeoJSON stylization. The code looks like below: var geojsonMarkerOptions = { radius: 8, fillColor: "#ff7800", color: "#000", weight: 1, ...
1
vote
1answer
31 views

Animation does not work GeoJSON date fields in CARTO VL

In CARTO VL linear function expects a date or numeric field as its first argument. But when the data source is a GeoJSON, date fields are stored as categorical/strings and it returns an error like ...
3
votes
1answer
155 views

Converting Entity to GeoJSON with Cesium

I know there is a way to load entities from a GeoJSON using GeoJsonDataSource but is there any way to do the opposite: get any entity as a GeoJSON representation? My goal is to use Turf.JS with ...
1
vote
1answer
32 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
0answers
17 views

Convert polygon co-ordinates to GeoJSON using JavaScript [closed]

I need to convert the below polygon to a GeoJSON object, "Polygon":"146.90805846452713 -42.942663073539734, 147.01517516374588 -42.87627762556076, 147.15525084733963 -42.745309352874756, 147....
1
vote
1answer
39 views

Unable to use fillColor values from GeoJSON with Leaflet

I have a web page which fetches some remote GeoJSON and displays a combination of marker points, polygons and lines on my map. Within that JSON is the fillColor, fillOpacity, etc that I wish to use ...
0
votes
1answer
64 views

GeoJSON search box for multiple layers

I am wondering how to make the GeoJSON search more efficient. I would like to get the search result from more than 1 layer in GeoJSON. My code is (I attached one of two GeoJSON examples): var test = ...
0
votes
1answer
41 views

Search box for GeoJSON in Leaflet

I have been struggling with adding a search box for GeoJSON stuff, similar to COntrol.geocoder in Leaflet. I used the advice under this post: Adding one search box for multiple GeoJSON polygon layers?...
1
vote
1answer
55 views

Load polygon JSON to Leaflet

I want my JSON data with URL can load on the map, and it is a polygon data. I don't know what the problem with my code. This is my code: <html lang="en-US" xmlns="http://www.w3.org/1999/xhtml">...
1
vote
1answer
30 views

Extract the coordinates from a GeoJSON file that displays point on my Map in OpenLayers 4

Well I have this GeoJSON file : {"type": "FeatureCollection", "features": [{"id": "1", "type": "Feature", "geometry":{"type":"Point","coordinates":[-5.8039556,35.7903036]},"properties": {"gid":"1","...
1
vote
1answer
44 views

OpenLayers 5: To display the label for a point

In my project there are two GeoJSON point layer, both has the same attribute 'name'. I would like to use this attribute for labeling all points. I've found this similar question but it is for ...
0
votes
2answers
33 views

Leaflet GeoJSON popup marker customization

I would like to customize leaflet .bindPoPup geoJSON marker. I found some solutions, although I would like to use my existing one. Basically the operation leads to merge two functions as per below: ...
0
votes
0answers
9 views

Showing image when clicking on Point in OpenLayers Map? [duplicate]

I have this map: I want to show an image when I click on a point. Every point has its own picture. I am new to OpenLayers. How can i do that after getting the data in GeoJSON?
1
vote
1answer
48 views

Assign the SRID to a serialized GeoJSON

I've created a simple model like this: class AddPoint(models.Model): name = models.CharField(max_length=100) geom = geomodels.PointField(srid=3857) def __str__(self): return self....