The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
54 views

Feature stroke is not updated

I'm changing the stroke color of my features when they are selected like follows: var select = new Select({ condition: click }); select.on('select', function (e) { e.selected.forEach(...
0
votes
1answer
43 views

Comparing each geometry of shapefile with all geometries of another shapefile using ArcPy?

I want to compare each polygon from one shapefile with all the polygons from another shapefile. When one polygon is geometrically identical to a polygon on the other shapefile, I want to copy the ...
0
votes
0answers
44 views

Split Polygon to match length of lines with QGIS

I have a large polygon shapefile with many features (green), representing waterbody outlines, and a line shapefile (brown) representing river sections. I now want to split the polygon features into ...
0
votes
1answer
175 views

Compute convex hull of points in a feature collection [closed]

I uploaded an asset (which was originally a shapefile of points) and imported it into my script as a feature collection. I would like to compute the convex hull of the points, but it seems this ...
2
votes
1answer
159 views

Why QgsFeature.geometry() returns an empty geometry in PyQGIS?

I am a new for QGIS, working in Python. I add a buildings(.shp) vector layer into QGIS, just like this: I'd like to get the geometrys of some features, then I can do analysis on the center point. ...
1
vote
1answer
57 views

Clipping a road layer by using region attributes

I've been trying to clip a road layer into several layers by using region polygons. So in detail: I've got a layer with all roads of Germany and a second layer with all states and regions of Germany. ...
1
vote
0answers
30 views

QGis Python featurerequest with lists

I want to select some features and do some actions to this selected features. Something like if attribute in field a is = abc than do something. But the selection will not fit. As written in https://...
1
vote
1answer
1k views

Add a polygon programmatically in OpenLayers 3?

I added a point like this and it works fine, but for polygon it's not working. var iconFeature = new ol.Feature({ geometry: new ol.geom.Point([8637791.36, 1456487.82]), name: '...
1
vote
3answers
2k views

Copy/Paste Layer with Attribute table to new Layer using ArcGIS Pro?

When I copy features from one layer in ArcGIS Pro to a blank layer, the polygons are transferred, but the attribute table behind those features is not transferred. To give a specific example, I ...
2
votes
0answers
64 views

Reverse geocoding geographic features

I have a growing database of routes. Each route is represented by a polyline with say 200 points on average. What I'm trying to achieve is automatic tagging of these routes with names of places and ...
0
votes
2answers
702 views

How to export a feature collection of feature collections in Google Earth Engine?

I have extracted NDVI values from Landsat 8 images to a shapefile of points 90 meters apart. I am trying to get these point files back into ArcGIS and R, but they are too big to print to the console. ...
1
vote
2answers
83 views

Select columns to keep from attribute table [closed]

I have lots of feature classes that I'm working with, but the attribute tables are really messy because I got the information from different sources. So I decided to clean them up. I made a table ...
-2
votes
2answers
42 views

Rename Features with IF/Else

I used arcpy.describe to get the shapetype of my features: desc = arcpy.Describe(Importpfad) geometryType = desc.shapeType Now i want to add this information at the end of the feature name. It also ...
0
votes
0answers
155 views

How to create sector polygon for a given point feature at a given radius (1000 Km), and direction using ArcPy code?

I want to create polygons of sector shape for many point features. Each sector has central angle of 90 degrees and radius of 1000 Km. How can I create it using ArcPy code? Here is my approach that I ...
0
votes
1answer
659 views

VectorLayer Feature setStyle makes features disappear in OpenLayers 4

After I have already displayed my map I want to highlight certain features. For starters I am trying to highlight all features like this: public highlightMapFeatures() { this.map.getLayers()....
1
vote
0answers
47 views

Splitting feature into fixed measurements

For my thesis I'm trying to split featuring in QGis into multiple new features of a fixed size (5.5 by 2 meters). I think it would be the equivalent of ArcGIS' Parcel Division tool, but unfortunately ...
1
vote
1answer
120 views

Feature merging in QGIS? [closed]

I want to merge these two features into one (N.B: One polygon shapefile, lots of features). But an error occurred. Any possible solution please? QGIS version: 2.14.20
1
vote
3answers
424 views

Creating a source and a layer from vector tile features in Openlayers

So I retrieve all my features from a vectorTile layer (PBF from Geoserver), and now I want to recreate a layer by filtering on those features and getting only those that satisfy a request. I ...
1
vote
0answers
102 views

Customizing identify form in QGIS?

Is it possible to customize the identify form in QGIS (I am using version 3) to create Balloon like windows and add a picture in addition to the features extracted from the table?
1
vote
1answer
75 views

Exporting tiled raster assets within mask feature selection?

I'm familiar with a method of exporting everything within a selected feature within Global Mapper using - Export > Export Raster/Image Format. This takes everything within that feature and exports to ...
1
vote
1answer
138 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
112 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 ...
0
votes
1answer
785 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
97 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
39 views

Drawing a feature on my map

This is my code but it doesn't show anything... var vectorSource = new ol.source.Vector({}); var map = new ol.Map({ layers: [ new ol.layer.Tile({ source: new ol.source.OSM() ...
0
votes
1answer
54 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
0answers
351 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
48 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 ...
0
votes
0answers
57 views

Is there something like a “magnet lasso” while using the line feature in ArcMap?

I am just starting to learn ArcMap and just recently used the line feature for the first time. When I traced the border between a forest and a field, I was wondering whether there is something like a "...
12
votes
3answers
343 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 ...
2
votes
1answer
477 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
51 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
509 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
121 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 ...
5
votes
3answers
3k 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
82 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 ...
4
votes
1answer
4k 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
266 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 ...
2
votes
2answers
5k 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
92 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
126 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
186 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 ...
3
votes
1answer
585 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
83 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
1k 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
92 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
141 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() ...
1
vote
1answer
290 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 ...
2
votes
2answers
546 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
154 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 ...