Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Any of a set of two or more numbers used to determine the position of a point, line, curve, or plane in a space of a given dimension with respect to a system of lines or other fixed references.
1
vote
Accepted
QGIS 3x capturing coordinates for multitude of objects at once
So, I will suggest employing this expression to capture coordinates for a multitude of objects at once
map_to_json(
map(
'x', array_to_string(array_foreach(generate_series(1, num_points($geometry …
3
votes
Getting random coordinates based on country
Using the following Python scripts it is possible to take a country name and return a random point with its coordinates (not including the sea/ocean sections) inside that country. … of a random point inside a country chosen by its name
Parameters:
==========
:param country_name: a country name
Returns:
==========
:return: a tuple with coordinates y and x …
1
vote
Formula for Nicolosi Globular Projection
Not a proper answer, but may help to end up with mapping procedure
Formulas from the book mentioned above by @mkennedy were successfully executed by Torben Jansen on Observable in the article Nic …
2
votes
Shortest path (point to point) when filling out coordinates in boxes
Credits to @MrXsquared from his answer
https://gis.stackexchange.com/a/308137/99589
Before processing it is necessary to connect lines via nodes. For that use "Split with lines" geoalgorithm. By cho …
7
votes
Accepted
Can't read coordinates from CSV file
Try the same approach with "Geometry by expression" described in @Luis Perez's answer. However, deploy a bit different expression
make_point(
if(regexp_match("Longitude (deg.)", 'W'),
-regexp_ …
14
votes
Accepted
Copying coordinates under mouse to clipboard in QGIS
So, simply right-mouse click the map canvas > Copy Coordinate..., see the image below
and get a pair of your coordinates as 9.115780774,48.813284425. …
2
votes
Joining X and Y coordinates from CSV with shapefile
Import your CSV into QGIS via Layer > Add Layer > Add Delimited Text Layer.... Here an additional step with a reprojection of a CSV might be required if your points and a shapefile are in different C …
2
votes
Plotting map locations from csv-file
Tested on QGIS 2.18 and QGIS 3.4
Let's assume there is a .csv-file "data" with its attributes accordingly, see image below.
Simply drag&drop it into QGIS, so it can appear in the 'Layers Panel …
1
vote
Determining how many of my coordinates overlap with layer in QGIS
Let's assume that there is a CSV-file (in UTF-8) 'animals.csv', see image below
Step 1. In QGIS create a new QGIS Project. Then proceed with Layer > Add Layer > Add Delimited Text Layer ....
Step 2. …
12
votes
Accepted
Determining CRS from given point coordinate set
For instance, when one paste provided coordinates (4581211.88, 5811848.94)
You will see several options. …
2
votes
Why is the following CSV file not being loaded as a points layer in QGIS?
IMHO the reason why a CSV file can not be added properly as a points layer file in QGIS are coordinates with commas instead of a decimal separator. …
0
votes
Determining how many of my coordinates overlap with layer in QGIS
A PyQGIS solution.
Let's assume there is a project folder with two files: 'test_points.csv' and 'test_polygons.shp', see image below.
In QGIS they will look like:
Proceed with Plugins > Python Conso …
7
votes
Creating multiple separate vector lines from list of coordinate pairs in QGIS
Drag&Drop your CSV-file into QGIS, so you can see it in Layers tab
Use a "Virtual Layer" through Layer > Add Layer > Add/Edit Virtual Layer... with the following query
SELECT
make_line(
…
1
vote
Converting OGR geometry as WKT of polygon from float to integer in the WKT string
451967.898155319,75198.5338269215 452182.812141684,75322.6144748018 452397.726128049,75570.7757705624 452397.726128049,75694.8564184426 452182.812141684))'
geom = ogr.CreateGeometryFromWkt(testpolywkt)
coordinates … = json.loads(geom.ExportToJson())['coordinates'][0]
coordinates_rounded = [[round(pair[0]), round(pair[1])] for pair in coordinates]
# Create ring
ring = ogr.Geometry(ogr.wkbLinearRing)
for pair in …
3
votes
Accepted
Converting OGR geometry as WKT of polygon from float to integer in the WKT string
geom.GetGeometryCount()
# Create ring
newRing = ogr.Geometry(ogr.wkbLinearRing)
for i in range(numRings):
ring = geom.GetGeometryRef(i)
numPoints = ring.GetPointCount()
for j in range(numPoints):
coordinates … = (round(ring.GetPoint(j)[0]), round(ring.GetPoint(j)[1]))
#also works as coordinates = (round(ring.GetX(j)), round(ring.GetY(j)))
newRing.AddPoint_2D(coordinates[0], coordinates[1]) …