Questions tagged [features]

Use this tag when asking questions about a representation of a real-world objects on a map.

Filter by
Sorted by
Tagged with
0
votes
1answer
273 views

Select features from a raster based on their colour to create a new layer

I have a map of the UK imported as a raster. It was originally a JPEG and has areas that are coloured red and purple. I have a data set imported from a CSV file showing UK locations as dots. I want to ...
2
votes
0answers
91 views

How to generate a single kml file for each feature in a kml file?

I have a kml file containing features that I would like to parse out into separate kml files for each feature/header. I'm hoping there is an easy way to do this using geojson.io or QGIS. How can I ...
1
vote
0answers
51 views

Labels should not cover features [duplicate]

How do I tell QGIS that my labels should not cover features in layer 1 and layer 2, while it is OK to cover layers 3 and 4? qgis version 2.18.7
4
votes
1answer
732 views

Moving a vector layer 20m to the west on QGIS

I have a vector layer of power lines for an area, the shapefile that I was given is actually around 20m to the west of where I know the power lines are actually supposed to be, as they are supposed to ...
1
vote
0answers
178 views

Fill e.layer when firing events manually [closed]

(Asked on stackoverflow, but later found gis@stackexchange, and think it may be a more suitable place) I am using a L.vectorGrid.protobuf layer (named as pbfLayer) to display vector tiles, and I want ...
2
votes
1answer
2k views

How to merge two (or more) features in OpenLayers?

Context: I'm building a WebApp with OpenLayers that allows users to represent on a map their commuting trips by selecting a bus stop, choosing a bus line and finally selecting where they get off the ...
11
votes
3answers
1k views

Generating attributes in an automatic way with QGIS?

I want to autogenerate IDs while I create new features. So every time I create a new point, its ID will increase by 1 like the following: Feature 1: id 1 Feature 2: id 2 Feature 3: id 3 How can I ...
1
vote
1answer
398 views

v.generalize not working QGIS 2.14 “The following layers were not correctly generated” polygons

I am trying to generalize a polygon layer using the v.generalize algorithm in QGIS 2.14. While it works for linear features, polygon features are refused by the program. Might anyone know, what the ...
1
vote
1answer
174 views

Does line feature have one or two dimensions?

In the coursera class fundamentals of gis it's said that lines are one-dimensional feature and polygons are two-dimensional. Is this correct? if the line has a curvature two dimensions are needed to ...
5
votes
0answers
83 views

Assigning geometry to existing features in QGIS? [duplicate]

I have a point-shape-layer with existing features and an attribute table. But none of these features have a geometry yet(i.e. no points that are shown). How can I now add a point to each feature? ...
0
votes
1answer
622 views

OpenLayers 3 - Google Maps switch, problem with style

I use ol3-google-maps and when I switch layer from standard OSM to Google then styles are broken. I have defined styles but Google use self for example: points in OSM are yellow but when is google-map ...
1
vote
1answer
494 views

Selected feature is not feature type

I have multiple features that I display, and on click a popup appears, with a button to store it to favorites (with intention of show only favorites afterwards) The thing is, when I click the button,...
0
votes
1answer
27 views

Taken from ISS 3-30-2017 7:45AM Eastern [closed]

I found these peninsula very interesting. Tracker showed ISS over the bottom portion of South America and the features resemble portions of the Falkland Islands but I'd love to explore more. Any ...
1
vote
1answer
103 views

Openlayers JS issue

I am trying to combine two JS functions in a WMS; drawing features and getting/showing the coordinates of features, e.g. by clicking the drawn features afterwards. I can manage to draw features by ...
6
votes
3answers
2k views

Mapping a feature from the attribute table in QGIS?

I currently finished adding all the needed attributes for my research. I would like to map these attributes. Is there any way to do so? The original method I was taught was to select: on the map and ...
2
votes
1answer
544 views

Split tool is deleting segment at split point

I turned editing on and selected this line feature from a feature class. After I selected this line feature, I clicked the Split Tool to separate the line at the vertex (the corner). When I click at ...
8
votes
2answers
20k views

Displaying properties of GeoJSON in popup on Leaflet?

This is my simple GeoJSON with Leaflet map. I want to display properties as popup but I don't know why it is empty. Can you tell me my mistake? <html> <head> <title>A Leaflet map!...
8
votes
2answers
290 views

Quickly browsing of features for the active vector layer?

I often need to view on the canvas the (selected or not) features from the current active vector layer. In this situation, I only need to view something on the canvas, without doing anything on the ...
2
votes
1answer
47 views

Quick doubt about adding a Feature to a Vector Layer

If I clone a feature from a Vector Layer A and I add it to another Layer B, I assume this happens only in client side and it doesn't really affect my B Layer on server at all, am I right? # Note: ...
2
votes
1answer
244 views

Selecting features on PostGIS table from QGIS?

I use QGIS 2.14.11-Essen and PostGIS 2.1.8. This is an issue I had not with previous QGIS versions. I work with LTR version for my work so upgrade to current version (2.18.3) is not possible for now. ...
3
votes
1answer
1k views

Adding features from ArcGIS Online to QGIS?

How can I add features which provided by ArcGIS Online to QGIS map? I'd like to add feature like "USA Mean Temperature" with QGIS (2.18.3). These useful features are easy to access when I use ArcGIS ...
2
votes
0answers
94 views

Select features tool- QGIS 2.14

When i select polygon with select tool- the whole polygon colored: i seek a way to select the shape only with outline, as it possible in ArcGIS. I know i can change the opasitiy in "Map Tool" but ...
4
votes
1answer
407 views

Iterate through shapefile and output an image for each feature using sf in R

I would like to create some statistical profiles for a range of features; specifically, 2016 Census profiles for the Census Divisions (CD) within British Columbia (BC), Canada. This would require a ...
3
votes
0answers
691 views

Modify features not updating on vector layer

I have point vector layer in my application.Now I am trying to modify its coordinates. I am able to do it but its not reflecting on layer. Here is code I am using : var selectInt = new ol.interaction....
0
votes
1answer
402 views

Updating feature in ArcGIS REST service with Ajax?

I have to modifiy an app. This app must update and add data to feature in an ArcGIS Server service. I know that with ArcGIS JavaScript API is very easy but this app is build with Leaflet and others ...
4
votes
1answer
858 views

Extract a feature from a shapefile layer, rasterize it and save to a numpy array

I have the following problem: The following sequence of operations: loading a shp file using a gdal package, extracting a layer out of it (every feature in this layer is a polygon), leads me to a ...
1
vote
3answers
1k views

Creating dynamic field area in QGIS? [duplicate]

I work with this perimeter\area fields: i created it with "Add geometry columns" vector tool. How can i create a dynamic perimeter\ area fields, so when i create a new feature or change existed ...
1
vote
1answer
96 views

Arcpy CopyFeatures creates empty shapefile

I'm running a script to create a buffer and find features from another shapefile that fall completely within that buffer. The script seems to work fine, it finds all the correct features (I checked ...
4
votes
1answer
423 views

GetFeatureCount gives same result after deleting a feature

This is my code: num1 = layer.GetFeatureCount() layer.DeleteFeature(1) layer.SyncToDisk() num2 = layer.GetFeatureCount() print num1 print num2 For some reason, num1 and num2 are the same number. Why?...
2
votes
1answer
305 views

How to retrieve data from a related table by using ArcGIS JavaScript API 4.1?

I have a feature layer and a related table. I want retrieve information from the related table and show them. Which API is referenced when using ArcGIS JavaScript API 4.1.?
1
vote
0answers
43 views

Trouble when append values from attribute table of shapefile

I need to record the values for all fields of a shapefile in a dictionary. When I run a loop that for the first index of list picked up values from attribute table correctly. The problem for the ...
2
votes
2answers
5k views

Open popup of a feature with its marker

Got a leaflet map with some features and a button with a search function. A marker is shown at the lat,long where the feature is found. A click on the feature shows a popup. heres the code for the ...
2
votes
0answers
61 views

Location of island “Trinidad”?

I was reading a travel diary of an ancestor of mine who describes a cruise from Hamburg to Natal (South Africa) in 1860. At one point a rock island named Trinidad (supposedly only inhabited by animals)...
3
votes
2answers
307 views

Classify tree height and age

I am doing the classification of mangrove trees according to their species, height, and etc by using QGIS. I have done the species classification part. I would like to know how can I differentiate ...
2
votes
0answers
540 views

Problem merging polygons in QGIS

I've got a polygon shapefile with 11 features (11 Italian cities) and I want them to merge them into one, however I cannot activate the "Merge selected features" button. Any suggestion about the ...
1
vote
1answer
379 views

How to zoom to Feature in VB .net

I'm trying to zoom to a feature just like in Arcmap but in VB.net. I'm using Axmapcontrol to display the map. I've tried the following: Dim pCmdItem As ICommandItem Dim pUID As New UID pUID.Value = "{...
4
votes
1answer
370 views

QGIS Feature Selection - Add to Current Selection

I have recently started working in QGIS. I need to select multiple features loaded in map canvas one by one. To select a feature in addition to the selected features in the map canvas, I need to hold ...
0
votes
1answer
629 views

Remove Feature from Layer on Zoom - OpenLayers 3.19

I'm trying to erase the content of my layer when I zoom but even if I clear the source, the icons are back on the map again. I'm blocked since one week, please help. There is my code /**** Define the ...
4
votes
1answer
85 views

Sub-divide features in QGIS

I am new at QGIS and GIS in general. Basically, I have a shapefile of continents. However, I need to include further refinements. For example, within "Oceania", I need to identify New Zealand and New ...
2
votes
1answer
119 views

String output as an input dataset variable

I have a model which creates topology with rules and validate itself. But I got used to working with layers in TOC and have a script in Calculate value tool that with a help of Parse path tool make a ...
4
votes
1answer
482 views

Creating separate line feature from multi-line feature in QGIS?

I am working with road network data and I have a large amount of lines that are not connected but are classified as the same feature. I want to select one or more of those lines and create a new ...
2
votes
2answers
68 views

ArcGIS - Selecting features depending on 2 attributes

Ok, I guess this should be not too hard, but I can't figure it out: I have a layer "A" resulting from a layer "0" which was intersected with itself. So layer "A" contains all intersects. The ...
5
votes
2answers
1k views

How to sum up values of overlapping polygons in QGIS?

I have large single layers with many features overlapping. Simplified example with 50% transparency: Where the features overlap I want the attributes added together. I manually created the output ...
4
votes
1answer
270 views

Recursive loop to modify vector layer and refresh mapcanvas

I'm trying to plot one point "jumping" each second in the canvas (like a gps tracking). I need to take points from a .csv file. This functionality is made in a QWidget of my application, so the code ...
3
votes
1answer
1k views

Drawing/updating feature “during” drag on OpenLayers 3?

I want to draw a line with the vertices: initial center; current center (on each pointer drag). I have a blue point at the initial center and a red cross at the new center of the map on each drag. ...
2
votes
1answer
84 views

Selected features tool don't work in QGIS 2.12

I work with this polygon layer and features 6 and 7 are identical: I don't understand why the selected feature tool work when i select feature number 7 and don't work when i select feature number ...
1
vote
1answer
35 views

Highlighting features that contain data only

I am trying to highlight individual features in a grid that contain Jobs data from an $.ajax call. I already have a highlight function that highlights the grid cells when they are moused over and I ...
1
vote
1answer
105 views

What is a “feature” in Getis-Ord G* hot spot analysis?

From the official site, it says "The Hot Spot Analysis tool calculates the Getis-Ord Gi* statistic (pronounced G-i-star) for each feature in a dataset" and "xj is the attribute value for feature j". ...
1
vote
0answers
566 views

All coordinates with an specific distance to one point

I'm sorry for my english! I have to get the following informations: I have a specific point with long/lat. Then i draw a circle with a specific radius (e.g. 5km). The intersections of all roads on the ...
0
votes
2answers
213 views

arcPy SelectLayerByAttribute_Managment SQL Expression issues using wildcard

I have a Layer of Streams called "My_Channels" with the following source Data Type: File Geodatabase Feature Class Database: C:\Users\user\Documents\ArcGIS\Default.gdb Feature Class: My_Channels ...