Hot answers tagged

8

There is no export to shapefile via Google Earth. These steps when using the Google Earth web version: Once you are in the project section, you can click on the three vertical dots and then export as KML file as mentioned on this thread These steps when using Earth Pro desktop version: You will need to right-click the polygon layer, then click on Save As ...


4

Try the natively supported SpatiaLite SQL, either via Virtual Layer, or the DB Manager; run SELECT "AreaChar", ST_Centroid(ST_Collect(geometry)) AS geometry FROM <your_layer> GROUP BY "AreaChar" ; to simply get the centroid as geometry, or SELECT "AreaChar", ST_X(geometry) AS x, ST_Y(geometry) AS y, geometry FROM ...


2

If you look at the credit line at the bottom of the map you'll see that the basemap is data from OpenStreetMap (OSM). There is a network API you can call to query the underlying vector data that is used to draw the map. The R package osmar has some functionality to read OSM data but I can't get it to work at the moment. So I wrote a quick function: getosm &...


2

You can find an unknown projection using projfinder.com if you have a coordinate in lat-long and a nearby coordinate in the other system. From your data, I took one of the points in the geoJSON: 7634671.5713, 1248001.2551000006 and zoomed into this coordinate from the geoJSON attribute data: "Longitude": -73.520563459, "Latitude": 45.522783335, ...


2

Tested on QGIS 2.18 and QGIS 3.4 I can suggest using a "Virtual Layer" through Layer > Add Layer > Add/Edit Virtual Layer... I have tried to recreate your example. There are two overlapping polygon layers called "layer"(yellow) and "grid_layer"(blue) accordingly, see image below. All features of "grid_layer" squares have 10.000 m² area. With the ...


2

Found a rather dirty solution, but it does the trick. If anyone knows a more elegant way, please feel free to share. If not, this may be worth turning into a small script/plugin? 1) Take the polygon layer (for the test I took only about an eighth of my original data. 2) Draw one new polygon on a temporary layer, the polygon covers the entire area of the ...


2

Popup content passed to bindPopup layer method can be any HTML formatted text, which means it can be also a hyperlink. In your case it could be something like: polygon.bindPopup('<a href="http://www.mysite.com" target="_blank">RTK Survey Area</a>'); Hyperlink attribute target="_blank" is added so that linked page is opened in new tab/window.


1

I need to be able to query the WMS based on a polygon You can only query A WMS at a point location, via a GetFeatureInfo operation. If you only want a certain area, only specify that as BBOX in a GetMap operation. If you want to resymbolize the map based on some query, use a custom SLD in the GetMap. It's all possible in OpenLayers


1

You are talking about data evolving through time, but you haven't mentioned recording this time: for each of your object, record 2 dates: valid_from and valid_to. Current records have a null valid_to. When a current record is changed (duplicated as per your scenario), set a valid_to timestamp with the current date/time on the old record. To display ...


1

Edit: I looked around the Census TIGER repository and found these files which contain the census geographies and their polygons: https://www2.census.gov/geo/tiger/TIGER2018/ Old Answer: Try here: https://www2.census.gov/geo/tiger/TIGER_DP/2017ACS/ This is the entire ACS data, but the files do contain a listing of the census blocks as well as polygons. ...


1

Try re-creating the issue with your own polygon layer: Create a new polygon featureClass, Edit it in ArcMAP Draw all sorts of polygons : Hourglass, Islands, multi-polygon (user the cut/split editing functions). Draw polygons clockwise and anticlockwise. Save all edits Publish as a map service AND as a feature service Consume the map Service in a test ...


1

The error was that the column order in the SELECT query was mixed, it has to be SELECT id, geom, name, not SELECT id, name, geom. Thanks to @ThingumaBob for the solution.


1

If I wanted to generate a set of points spaced equally within the polygon, here's how I would do it using shapely (based off of this answer): import numpy as np from shapely.geometry import Point, Polygon def get_evenly_spaced_points_in_polygon(poly, spacing): """Get a list of (lat, long) pairs spaced evenly through poly.""" points = [] minx, ...


1

Another solution using osmdata package. I decided to use tmap for plotting just because I'm more familiar with its syntax but there is not real difference between interactive version of tmap and leaflet. # packages library(sf) #> Linking to GEOS 3.6.1, GDAL 2.2.3, PROJ 4.9.3 library(osmdata) #> Data (c) OpenStreetMap contributors, ODbL 1.0. https://...


1

To hide the labels outside feature - change to 'rule based labelling' and insert within($geometry, @atlas_geometry )=1 as filter


1

To add on to Joseph's answer, in newer versions of QGIS (I'm on 3.10) to use the "Iterate" button you need to use "Vector Features" in the input instead of "Vector Layer" Related Question: Modeling iterative processes in QGIS 3


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