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
0answers
117 views

Equivalence of protocol.http of openlayers 2 to openlayers 3?

I am new to openlayers. I have following code in openlayers 2. for (var i=0;i<wfslayers.length;i++) { var object=wfslayers[i]; var url="/"+object.resourcelocation+"/wfs?token="+object....
1
vote
3answers
4k views

Iterate through features to use selection as input for ExtractByMask

I need to iterate through each of the features of a feature class successively to use each one as the mask to extract from a raster with the ExtractByMask tool. Basically I'm looking for the "Iterate ...
2
votes
3answers
10k views

Add layers to a feature group with a function/loop

I have a bunch of markers that I would like to add to a feature group. Currently I'm doing it manually: 1) First adding all the markers (around 50) var shelter1 = L.marker([54.962725, 12.548215], {...
1
vote
0answers
32 views

Change the color attribute of a mulitline layer

I'm very new in world of the shapefiles, i have a code that add point in a multiline layer, but when i open with ArcGis each layer have a different color, and i want that all the layer have the same ...
1
vote
1answer
516 views

Display an image on a Leaflet map using geojson attributes

I have a geojson file "test.geojson" which contains image metadata for multiple images, including image url (as browseUrl) and image bounds (as imageBounds). What I want to do is to display a ...
1
vote
1answer
58 views

How to cut / paste only certain features from a vector layer onto a new vector layer in QGIS?

I have a large vector layer in QGIS (180,000 features) and I would like to select only certain features (based on their area) then cut and paste them onto a new vector layer. Essentially I want to ...
3
votes
0answers
292 views

Looking for Proxy Server (like MapProxy) but for Vector/Feature Data [closed]

Currently, I'm using MapProxy to pull raster tiles from web services, cache those tiles locally, then serve them back out. So MapProxy is acting as a performance enhancing proxy. Is there any piece ...
0
votes
1answer
1k views

Show Features for multiple Layers (Geoserver/Leaflet) [duplicate]

It's my first web mapping app and I want to show features for multiple layers added to my map, I'm using Leaflet/Geoserver. var OpenStreetMap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{...
1
vote
0answers
247 views

Get feature's geometry from feature Form's argument

Under a pyqgis form, the feature from Form's argument doesn't has geometry . Here the code I used: def formOpen(dialog,layer,feature): geometry = feature.geometry() Geometry return is None. ...
2
votes
1answer
1k views

Change the colors of polygons on a choropleth map with leaflet

I have data from different countries (=polygons) from 1990 to 2012 and depending on the data value I want to map the changes with a timeline enabling the user to visualize the changes (with colors) ...
0
votes
2answers
601 views

Get features inside a polygon from a WMS Layer in OpenLayers2

i have found some answers for this and that and the most promising approach seems to be this one here: OpenLayers - Get features inside a polygon But i have no clue how to rewrite this to suite a ...
1
vote
1answer
58 views

Selecting by feature

I get an error message: "Input layer A contains invalid geometries (Feature 33). Unable to complete intersection algorithm" with the intersect tool. Now I want to have a look at Feature 33. How can I ...
2
votes
1answer
207 views

Cut feature from the same layer with the buffer in QGIS

Is it possible in QGIS to cut with a buffer a feature from the same layer, like it is in the editing mode for ArcGIS (see picture below)?
1
vote
1answer
414 views

Openlayers features clear method

I want to clear the features in a vector layer source , I have tried features.getFeatures().clear(); but it doesn't work!
1
vote
0answers
146 views

feature in the formOpen method of a custom form display two feature object

Qgis version : 2.18.1 I was having trouble when launching a custom edit form because of my use of feature in the formOpen method. I want to get an attribute from the current feature as this: feature....
1
vote
0answers
167 views

Feature class - HEC-GeoRAS

I am currently working with HEC-GeoRAS I am trying to import data from a shapefile into the feature class River. I would like to insert a type of data DOUBLE in the attribute ARCLENGTH of the table ...
1
vote
0answers
85 views

Why are features added to layers via Python script not being displayed?

I am using PyQGIS with QGIS version 2.18.11. Can layer.addFeature() be used on a layer which is a clone of a layer which was imported from a .xml file? This code throws no errors: def ...
1
vote
0answers
31 views

Displaying all features of datapoint QGIS

I've got a SHP file with 6000 features and I would like to click on each point on the map and know what the features are for that specific point. It is a lizard database and doing this would tell me ...
1
vote
1answer
245 views

Activate the editing tool “Move feature” for Oracle layers in QGIS?

In QGIS I have a map layer which is connected to an Oracle database. After I turn the map layer to editing mode I discover that I can only change the attribute data, create and delete objects, but I ...
1
vote
1answer
55 views

Creating a Line based on the outline of two polygons

I have two polygons and where they meet, I need to create a new line shapefile. I have used the trace method, but it keeps giving me a polygon. Under construction tools, "line" is not an option. Do ...
3
votes
2answers
186 views

Identify only visible features in QGIS

I have a thematic map layer Rekryterare in QGIS. The layer is defined as identifiable. The question is how can I make the thematic categories of this map layer unidentifiable when they are invisible ...
1
vote
1answer
132 views

Merging XML files [closed]

I am doing research about the city of Hamburg and I downloaded a dataset containing georeferenced point data of every house in Hamburg. The problem is that the dataset is made up of about 250 ...
0
votes
0answers
61 views

Converting feature to raster, missing values

I have converted many features from the same shapefile to rasters, but am now getting an issue where values are missing. Converting the percentage values in column a212 (data type long) produces a ...
2
votes
1answer
279 views

Merging features from equal attributes in QGIS 2.18.3?

I am working on a feature merge Operation, able to stick features together, if they have the same attributive values (e.g. TP_RKZ1 & TP_RKZ2 are empty so stick the multiple features to one single ...
1
vote
0answers
536 views

Aggregating image information over two features in Google Earth Engine?

As per Iterating over years for features in feature collection using Google Earth Engine?, I am currently working with the Hansen data (Global Forest Change) in Earth Engine. I have imported two ...
1
vote
1answer
378 views

Copy features from several layers into one layer

I am trying to merge many layers to one and the only working method I found is by copying features from one layer and paste in the desired layer. I tried to use MMQGIS - Merge tool but I get some ...
1
vote
2answers
273 views

How to add a polygon within another polygon as opposed to on top of it?

Sorry for the confusing question. I have a shapefile and I need to draw a polygon in the middle of it. I know I can use the "create features" function, but that creates a polygon on top of the first ...
2
votes
1answer
213 views

How can I insert the result of the dijkstra algorithm as a feature in a table with PyQGIS?

I ask for your help with the PyQGIS API. Being a new user of GIS I would like to carry out an operation. It is for me to look for the shortest path in a graph using the DIJKSTRA algorithm. The code ...
1
vote
0answers
187 views

Selecting Feature in more layers and highlighting them using PyQGIS?

I'm developing my plugin and I want after selected some feature highlight them on mapCanvas. My code is below but it does not work correctly, I don't get an error but I cannot view the highlighted ...
7
votes
2answers
2k views

Feature Count in Legend (QGIS 2.18.2)

Below is a screen shot of my Layers Panel showing two Graduated Category layers. One set of category features (Change in Small Firms (2015-2010)) are accompanied by counts, while the other (Change in ...
1
vote
0answers
148 views

how to get (number of) clustered features before map completely rendered?

When you add features into ol.source.Cluster, you can access original ol.Feature object but clustered ol.Feature which is currently displayed on the map. check this codepen with console log. it doesn'...
3
votes
1answer
145 views

Digitizing without gaps in QGIS

I started making a vector layer from raster data but I see slivers (gap area) between my parks and roads layer. How can I overcome this problem? I planned to make a map with scale 1:5000.
3
votes
2answers
368 views

Pyqgis - selectedFeatures() doesn't seems to work

Qgis version : 2.18.1 I just want to print the ids of the selected features of a certain layer (I should specify that this layer is stored in a spatialite database), but even if I specified the ...
1
vote
1answer
73 views

How to select features that equals to 159 different values

I am new to QGIS. My question is, e.g, I have a .shp that has 10,000 features: . how to select features where the column of id that equals to 159 different values, e.g., selecting id=63703,63706,...
1
vote
0answers
120 views

Allow WFS searches but no total data download

I am using GeoServer and I published some data. I want that users can extract features information by predefined queries but I do not want that they can also download the entire dataset with ...
0
votes
1answer
128 views

When I add a feature to a vector layer, all the features of the layer disappear Openlayers

I'm working in a Geocoder tool that can put new features in a vector layer directly just pressing a button. When press the button all the features of the layer disappear in the map. The features still ...
0
votes
0answers
83 views

QGIS MSSQL Feature table Repeated error

I have a MSSQL (2008 R2) SQL view that is visible and displayable within QGIS (LTR ESSEN 2.14.15) itself. However if I attempt to style the results by classification the map display disappears. If I ...
4
votes
1answer
687 views

Merge selected feature pyqgis

I want to merge the selected features. I found this post but I can not do it. Can anybody help me? layer = iface.activeLayer() obj1 = 24 obj2= 25 expr = QgsExpression( " \"ID_PARCEL\" = '{}' OR \"...
0
votes
1answer
252 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
87 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
640 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
174 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
378 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
145 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
75 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
576 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
474 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,...