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
1k views

Using custom filters (server side) for OpenLayers Vector Layer

I have a vector layer in openlayers with source in GEOJSON (custom php server, which I have in complete control) and BBOX strategy. Vector points contain point sources which have different attributes....
4
votes
1answer
512 views

Comparing ranges and distributions of species, looking for correlation and differences between ranges

As a biology student just beginning with GIS, I wondere if someone could give me an idea of what tools to go about using to compare the range of 3 species that have trophic effects on one another. I ...
1
vote
1answer
54 views

QGIS Natural Earth Geometries

When I insert country borders from Natural Earth, they look broken when zoomed out. When I zoom in they look correct. Is there any way to correct this, particularly when creating a map in layout?
0
votes
0answers
34 views

Creating a new layer for free space between existing layers

How can I create a new layer that will only show the 'free space' between the raster and vector layers that are currently on my map? Will I have to merge my existing raster and vector layers and use ...
0
votes
0answers
52 views

How to calculate the number of pixels in each class using QGIS?

I have a raster file with slope values. These slope values are divided among several classes like A,B,C. Then there's a vector map with points. For an example a point can belong to class A of slope ...
5
votes
1answer
6k views

Changing vector projection in OpenLayers

I have added vector layer to map: vactorTest = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new OpenLayers.Projection(...
0
votes
0answers
25 views

Simultaneously editing 2 features from 2 different layers in QGIS [duplicate]

Is there a way in QGIS to edit 2 different features from 2 different layers at once. For example I selected a point in a point layer and a polygon in a polygon layer and I want to move them to ...
1
vote
2answers
408 views

CRS error working with Solaris [closed]

result_polys = sol.vector.polygon.georegister_px_df(mask2poly, affine_obj=tile_tfm, crs= 'epsg:4326') ...
0
votes
0answers
55 views

Splitting Large MapInfo Table into Individual Parts

Can a MapInfo .tab file made up of 400 territories (polygons) be split up or "exploded" into its individual polygon parts using MapInfo?
-2
votes
2answers
364 views

Counting raster points within boundaries in another layer?

I know this question is similar to some out there, but I have tried all the 'solutions' and none of them are working for me. I am using the latest version of Qgis. I have a raster layer with lat/...
3
votes
1answer
584 views

Looking for Android, offline, mobile app for field campaign? [closed]

In the frame of an international project in agriculture monitoring, I have to propose a mobile app that will be used as a reference for field working. The minimum requirements of such an application ...
0
votes
2answers
685 views

In grass v.drape works with points but not lines

I got an elevation raster map which I interpolate from a point cloud with v.surf.bspline. Then I digitize a couple of points in a new vector layer. With v.drape I'm able to get a height from the ...
1
vote
2answers
85 views

Snapping objects to grid without grid?

Is there a function to snap new or moved vectors to a (user-defined) grid on the map similar to the AutoCAD snapping-function without generation a point/line/polygon-grid over the whole region first? ...
7
votes
1answer
493 views

QGIS Point on Surface

As far as I can tell, the option to "Create point on surface for each part" in the QGIS Centroid tool is not returning the correct geometry when activated in QGIS (version 3.8.1-Zanzibar/GDAL v 2.2.3 ...
4
votes
1answer
4k views

Changing vector layer dynamically using OpenLayers 4?

I need dynamically change vector layer on map, which is represented by some route in geojson. This new geojson I get from my service, so I have function changeRoute, which I will call in ajax on ...
2
votes
2answers
122 views

Populate field in one layer with corresponding value from another layer

I have 2 existing vector layers: 1 point, 1 polygon. In almost all cases the points overlap a polygon. The point layer has multiple features (1,000+) with an existing field which I need to ...
11
votes
2answers
4k views

Is there a way to split polygons by several lines in QGIS?

I have a polygon (.shp) and a line (.shp) layer. I want to split the polygon in several pieces along the lines that overlap the polygon. Afterwards I want to edit each polygon separately (attribute ...
4
votes
1answer
188 views

PostGIS erase/difference vector polygons from raster

I have a raster and a vector table in Postgres 12 PostGIS 3.0 The vector polygon(orange) overlaps the slope raster(grid in black, whiteish) All I want to do is cut out/erase the orange polygon from ...
1
vote
1answer
69 views

SAGA difference tool in QGIS

I am using QGIS 3.4 Madeira. I want to use difference tool from SAGA from the processing tool box since my data has some invalid geometries and want to fix the issue later after using difference tool ...
89
votes
9answers
47k views

Self-hosting Mapbox vector tiles

As presented in a talk at FOSS4G Mapbox Studio allows to create Mapbox vector tiles and export them as a .mbtiles file. The mapbox-gl.js library can be used to dynamically style and render Mapbox ...
2
votes
0answers
35 views

Reprojecting a shapefile Error

I am trying to write a function to reproject a vector file , by taking the original shapefile as input and giving out the name of the reprojected layer . Though when I call this function I get an ...
0
votes
0answers
38 views

Reprojection of Landsat 8 using the existing shapefile in ArcGis

I have downloaded a landsat8 and when I overlay it with a shapefile of the location where I want to extract by mask , the combination of landsat 8 and the shapefile are not matching. The shapefile is ...
0
votes
0answers
17 views

Analyzing Sonoma County's topography/slope in 2017 fires

I am looking to create a map of sonoma county's topography. I am looking at one of the components of a fire: slope. I want to first isolate sonoma county, which is easy enough to do, after that ...
1
vote
1answer
118 views

Turning “normal” Vector Data into a GIS

I have a map in Adobe Illustrator with several vector layers. ( Therefore the vector data have no spatial reference and no attributes. What is the best way to turn these vector data into a GIS and ...
2
votes
1answer
135 views

Convert sfc-column into two columns with their corresponding x and y coordinates

I have a sfc-column with just 6 points. I'd like to make these point to markers in a leaflet-map in R. So I thought that it would be a nice idea to convert them into two columns: x and y. The sfc-...
1
vote
1answer
69 views

ggplot2lend for sf-objects

I wanted to make a simple plot of four sf-objects which don't contain much more than the sfc-column and some postal-code information. The sf-objects have the names level 1-4 and plz. What I would ...
1
vote
1answer
75 views

Reading vector-dataset with rgrass7

I have read in some vector data with rgrass7 and produced some output Layers using Grass in R. Now I wanted to import one of the created layers back into R and convert it into an sf- object. When I ...
33
votes
8answers
36k views

Georeferencing vector layer with control points using QGIS?

I have a non-georeferenced vector layer that I need to be georeferenced. With raster layers the task is easy and straightforward, but I have no idea what should I do with my vector layer. I have a few ...
13
votes
2answers
10k views

Georeferencing vector PDF/SVG/DXF linework using QGIS? [duplicate]

I want to create a small web application to visualize election results on a per poll site basis for my city. The result is going to be very similar to what has been done for Berlin here. Hopefully ...
3
votes
1answer
40 views

Road Names - Multiple Lines and Single Lines [closed]

Fairly new to the GIS world. I have been creating maps for my employer using OS Vector map data. Up until recently everything has been going smoothly - I only use vector based data so that I can ...
1
vote
1answer
29 views

Clip polygon to multiple polygons

I have nine vector land use .shp and I had to make a cropland shapefile, but I thought of giving my study region polygon an attribute to be cropland, instead of digitizing it. I forgot what function ...
1
vote
0answers
109 views

Can't import WKT polygon to SNAP

I have big size Sentinel-1 image and I would like to clip it to smaller size. For that i'm trying to import shapefile but I get errors all the time: This is my polygon WKT: PolygonZ ((102....
2
votes
1answer
153 views

Raster origin is incorrect so not properly overlay with vector in same CRS [duplicate]

Two layers, both allegedly WGS84, one vector layer of the Midwestern US, one raster layer with coverage of the entire US. The vector layer renders correctly (coordinates are correct), but the raster ...
1
vote
1answer
142 views

OpenLayers get closest feature over multiple vector layers

My OpenLayers map has multiple, vector layers, each with unique features. I need a way to find the closest feature to a location across all the layers, in the same way that ...
3
votes
1answer
74 views

Subset point vector based on attribute classification in underlying raster

I have two datasets: A raster file containing per-pixel vegetation classifications across Australia. The file is described to have projection of EPSG:3577 https://epsg.io/3577. All additional meta ...
3
votes
1answer
130 views

PostGIS raster calculate average slope of 3x3 neighborhood around a geometry point

I have two tables corners_final (vector point data) dem_slope (1ft slope DEM, calculated in degrees) With this simple query I am able to extract the slope value that intersects a given point SELECT ...
2
votes
2answers
139 views

Transfer attribute and split line

I have two line dataset that represent the same roads: First one has very precise geometry Second one has an approximative geometry, but very interesting attribute. What I want to achieve is to have ...
0
votes
2answers
329 views

Tracing vector map from GeoTIFF for Garmin

My goal is to create a vector map for my Garmin GPS by tracing over a topo raster. The vector data would be exported in ESRI SHP format and later converted for Garmin. So far, I can load the geotiff ...
2
votes
1answer
120 views

Lat/Long co-ordinates are not plotting onto EPSG:3857 OSM basemap correctly

Excuse me if this is a stupid question, but I've honestly tried to find the answer in a few threads here on SE, and I cannot seem to follow the suggested steps correctly. Project is in EPSG:3857 (...
4
votes
1answer
1k views

Generating vector contour map of fictional terrain [closed]

Originally I had asked this on the Graphics Design SE but after some realization of the question I was asking, it's probably better to ask it here. I'm making a fantasy world map in illustrator that ...
4
votes
2answers
6k views

Converting Raster to vector and creating polygons based on each pixel using QGIS

I want to convert a raster file (100x100m pixel size) which contains population counts as pixel values. I need a vector based file of the 100x100m grids and the population as attributes. I tried ...
3
votes
3answers
3k views

Clipping shapefile with Python?

My problem is the following, I cannot find a reasonable method to clip 2 vector based shapefiles using python (without ArcPy or QGIS API). I tried using the geometry.intersections method, but that ...
4
votes
1answer
604 views

Aligning raster data to vector data in QGIS?

I'm in the midst of aligning century-old maps (of Paris) to vector data of the modern same: Qgis' Georeferencer tool works fine, but doing the entire city that way is a gargantuan task. Paris hasn't ...
1
vote
1answer
73 views

Calculating areas of polygons that match with overlapping raster threshold value?

I have a polygon of districts (districts.shp) and a raster of rainfall (rainfall.tiff). I want to calculate the area of each district that saw rainfall greater than various numbers. I'd like to ...
-2
votes
1answer
11k views

Easy way to create buffer in QGIS 2?

In the old version of QGIS creating buffer was a relatively complicated task. Basically you had to save your layer as a new one with metric cylinder CRS in order to calculate distance correctly. If ...
22
votes
6answers
27k views

Moving vectors to specified coordinates in QGIS?

I have a layer of vectors located around, say, (100, 100), and I want to move them to new coordinate like (1000, 1000). How should I do it using QGIS?
1
vote
1answer
262 views

Adding Street Names and Labels to QGIS Map as separate layer

I'm trying to add all the street, river, town (all words in fact) as a separate vector layer in QGIS. I am looking to extract just the words from a London map as a PDF which I can then change to ...
0
votes
1answer
32 views

Rasterization - choosing attribute from attribute table for cell value of raster - why?

When a polygon shapefile is converted into a raster, an attribute from the shapefile's attribute table must be chosen for the cell value of the raster. I am pretty sure the above statement is ...
1
vote
0answers
22 views

Vector to Raster

I traced land use as forest (purple) and non-forest (Teal) in my study area of 117sq.km. from google earth. I have attached a copy of the landcover file which I have created. I need to convert this ...
2
votes
1answer
84 views

DEM and vector data won't match using QGIS

I have just started using QGIS for my research at university. I have a DEM comprising Italian regions of Lazio, Tuscany and Umbria. I then have a set of vector data from surveys carried out in these ...

1
3 4
5
6 7
31