Questions tagged [vector]

A coordinate-based data model that represents geographic features as points, lines, and polygons.

Filter by
Sorted by
Tagged with
1
vote
2answers
540 views

How to convert vector format (geopackage, shapefile) to raster format (geotiff) using rasterio without template raster

I'm looking to create a raster given just a geopackage (or shapefile, or other vector format). I don't have a template raster, and all I wish to do is burn the shapes into a raster using rasterio. ...
1
vote
0answers
38 views

QGIS: Polygonize error

Running the Polygonize tool in QGIS keeps generating the following error: Processing algorithm… Algorithm 'Polygonize (raster to vector)' starting… Input parameters: { 'BAND' : 1, '...
2
votes
3answers
5k views

Splitting raster in QGIS? without cliper

I have polygon grid layer and raster image whitch want to split with my grid layer to have 9 new raster layers. I was doing it like this guy but my QGIS stop working and shut down every time when I ...
2
votes
0answers
24 views

Query of line direction histogram plugin

I was wondering if anyone could explain how this plugin works I have had a play around with it and I do like how it visualizes how vectors are orientated. However I ran one and opened the CSV file ...
1
vote
0answers
149 views

Determining Affine Transformation Parameters? [duplicate]

I am trying to use the qgsAffine plugin to do the transformation but I have no idea in its usage. How to find the transformation parameters? I found some posts suggest using the OpenJump How to use ...
5
votes
2answers
2k views

Seeking QGIS affine equation?

I am at the mercy of a govt authority who have provided utility information in a cad format with a 0,0 origin and a nonsense grid. About a dozen files, the grid and origin are entirely arbitrary. To ...
1
vote
0answers
22 views

Calculating the distance of raster cells from a vector within a polygon using QGIS

I am quite new to QGIS and am trying to use QGIS 3.6 to create a raster layer of calculated values of the minimum distance of each cells within a polygon (orange) from a vector (the river channel in ...
2
votes
1answer
30 views

Store results including style in vector format for QGIS, ArcGIS [closed]

As I am wrapping up my project, I would like to make my results available for download. There are however many flavors to choose from and I was wondering what format is best. My criteria include: ...
2
votes
0answers
25 views

How to delete a file after processing an algorithm in QGIS 2.18?

I am trying to delete an intermediate file ("Temp_merged.shp") after running the singleparts to multiparts algorithm in QGIS 2.18. import glob, os, processing path_to_shp = "C:/Temp/Tracks/" ...
3
votes
1answer
79 views

Merging all vector files within directory with QGIS?

I am unsuccessfully trying to merge all shapefiles in a given directory using QGIS 2.18. I do not want to navigate to the folder using QGIS GUI tools. Instead, I want my script to include all ...
2
votes
3answers
355 views

Extracting a small subset of an .sdc file

There are some line features in the form of an .sdc file. I do not need all the data in the file, just a very small subset of it. I understand that .sdc files are highly compressed, and my file is ...
1
vote
2answers
524 views

Converting Direction Of Travel OSM vectors from “system” to another?

I have a painful doubt according Direction of Travel (DOT) vectors in OSM data. I'm using ArcGIS10, and a OSM data shapefile. I have a OSM road layer, that has many "Both ways" vectors and many "One ...
2
votes
0answers
66 views

Vector map (rivers) to Raster. [ **ERROR 1: Wrong value for -outsize parameter.**]

I want to transform this vector map: To something like this I only tried to convert the vector map through Raster> Conversion> Rasterize But I get this Error: QGIS version: 3.6.3-Noosa QGIS code ...
1
vote
0answers
22 views

Can QGIS be used to calculate the up-slopes (total area draining to a specified point) of multiple separate points simultaneously?

I am trying to calculate the area draining to a point of 240 separate points using QGIS. At the moment I'm using the Saga - Upslope Area algorithm to individually work this out for each of the 240 ...
2
votes
0answers
45 views

Isolating main polyline using QGIS?

I am trying to convert a line shapefile with branches into just one polyline, actually deleting every other diramation. Imagine something like this: :________|__________|____|||______ into :...
21
votes
3answers
10k views

How to access feature classes in file geodatabases with Python and GDAL?

I am trying to access a vector dataset in a ESRI File Geodatabase using Python + GDAL. I have successfully compiled GDAL with the file geodatabase API. The FileGDB driver is working correctly since ...
0
votes
1answer
25 views

Keeping minimum when converting from shapefile to raster?

I have a shapefile that I am trying to convert to raster. The shapefile has overlapping polygons. I would like to keep the minumum value of these overlapping polygons when converting to raster. ...
1
vote
0answers
29 views

QGIS 1.8 and Shapefile units in seconds [closed]

I have QGIS 1.8 on Centos 6.5 (I cannot update this system). I have a problem with opening a shapefile layer with units in seconds (created in ERDAS). QGIS doesn't display and doesn't save ...
1
vote
3answers
166 views

Converting raster pixels to vector cells?

Is there any way to convert raster pixels to vector cells? I mean each pixel to a polygon. I tried the SAGA tool 'Raster values to points' by choosing cells option instead of nodes option. As a ...
2
votes
1answer
102 views

Retrieving lines radiating from point with v.select in GRASS GIS 7.6

I am attempting to select lines that radiate from a point using v.select in GRASS GIS 7.6 (also tested with 7.4.4) in Windows 10. I start out with 48 lines radiating from a point every 7.5 degrees. ...
16
votes
6answers
10k views

Defining layer CRS and avoiding CRS dialog in PyQGIS?

There is an existing Shapefile, which I want to add. At the moment my code looks like: self.iface.addVectorLayer(self.shpFilePath, "Track", "ogr") It works fine, but i want to define the crs within ...
0
votes
0answers
32 views

Loading layer with QgsVectorLayer in standalone PyQgis 3

I can't seem to figure out why my layer won't charge in QGIS. After reading many topics, it seems to be linked to the prefix path. However changing this, does not seem to work (I tried around 10 ...
0
votes
1answer
49 views

Correcting topological errors in QGIS?

Using the topological corrector inside Qgis I have identified overlapping polygons. My situation is represented into this image My polygon of interest is located below another polygon (the red ...
1
vote
1answer
34 views

Is there an alternative function which does the same thing as clip raster by masked layer on QGIS?

I am having some technical problems with the clip raster by masked layer and I faintly remember using a different method a long time ago for a similar problem. Anybody familiar with another function?
1
vote
0answers
41 views

Vector tile generation

I have a full planet imported in PostgreSQL with imposm3. What is the best way to generate vector tiles (MVT in .mbtiles) from PBF/PostgreSQL with maximum hardware utilization (distributed generation ...
4
votes
2answers
284 views

Creating building shadows in QGIS?

Can anyone think of a simple way to create a polygon to represent building shadows? I have a shapefile with height information for the buildings and I want to create a simple plan looking like the ...
5
votes
2answers
147 views

Splitting polygon using another polygon in QGIS?

I have two polygon layers (yellow and orange in the attached image). I am wondering if there is a way to get a count of the number of isolated areas that the orange polygon has divided the yellow ...
1
vote
2answers
162 views

Problem with intersecting lines over a polygon layer in QGIS

I have a shapefile with lines (a road network) and I want to intersect it over a polygon layer in order to finally have a polygon layer (each cell has an ID number) with the intersected lines for each ...
1
vote
0answers
778 views

Converting vector in NED to ECEF? [closed]

I have a geodetic WGS84 position, lat, lon, alt, and direction cosines from the same point, uN, uE, uD. I'm brand new to geodetic/ecef conventions. How do I take a vector (say, a unit vector with ...
3
votes
1answer
94 views

v.reclass no output

I want to reclassify a polygon vector and use v.reclass. Feature type: boundary Name of column: LBA Reclass Rule: I use a .txt with the following content: CASE WHEN LBA = 68 THEN 2 WHEN LBA = ...
0
votes
2answers
42 views

Reclassifying vector polygons based on text string to integer using Python Parser of ArcGIS Field Calculator?

So I am trying to reclassify a text string by searching for bits of strings and converting those strings to an integer value in a new field within the field calculator. e.g. I want to find all values ...
0
votes
2answers
839 views

Getting feature coordinates from dynamically loaded layer using OpenLayers?

i want to load the coordinates of a point that is stored inside a vector layer and the vector layer is stored inside a layergroup. I do load the vector layers dynamically to the layergroup "Runs". So ...
2
votes
2answers
749 views

Seeking data source for worldwide urban/statistical areas as polygons? [closed]

I am looking for a shapefile (or any format really) that has worldwide coverage of major urban areas / statistical areas as polygons with names. Similar to what the US census Bureau' Core Based ...
7
votes
5answers
9k views

Merge overlapping lines in ArcGIS

I have a polyline shapefile containing a number of lines, some of which overlap. By overlap, I mean that they follow exactly the same path for some of their route, but also have bits that are not ...
10
votes
3answers
22k views

Getting extent of layer in QGIS?

Is there a way to get the extent (bbox) of a vector layer in QGIS? I see that I can update the extent, but I am looking for the actually coordinates of the extent.
0
votes
2answers
72 views

Seeking tool to work out overlap between two polygon layers and their statistics using QGIS

I have two polygons in QGIS. One is a land-use map, which polygons that include different types (forest, agriculture, urban etc). I also have a vector polygon that represents a flood extent. I want to ...
6
votes
2answers
3k views

Empty vector menu in QGIS 3.0.0

I installed QGIS 3.0.0 on a PC with French as default language. After changing the language of QGIS to English, the 'Vector' menu is empty and there is a French 'Vecteur' menu. Any ideas how to fix ...
0
votes
0answers
24 views

Can only select certain polygons

I have only one vector layer on my map, and it's not letting me select some polygons. For instance, this is what happens when I try to select a certain polygon (the yellow outline with the blue star ...
-2
votes
1answer
269 views

Why don't shapefiles online contain the coastline (country borders)?

I have searched everywhere and Geofabric has the best packages of shps yet doesn't have the coastline of countries. I'm talking about the line that demarcates a country i suppose they are called ...
0
votes
1answer
90 views

Changing unknown coordinate system of raster data to known coordinate system?

I have a set of raster datasets and have created a raster catalog out of them. These datasets should cover specific vector data. I have just realised that the raster as tif data have a coordinate ...
1
vote
1answer
54 views

Map based on highest percentage from different variables

I've the 8 social classes (see under) for +- 900 polygons. I would like to create a new column that keep only name of the main social class for each row (based on the percentage). After that I would ...
3
votes
3answers
340 views

Plotting Geo Points with “by arc centered at” Instructions

A recent Supreme Court decision redefined the legal boundaries of California along the Pacific Ocean: http://www.theverge.com/tldr/2014/12/15/7397085/supreme-court-california-boundaries-map I am ...
1
vote
0answers
82 views

Fixed distance buffer is oval in QGIS?

I want to create circles of diameter 20m in QGIS. I create a point and then use vector - geoprocessing tools - fixed distance buffer. My problem is that the size is crazy and worse, the shape is not a ...
0
votes
0answers
56 views

Computing Moran's I for vector data in GRASS

Does GRASS allow for computing Auto-Correlation using Moran's I statistic from vector files. GeoDa and ArcGis can do this. But seems grass lacks this functionality https://grass.osgeo.org/grass76/...
3
votes
3answers
3k views

“Node tool: could not snap to a segment on the current layer” message

I have a strange issue. Editing a layer with node tool I get always the following message: "Node tool: could not snap to a segment on the current layer." This error happens to me even with a fresh ...
1
vote
0answers
137 views

PyQGIS raster image shifted from vector shapefile

I previously asked a question about my raster image being larger and shifted over from my vector image here, but now I realize that the raster image is only shifted to the left and up from the vector ...
-1
votes
1answer
77 views

Summing amount of vector points in area of another vector using Google Earth Engine?

So I have 2 layers each are both vectors and not images. here the link: https://code.earthengine.google.com/e7aec6c9683ed40a959a01a7ed5dd31f I have written some basic code to display the data which ...
0
votes
2answers
91 views

How to convert multiple shapefiles of different geometries into a georeferenced raster

I have multiple shapefiles extracted from OSM vector data, as shown in the image bellow: How can I render this into a raster of a specified resolution? Is there a way to do that using QGIS or ...
4
votes
5answers
4k views

How to sum raster image values with vector overlay

I'm new to this and haven't been able to figure out how to do this on my own. I have two files: a raster image of land use data and a vector-based shapefile of my territories. The raster image has ...
2
votes
3answers
228 views

How can I save a vector layer to memory (or is there a reason QGIS doesn't allow this)?

It's impressive how many different vector file formats QGIS (using ver 3.6.0) allows me to save a layer as: But as far as I can tell, QGIS doesn't allow me to save a vector layer to memory. In my ...