Category "geojson"

How to save an ArcGIS query result as a geoJSON file with linux wget command?

I'm having some issues saving the results of a query from an ArcGIS service in geoJSON format using wget. I can get the desired result if I use the query functi

How to convert KML to GeoJSON using GeoTools in Java (GeoServer don't accept the result of my conversion)

I have a KML File and I need convert to GeoJSON. I am using Geotools in Java for convert KML because GeoServer has problems to import KML. I can convert the fil

Trouble displaying geometries on leaflet.js map

I am attempting to load a very large geojson to a leaflet map. The map is written in a JavaScript script and is referenced by the HTML script as is outlined bel

How can I add a timeslider to a leaflet map?

I have a leaflet map, exported from qgis with the qgis2web plugin. I would like to add a timeslider for this map, as every layer (representing points) has a "fr

Converting Geojson to kml using Python

I can convert it kml/kmz to geojson also, creating kml from geojson.. I tried with the below libraries Shapely kml2geojson geojson Source code below.. import j

Object is not subscriptable python error django

I have this function where i am using models 'Start' and 'End' that contain fields latitude and longitude.. and I am trying to match them with a field called el

Javascript: Correct syntax for making editable custom properties (on click, toggle colour of Leaflet GeoJSON object)

I've written the following javascript code using leaflet to make multiple red polylines with each having property called "active" which starts as true. for

Snowflake's `try_to_geography` raises an error instead of returning null

I am trying to run a query in Snowflake to convert a GeoJSON object into Snowflake's baked-in geospatial data types: SELECT id, -- some other columns TRY

Snowflake's `try_to_geography` raises an error instead of returning null

I am trying to run a query in Snowflake to convert a GeoJSON object into Snowflake's baked-in geospatial data types: SELECT id, -- some other columns TRY

zoom to geojson polygons bounds in Google Maps API v3

I'm loading geojson from a Postgis-database and want to display it on my map. After drawing a polygon, I want the map to zoom to the extents of the added polygo

need for json loader in webpack 5

I want to import .geojson file extension just like .json files (I don't need any special parsing). as I seen in webpack docs: Since webpack >= v2.0.0, impor

Geojson duplicate little sectors

I have a geojson map devided on 700 sectors. I have a city on this map with little sectors. Can you tell me how to duplicate this city's sectors, scale them big

Click on folium multipolygon overlays and recive a name of active layers

I have many GeoJson layers in the folium map, some are overlapped and some are not, at one point. And I would like to know how I can click on the map and receiv

d3.js geo projection renders a black box

I am trying to make a US map using d3.js. I use the following code to draw my map: const EDUCATION = 'https://raw.githubusercontent.com/no-stack-dub-sack/test

Calculate centroid of entire GeoDataFrame of points

I would like to import some waypoints/markers from a geojson file. Then determine the centroid of all of the points. My code calculates the centroid of each poi

Geospatial 2dsphere index not creating in MongoDB Atlas and manually

I am trying to create a 2sphere index in my mongodb collection. The index needs to be on location field which is at GeoJSON format: location: { coordinat

How to drag a polygon in mapbox-gl-js?

I have a map with multiple polygons. The polygons need to move/update on user click/drag. The functionality I want is the same as this example: https://www.mapb

How can I assign the contents of a geojson file to a variable in Javascript?

The code shown already works, but I want to clean it up. It declares a variable called placez which contains information in geojson format for the next part of

How to get features from vector layer in Openlayers 3

I am trying to get the features from my vector layer. The vector layer is composed from a GeoJSON document loaded via Geoserver. I tried vector.features but in

Dynamically generate source data for Mapbox-GL layer

We are currently building an asset tracking widget using Mapbox-GL. When zoomed in, we show the actual assets, and this works fine. But, when zooming out, we wo