Questions tagged [geojson]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
265 views

Transforming geometries for list of feature objects using OpenLayers?

I am trying to export GeoJSON for a list of feature objects using OpenLayers 2. The features are in EPSG:3857 projection and I would like to convert all geometries to EPSG:4326. I am perfectly capable ...
0
votes
1answer
14 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
12 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
0answers
17 views

Display multiple polygons with Leaflet? [on hold]

I need to display about 200,000 polygons stored in the PostGIS database. In the back end, I'm using net core 2.2 to create APIs and Entity Framework for queries in a PostGIS. In frontend, I'm using ...
0
votes
0answers
39 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 ...
1
vote
2answers
292 views

Overriding default popup anchor in Leaflet GeoJSON polygon?

By default popups open wherever you click within the boundaries of polygons in Leaflet geojson layers. Here's an example: JsFiddle I would like to anchor the popup either: so it opens in a specific ...
-1
votes
0answers
21 views

Seeking free GeoJSON APIs for nation shapes? [on hold]

I am looking for some API endpoints that return GeoJSON shapes for each nation. Also, any other lists of APIs are sought. I found this link for state shapes in the Mapbox docs, so I am hopeful ...
1
vote
1answer
331 views

Displaying animated GeoJSON path in Leaflet

I want to do something similar to this example: http://jsfiddle.net/3v7hd2vx/36/ But instead of creating a polyline between the two points, I want to display already digitalised routes all stored in ...
0
votes
1answer
17 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 ...
5
votes
2answers
7k views

List of available marker symbols

I would like to use marker symbols for markers on my Mapbox (v3.0.1) map, I have found several sources that say I can use icons from this page. Yes, some of them work for me (danger, religious-...
1
vote
2answers
544 views

Using SqlGeometry.MakeValid to get a counter-clockwise polygon in SQL Server

The data I've loaded from a shapefile into a geometry column in SQL Server (using NetTopologySuite) is not producing valid GeoJSON when I export it because it doesn't follow the right-hand rule. I ...
1
vote
0answers
129 views

Automate snapping GeoJSON data on OpenStreetMap with their road XML file?

I currently have Route data in GTFS that I converted to GeoJSON format and stored in MongoDB. However, even the GTFS provided have still some shapefiles missing therefore a lot are still hovering over ...
1
vote
1answer
40 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
192 views

Using ZCTA (Census ZipCode) polygones

I have downloaded some files from census website and did some cleaning to get ZCTA map for new york, but I noticed that there are overlapped regions (some regions are inside others). For some ...
0
votes
1answer
497 views

Creating layers depending on a property?

I have a .js file with coordinates for internships: var internships = [{ "features": [ {"type":"Feature","properties":{"category":"entretient","Name":"green"},"geometry":{"type":"Point","...
1
vote
1answer
25 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 ...
1
vote
1answer
21 views

Adding data from KML/shapefile/GeoJSON to OSM nodes

I have data of streets which is marked with the osm way/node ids. I would like to add speed limit data which is available in KML, shapefile, or GeoJSON to these OSM wayids (OSM wayid with start node ...
1
vote
2answers
190 views

Leaflet: Change displayed column on click

I have a GeoJSON layer in a Leaflet map showing buildings. The columns of the buildings layer contain electricity usage info by date (eg., the column 12052015 contains electricity usage on Dec 5, 2015)...
0
votes
0answers
22 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
24 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
1answer
15 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
32 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....
0
votes
0answers
37 views

Creating radius map with conditional overlap colors on Google Maps?

Here is what I need to do: Have a webpage with a zoomable map. We currently use google maps api, but willing to try others. I have around 1000 lat/lon points. For each point, I would like to create a ...
2
votes
0answers
39 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. ...
2
votes
1answer
42 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 ....
3
votes
2answers
12k views

Writing style function in OpenLayers?

I am attempting to write a style function within an OpenLayers 3 application that will change the fill color of a circle based on an attribute from a GeoJSON piece of data. I have looked over stack ...
0
votes
1answer
240 views

Reading geojson properties in openlayers 4?

My code is very simple. This is my vector-source and this is how I render my geojson : var vectorSource = new ol.source.Vector({ format: new ol.format.GeoJSON(), url: 'some_geojson_is_here' }); ...
1
vote
0answers
39 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 ...
3
votes
3answers
57 views

How to convert an OSM relation to a list of lat/lng points?

I would like a convert a relation (e.g. https://openstreetmap.org/relation/2851613) to a list of coordinates that can be displayed on a map, potentially using geojson. I ported over this converter ...
0
votes
2answers
34 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
18 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
297 views

Load a GeoJSON layer with mixed geometries via QGIS's Python module

I have been able to connect my collection in MongoDB , write and store the collection to as .json file and load the GeoJSON file as a layer by QGIS's Python module unless there are mixed geometries. ...
4
votes
1answer
2k views

Changing point icon (geoJSON) on click and changing back when clicking another point using Leaflet?

I have a geoJSON (10 points) that is drawn using an icon. I want to change the icon when I click on one of the points and then I want to change it back when clicking another point. I don't know how to ...
1
vote
1answer
20 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
27 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
1answer
26 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 ...
1
vote
1answer
42 views

Transform HTML area to GeoJSON

I have this file http://www.meteofrance.com/mf3-rpc-portlet/js/datas/zones_AVDEPT73.json where the "zone" field is put in an area HTML element (so does "shape"). I have a little script that takes the ...
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": "...
4
votes
1answer
671 views

Extract multiple admin levels from planet OSM

I am trying to create a multi-level choropleth map based on OSM data. I need the outline/boundaries. I would like to do this from the command line if possible. Here is what I think the steps ...
1
vote
1answer
27 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
3answers
2k views

Which style options are available for polylines in Leaflet?

I added a polyline layer as GeoJSON within Leaflet and want to style it. The following options to set the style I could find (and which work) are: color weight opacity What are other available ...
0
votes
0answers
14 views

Convert an 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 oposite: get any entity as a GeoJSON representation? My goal is to use TurfJS with Cesium ...
1
vote
0answers
14 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....
2
votes
1answer
2k views

Leaflet popup options with GeoJSON data

In the following how would I customize the popup options? I want to add in the option for the keepInView to be true. var myLayer = L.geoJson(polygon, { onEachFeature: yourOnEachFeatureFunction })....
1
vote
1answer
30 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
41 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
33 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
54 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">...
2
votes
2answers
498 views

Encoding point geometry as GeoJSON? [closed]

I have point geometry in PostgreSQL/PostGIS which I query as follows: SELECT ST_AsText(geom) as pointgeom FROM pointable. I'm using Python as server side script. I want to pass the result as ...