Tagged Questions
4
votes
3answers
83 views
How to insert a GeoJSON polygon into a PostGIS table?
I need to insert a polygon from GeoJSON to my PostGIS table. This is how the SQL query looks like.
INSERT INTO tablename (name, polygon)
VALUES
(
'Name',
ST_GeomFromGeoJSON
(
{
...
1
vote
2answers
74 views
How to add a polygon from GeoJson into Leaflet?
I try to use the following function to add polygons to my Leaflet map.
function polygon(geojson)
{
alert(geojson); // alert for testing
layer = L.geoJson(geojson);
layer.addTo(map);
}
...
0
votes
1answer
123 views
Geojson multipolygon doesn't work with Leaflet bindPopup?
I have polygon and multipolygon data in Geojson format and when I try to bind popup for polygon, it works perfectly, and when I try to bind it for multipolygon, it doesn't work.
Is that some Leaflet ...
0
votes
0answers
81 views
Regional statistics from a dataset (point inside a polygon aka region)
I am relatively new to GIS and I am trying to do some geographical analysis on same data I've collected. The dataset I have consists essentially in a file with the following format:
...
0
votes
1answer
168 views
OpenLayers polygon fill not working with GeoJSON file as source
I'm trying to visualise some data in a custom shape on a map, and I'm stuck with styling it.
I'm currently using the openlayers framework in combination with a geoJSON file that I generate in code. ...