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
2
votes
1answer
236 views

SimpleFeatureType.getCoordinateReferenceSystem() == null after building type

I tried to build new type, but SimpleFeatureType.getCoordinateReferenceSystem() returns null //create polygon GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory( ); ...
1
vote
2answers
142 views

How to check whether a feature has been split in GeoTools?

In my program I am looking for a best place for a golf course. Three of the conditions are: The course must be on a hill, it must be at least 100 meters away from roads and must not be larger than ...
1
vote
1answer
3k views

Select Feature button greyed out?

I am a new user of QGIS 3.0.2. Simply trying to select a specific land parcel using a GeoNB layer, also will need to select other features obviously in the future. My "Select Features" button is ...
0
votes
1answer
190 views

Point from FeatureSet as Input to Python script tool?

I'm looking to use a point on the map provided through a FeatureSet as an input to both a buffer and Select by Location. I have created the geoprocessing tool that works, but am having difficulty with ...
0
votes
1answer
89 views

Issue with speed of adding new features to a layer

I have a list of features that I would like to add to a layer. The features are built from a list of objects that contain a number of attributes as well as a set of coordinates. var lines = data; //...
2
votes
1answer
1k views

I keep getting the "Paste Features Failed." dialog when trying to copy/paste point features in a layer in ArcGIS pro

I have a "plant_species" point feature class, and after a period of time working with the layer, the ability to copy/paste an individual plant_species feature from within the map frame no longer works....
1
vote
1answer
65 views

Saving Shapefile - Zero Features Error

I am using QGIS 3.02. I opened a GDB file in QGIS and saved it as a shapefile in EPSG: 4326. Now I want to save it in EPSG: 2264 but I am running into an issue. Every time I save it as EPSG: 2264 the ...
12
votes
3answers
444 views

Distinguishing corridors from fragments in a habitat map

I was wondering if someone has delt with this kind of issue before: I want to delineate fragments based on neighboring pixels of the same class (forest) with a distance threshold of 3 pixels (which ...
3
votes
1answer
948 views

Dynamically selecting t layer features implementing canvasMoveEvent of QgsMapToolIdentify class?

In my QGIS plugin I need to dynamically select features of a layer with the mouse move event. In Programatically check for mouse click in PyQGIS? the canvasMoveEvent of the QgsMapTool class is ...
1
vote
0answers
56 views

Keep legend item & feature count even when item does not appear in current Atlas feature

I would like to see all legend items irrespective of whether the item appears in the current Atlas feature. I have formatted the legend such that count of each item appears in brackets, next to the ...
4
votes
1answer
907 views

Missing features from featureCollection in Google Earth Engine but present in Fusion Table

I am using google earth engine code editor to extract some band values at specific point locations. To do so I have loaded my .csv file with point IDs and coordinates into Fusion Tables and the Map ...
0
votes
1answer
156 views

Why is my function hiding all of my features?

I'm making a map, using ArcGIS javascript API, that has a filter tool that filters some polygons by habitat type. When the user selects a habitat type, only features of that habitat type should be ...
9
votes
5answers
8k views

Show/hide features on layer in OpenLayers?

In previous versions of OpenLayers, features on a layer could be hidden by changing visibility to 'hidden' but that does not seem to work on OpenLayers 4. How can features be modified so that we can ...
0
votes
1answer
233 views

Changing feature from one feature class to another using ArcGIS Pro?

I am trying to change a feature from one feature class to another (not copy) For example, I am working with a town's water system. We have mainline valves and hydrant valves. I have come across a ...
7
votes
1answer
6k views

Get feature from ol.interaction.Draw on drawend

My problem seems simple but I cannot find any questions that successfully solve it. I want to draw a circle using ol.interaction.Draw, and access the feature that is created immediately. My code as ...
2
votes
2answers
408 views

Shows previous Atlas features grayed out

I try to make a set of maps using QGIS Atlas. My maps will consist of selected feature with it's attributes (using $id = @atlas_featureid, and that's working). Basically - districts in particular city ...
4
votes
2answers
9k views

Defining which layer (overlay) is displayed on Leaflet map?

I have 7 layers overlay on a base map, i need to define which layer is selected (active,displayed,shown) on the map. var overlays = { "AL HOUDA Espaces_Verts": alhouda6_layer, "...
1
vote
0answers
155 views

Obtain the number of features in a Shapefile using NodeJS

I'm using the shapefile NPM library which works well, but it doesn't provide a count of the number of features in a Shapefile. Is there some other library which can access this information (other than ...
1
vote
1answer
208 views

Python Scripting in QGIS: attribute index out of bounds [0;0]

I am currently writing an Python Script within QGIS to connect points of two specific point layers: Attributes of point layer 1: Attributes of point layer 2: For each point in point-layer1, the ...
4
votes
2answers
1k views

Is there an easy way to make feature properties case insensitive?

I have a system where a user can upload a SHP through a web form. I upload this SHP and import it to GeoServer via REST API. Later the user can interact with the data using a web client with ...
4
votes
1answer
864 views

Adding image in Feature Attributes Form in QGIS?

I am looking for a way to show icon or image in QGIS Feature Attribute Form. I'm showing Equipment in Rack and if it is for example: 1. switch = show some icon 2. router = show different icon etc ...
0
votes
1answer
127 views

Edited features only store edits upon map refresh

I am setting editing toolbars for features on my map as follows: for (var graphicNum = 0; graphicNum < graphicList.length; graphicNum++) { if (graphicList[graphicNum].symbol != undefined) ...
3
votes
1answer
2k views

OpenLayers 4 Modify - There is an option to show the feature vertexes as point always?(not hover)

Using the modify interaction - the default behaviour is to show existing vertex as point when hover it. (When the mouse is hovered over the left bottom vertex - the vertex is shown) Is there an ...
0
votes
1answer
116 views

Deactivating editing toolbar for multiple features

I am creating a toolbar for a number of features as follows: for (var graphicNum = 0; graphicNum < graphicList.length; graphicNum++) { if (graphicList[graphicNum].symbol != undefined) { ...
0
votes
0answers
211 views

Zooming to particular feature among selected features by feature id in PyQGIS?

Using QGIS 2.6 and PyQGIS, I want to zoom to features one by one on click among selected features list and change the colour on zoom without unselecting the other features. canvas=iface.mapCanvas() ...
2
votes
1answer
448 views

Using QGIS query builder

I have only basic knowledge of using SQL code in QGIS. I am trying to use Query Builder to hide some specific line features. I have tried using =! and the id field reference for the particular ...
3
votes
2answers
1k views

PyQGIS - Adding Fields to a Feature Layer

I'm new to PyQGIS and am having difficulty adding fields to a feature. I want to plot footprints and assign attributes to each of the footprints. Here is my script. import csv, ast from PyQt4....
-1
votes
2answers
308 views

Using Grass to slightly smooth a polygon [duplicate]

I have a geojson file with a lot of features. Many of them look like that: What I'd like to get is a shape that very much resembles this one but is smoothed a little bit. Ideally, it would look ...
0
votes
0answers
197 views

Comparing feature values between spatial points (same locations and variables - different surveys)

How can one (statistically) compare the feature values of one set of points against the feature values of a different set of points (within the same spatial extent)? I am aware of methods of ...
3
votes
2answers
1k views

Hide 'geometry' object on WFS GetFeature request for multiple TypeNames

I'm trying to fetch features for a WFS - but I'm not interested in the Geometry object. I would like to exclude it from the results... Is there any way to do so? I managed to define the TYPENAME ...
4
votes
2answers
6k views

Saving/exporting selected features in QGIS

I would like to save my attributes selection as a layer. I have read on other posts to do it by selecting the layer with the attribute selection, then right clicking on it and choosing "save ...
0
votes
0answers
155 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....
2
votes
3answers
9k 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
16k 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
49 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
664 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
65 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 ...
5
votes
0answers
441 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
2k 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
258 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. ...
3
votes
1answer
2k 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
1k 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
59 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
276 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
637 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!
2
votes
0answers
1k views

Select by expression only for selected features using PyQGIS [duplicate]

I'm facing a nested problem using PyQGIS (for QGIS master, but it can be replicated in any version of QGIS 2). I have a vector layer with some selected features and with a QgsFeatureRequest I can ...
1
vote
0answers
168 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
171 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
101 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
34 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
3 4
5
6 7
15