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
2answers
182 views

Storing Multiple Features of FeatureCollection in PostGIS geography field

I am working on GO Echo project and we connect to a PostgreSQL database running PostGIS. I am getting the following json into my rest api { "type":"FeatureCollection", &...
2
votes
1answer
356 views

Openlayers - Unable to set the style of features

I have tried to change the default style of my features, but nothing works. I have a database with the features of my user. These features I add manually to a Vectorlayer. But when i try to edit the ...
1
vote
1answer
30 views

Create buffer around one category of polylines in feature

I have a feature that contains polylines of fluvial and tidal streams in ArcMap. I want to create a buffer around the tidal streams only. I tried selecting only the tidal streams using the ...
1
vote
0answers
666 views

Add feature ID to feature collection Google Earth Engine

I have some code, from the help of this post that calculates monthly averages per year for a region of interest and exports it to a csv. var UK_SST = ee.ImageCollection('NOAA/CDR/SST_WHOI/V2').select(...
0
votes
0answers
40 views

Only one icon gets loaded on Google Chrome whereas all the icons get loaded on Safari

I am using OpenLayers to display a map on my browser. I am getting data from a JSON file and using it to add icons on my map. The code works well on Safari (all icons get loaded) but when I try to use ...
2
votes
1answer
160 views

How do you merge multiple polyline features into one contiguous feature in QGIS?

I created a shapefile from public GIS data, that I wanted to display in Google Maps for presentation purposes. The original .shp used small line segments for roads. Maybe a picture will make sense: ...
3
votes
1answer
83 views

get all properties of a feature

I want to get the properties of a feature. How can I do that? In the example below we can get one of the properties out like so feature.get('species'). How can we get all of them at once? This is a ...
0
votes
1answer
106 views

How to merge selected features with different attributes in QGIS?

I want to merge several features with attribute values that fall within a certain range. I use Select by Expression to select the relevant features, but when I click merge selected features, QGIS ...
4
votes
3answers
184 views

Copy feature between layers with PyQGIS [duplicate]

I am new in PyQGIS and am having trouble programming how to copy features between layers. Goal: from a robust layer (with more fields) copy its features to a 'simple' version layer. from qgis.core ...
4
votes
0answers
145 views

Applying graduated symbol renderer only on some features using PyQGIS

I have set up a graduate symbol renderer (QGIS cookbook - Graduated Symbol Renderer), and I am now trying to make it conditionally applied to some features only, depending on one (or more) attributes. ...
0
votes
0answers
75 views

QGIS reshape tool and enable tracing (snap) tool

I know how to increase or change the size of a polygon with the reshape tool, but can you also use Enable Tracing tool with it, as you can with drawing a new feature?
0
votes
0answers
36 views

Using Add XY Tool

I am trying to add the Lat / Long to my attribute table for a number of points. The issue I am encountering is that the layer I wish to work with is not appearing in the drop down menu when using ...
2
votes
1answer
249 views

Batch process for merging features in multiple layers

I have multiple (50) layers representing rivers and creeks which are polylines. However, they are broken into line segments so each river/creek layer might have 30 or so features within it. I know ...
0
votes
1answer
456 views

OpenLayers 5 forEachFeatureIntersectingExtent Method Not Correctly Selecting Features in Circle or Polygon?

Using OpenLayers 5.3.3 Draw a circle Get the extent of the circle in the drawend event: const extent = event.feature.getGeometry().getExtent(); The try to determine the features in the extent using ...
2
votes
2answers
1k views

Python GeoJSON - TypeError: string indices must be integers

I am trying to iterate JSON objects and append selected features to new GeoJSON using geojson Python library. When hardcoded the script works fine. But when append method is used in a for loop I get ...
1
vote
2answers
378 views

Change the color of a feature with PyQGIS?

I want to iterate through a field and based on the attributes, assign a color to the feature. I can find how to change colors of a layer, but not for a single feature. Code below. from PyQt5.QtGui ...
1
vote
1answer
432 views

Export image collection to pixel value across bands

I am trying to export an image collection to a 2D table where : axis 0 are pixels over the collection axis 1 are bands from the image collection I would loose spatial information, as pixels would ...
0
votes
2answers
364 views

How to Identify/Select features from WMS?

I'm trying to extract some features from the following WMS: http://servicios.idee.es/wms-inspire/hidrografia Namely, one layer called "Red hidrografica", which contains the traces of rivers and ...
0
votes
1answer
76 views

Date of reference in an feature collection

I am pretty new on GEE and idk how easy is this task. I want to find daily precipitation for all Brazilian municipalities in 2006. I applied a map function with reduce regions and end up with a ...
2
votes
1answer
202 views

Choosing point from polygon (featurecollection) in Google Earth Engine

I want to get points from the polygon. If I just use function (randomPoints), each polygon does not have the same numbers (50) of points so I want to find the point from each polygon, but my code is ...
1
vote
1answer
112 views

Ordering FeatureGroups

I'm using Leaflet right now and I have issues on ordering a list of FeatureGroups. Each feature group is either an imageOverlay or a list of Features I tried using bringToFront / bringToBack and it's ...
1
vote
2answers
166 views

Leaflet filtering GeoJSON properties greater than and less than some value not working

I would like to raise the query, that I haven't seen before in spite of a lot of problems regarding to GeoJSON features filtering by properties. This is using the formulas such as Greater than, lower ...
1
vote
1answer
102 views

Advance text style of feature in openlayers

Is there any way to create table or any html element in text style for features? i tried other ways like putting overlay on feature then in overlay i used table and html elements but had some problems ...
1
vote
0answers
17 views

Copying Features from multiple sources

I'm new to Python and trying to automate copying specified features from a bunch of nested geodatabases into a new geodatabase- script seems to work ok, except for the copying features part (the 2 ...
1
vote
1answer
55 views

Features disappear from layer

I have a problem with my newly created layers. I have drawn a lot of features and most of them disappeared during the weekend while the pc was turned off. They are not visible in the drawing, in the ...
1
vote
1answer
90 views

Defining polygon's area from OpenStreetMap

In OpenStreetMap, I have a multipolygon OSM feature with its relation ID 6040040 (example). How do I calculate the area of a such features using QGIS?
2
votes
1answer
570 views

Some features listed in attribute table not visible on map in QGIS

My vector layer is a track file with points every 2-3 seconds. When added they all appear in the attribute table but not on the map view. There doesn't seem to be a pattern or any attribute that ...
0
votes
1answer
129 views

OpenLayers 5.3 selected point feature does not return properties, but polygon does

I am having some issues in OpenLayers 5.3.0. The context is that I'm using Sharepoint lists as a backend to save feature data and OpenLayers is running in a Vue.js container. Everything works as ...
1
vote
1answer
211 views

Add GeoJSON features from an API call in OpenLayers 4, layer not displayed

I'm trying to create a little demo to show the data from our API into a map but I cannot see my layer Here my code, is just basic for the moment, we just need to display the data: const projection = ...
4
votes
3answers
1k views

QGIS feature form : Force attribute to save as uppercase

For example I have feature form with colum name NAME (with names of contries). I want that all counties names are in capital letters. As users enter the names in lowercase, uppercase, mixed ... I ...
0
votes
0answers
43 views

Convex Hull not outputting expected number of features

I have a .csv file with observations of various species and I want a polygon to illustrate the area where those species occur. I ran the Convex Hull, grouped by the species' names field, which ...
1
vote
0answers
39 views

Splitting large amount of features using arcpy

We are publishing a geoprocessing service that will split a large amount of features in a file geodatabase. The script uses the arcpy.defense.SplitFeatures() method, a ResourceSrf layer or a user ...
0
votes
1answer
245 views

Calculate feature extent OpenLayers?

I have a feature created from Well Known Text as following: var feature = format.readFeature(wkt , { dataProjection: 'EPSG:25830', featureProjection: 'EPSG:25830' }); When I add it to a ...
1
vote
1answer
321 views

Setting OpenLayers line labels by angle?

I want to write labels near linestring features on my map. I calculated but it works wrong. My layer style function is like following: layerFeatures = new ol.layer.Vector({ source: ...
4
votes
2answers
630 views

Copying and pasting features using PyQGIS

I have created a table join between two shapefiles which I've named 'OSMM' and 'Mastermap'. I want to copy and paste all features (polygons) without a match from the target layer ('Mastermap') into ...
2
votes
1answer
129 views

QGIS3 - Fast jump to another feature

I am looking for a method (plugin) to choose next feature of my vector layer really fast. I need to edit a lot of polygons and fast choosing next record is really necessary (using arrow or something ...
1
vote
1answer
90 views

How do I change style/colour of a few selected features?

We have features which represent the locations of pupils within the local area and would like to change the colour of these features to represent whether they reside within the catchment area of a ...
3
votes
2answers
170 views

Split polygons by area/percentage with QGIS 3.x

Is there a function in QGIS 3.6 Noosa that allows me to split polygons with given area or percentage? There is a plugin for QGIS 2. "split polygons" that seems to have exactly what I'm looking for, ...
2
votes
1answer
469 views

Creating one table out of multiple feature collections and two properties?

I am trying to export one table out of the 18 feature collections I have created, each feature collection has the same geometry (counties of the state of California) and has the County ID (property '...
3
votes
1answer
837 views

How to change the field value of a specific feature in a Shapefile using GDAL/OGR?

I am trying to change the field value of a shapefile, but only in some specific features. However the code I have changes the value for all features in the shapefile. Is there any way of accessing the ...
1
vote
1answer
124 views

How to break bond of select and modified feature OpenLayers

I have select and modify interaction instantiated. Also I have event onChange binded to selected feature. select.getFeatures().getArray()[0].on('change',function (){ sources.verteksi.clear() ...
2
votes
2answers
223 views

Why is the order of my features changed when using readFeatures in OpenLayers v4.6.5?

I have a geojsonObject that is a featurecollection of X number of features. see picture I Then add this to a vector: var Source = new ol.source.Vector({ features: (new ol.format.GeoJSON())....
1
vote
1answer
529 views

Make FeatureCollection from Features in Google Earth Engine

I try to add a list of Features into a FeatureCollection with ee.FeatureCollection but it raises the following Error: * "FeatureCollection (Error) Collection, argument 'features': Invalid type. ...
1
vote
1answer
339 views

Store geometry change on modify interaction OpenLayers

I am using OpenLayers modify interaction with events modifystart and modifyend. I am trying to remember state of feature before it is modified. I do it this way: var modificirane_cestice=new Object()...
4
votes
2answers
2k views

Selecting features from multiple layers for export QGIS 3.6

I have multiple features I want to select over multiple layers and then export these selected features to a new layer. The 'Multiple Layer Selection' plugin is not supported by the QGIS 3.6 so that ...
0
votes
1answer
80 views

Centering Feature before exporting map to PDF?

I am trying to export single point file maps to PDF. My maps are exporting fine, but I'm having trouble centering the point file in the middle of the map, it's always outside of the data frame. Any ...
1
vote
1answer
106 views

Creating 1 hectare rectangle polygon surrounding points and dividing it into equal sized sub-quadrats in ArcGIS Desktop?

I have a set of points like this: ] I have only these points' information. Now I want to draw a boundary of this points whose size should be 1 hectare (100m x 100m). After that, I want to subdivide ...
2
votes
1answer
92 views

Adding featureSet into a featureLayer (dynamic renderer)

I'm trying to use a renderer and a legend on data from a featureSet, it displayes symbols and popups but the renderer fails. The data comes from a featureLayer but I display it with view.graphics so ...
2
votes
0answers
46 views

Slow retrieval of features

I have a vector layer with lots of features and I'd like to create a new layer in Python, containing only a subset of those features. To be more specific, I downloaded OpenStreetMaps data of Austria (...
7
votes
4answers
1k views

Displaying multipoint features as polygon using QGIS

Is there an easy way to show/connect a group of points on a multipoint shapefile layer as if they were a polygon? I'm collecting points for a plant study, and some of the points are gathered as a ...

1 2
3
4 5
15