Hot answers tagged

3 votes

Loading JSON data into QGIS

For the Capital Regional District (CRD) Basemap you can use: https://mapservices.crd.bc.ca/arcgis/rest/services/ In QGIS you can use the ArcGIS Rest Services Connection.
user avatar
  • 48.5k
2 votes

PostGIS: get Circle to GeoJSON

As said in the comments, circle is a native postgres type that is not related to postgis. If using PostGIS, it is better avoid these native types. That being said, if you really have to use the circle ...
user avatar
  • 34.2k
2 votes

Loading JSON data into QGIS

It depend what you are trying to do. GeoJSON data can be added to QGIS by saving your data as a .geojson file and simply dragging and dropping the file onto the map canvas, but this must be geographic ...
user avatar
2 votes

How to request GeoJSON standard be enhanced to support M-values

It sounds like they've already considered it, and decided against it: The GeoJSON Format (https://datatracker.ietf.org/doc/html/rfc7946) Implementations SHOULD NOT extend positions beyond three ...
user avatar
  • 754
1 vote
Accepted

Why is h3.polyfill(geojson, 15) returning empty list for this polygon?

You need to use h3.polyfill_geojson(geojson, 15) or h3.polyfill(geojson, 15, geo_json_conformant=True)
user avatar
1 vote
Accepted

Leaflet geoJSON - function within setStyle()

Since style_new function returns style object, it must not be embedded in the object specifiers {} when you call it, so code should look like this: this.map_layer.eachLayer(function (layer: any) { ...
user avatar
  • 16.6k
1 vote

Leaflet geoJSON tooltip coordinates

You can control position of the tooltip only for map tooltips (see https://leafletjs.com/reference.html#map-methods-for-layers-and-controls). So if your desired tooltip coordinates would be latlng, ...
user avatar
  • 16.6k
1 vote
Accepted

Displaying pop ups for overlapping polygons in the same layer in Leaflet?

On way to do it is to use your click processing function zoomToFeature and there with the help of turf.js library function turf.booleanPointInPolygon check which features contain clicked point ...
user avatar
  • 16.6k
1 vote
Accepted

How to insert a coordinate into an LineString at a specific index

turf.js method turf.nearestPointOnLine returns closest point on line to the given point as feature, where property index tells on which line string segment point was found. Segments are numbered ...
user avatar
  • 16.6k
1 vote
Accepted

Parse GeoJSON polygons with holes library

I looked at this a few weeks ago on a separate platform: Here is what I said: Well, it looks like the multipolygons are incorrectly generated. From the spec, A linear ring MUST follow the right-hand ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible