New answers tagged

2

I tried to replicate your workflow and found out that CorelDraw would import the same amount of lines and nodes in my test when importing a DXF file generated by QGIS. Below is the description of how I did it : I have installed the OSM downloader plug-in which is available from the QGIS repository. Using the tool, I downloaded some roads from OSM by ...


1

I would suggest having a feature collection with as many features as timestamps. So for each timestamp you will have a polygon and an average temperature. You will have then overlapping polygons for each location, but if the dataset is displayed over time, only one polygon should be shown. The best data format to store this type of data is geopackage because ...


0

You can go here: https://catalog.data.gov/dataset/tiger-line-shapefile-2017-nation-u-s-current-county-and-equivalent-national-shapefile Then just download the shapefile and get the coordinates from that (Make sure it's in the correct coordinate system or change the coordinate system first)


1

As @nmtoken wrote in his comment, Leaflet uses [lat, lng] order for coordinate input, which is obvious even from method names, for example L.latLng. On the other side, standard GeoJSON has [lng, lat] order for coordinates (see https://tools.ietf.org/html/rfc7946#section-3.1.1). When you use Leaflet methods that are aware of GeoJSON input, Leaflet treats ...


0

I came up with my own solution. First of all, I import some packages: import rasterio import matplotlib.pyplot as plt import numpy as np import geopandas as gpd import pandas as pd from shapely.geometry import Polygon Then, I import the *.asc file and check what bands it contains. I save the band in a DF and create a plot. src = rasterio.open('data.asc') ...


3

When you store geometry in 'Multi' postgis types, geoserver also expects this 'Multi' in transaction query. Leaflet-WFST plugin can create Multi-geometry requests on simple geometries by option 'forceMulti', this option available since v2.0.1-beta.18 var wfstPoly = new L.WFST({ ... forceMulti: true ... }).addTo(map);


1

Here is how you serve gzipped GeoJson files from CloudFront: Make sure the Content-Type of the geojson files is application/javascript (you can change it in S3) In CloudFront, under behavior, set Compress Objects Automatically to yes Make sure you invalidate the folder before checking if it works.


0

When you submit a question, please share all used assets. It makes it easier and faster to help you out. When you iterate over your pts you return another ee.FeatureCollection. That's not allowed. When you map or iterate over an ee.FeatureCollection or ee.ImageCollection, you must return an ee.Image or an ee.Feature. You could do something like this ...


0

According to leaflet's documentation - after bindTooltip() - add openTooltip() Code - I added the 'options fix' from the comments: poly_geojson = L.geoJson(poly_gon,{ onEachFeature : function(feature, layer) { if (feature.properties.sourceLang == "en") { layer.bindTooltip("<h4>"+feature.properties.name+"</h4>"); ...


2

The way you figured it out, it is not possible. If you have the same overlay twice in Leaflet layer control, Leaflet does not distinguish between those two layers despite having different labels. There are several possible solutions to achieve what you want. One is to have two separate overlays, each with it's own style, but I know from your past questions ...


2

Another option would be to use a Personal Package Archive (PPA). The NextGIS ubuntu PPA currently has GDAL 2.4.0 for xenial, trusty and bionic ubuntu. The ubuntugis stable PPA also has 2.4.0 for bionic currently (January 2020). To upgrade your GDAL to 2.4.0 using the NextGIS PPA, it should look something like this: apt-get install -y software-properties-...


0

Issue is sorted after creating a copy of the original shape file and running the conversion against the copied shape file. C# consol app >> DataSource shpDatasourceCreateCopy = shpDriver.CopyDataSource(shpDatasource, dataDir + "\CopyTest", new string[0]);


2

Or is this the intended behavior of QGIS upon export to GeoJSON and I'm thinking about this wrong? I don't know what the intended behaviour of QGIS is, but if the intention is to write GeoJSON according its specification (https://tools.ietf.org/html/rfc7946) or just RFC7946 for short. Then yes. Section 4 of RFC7946 tells us that The coordinate ...


Top 50 recent answers are included