Skip to main content

Questions tagged [sorting]

To arrange according to class, kind, or size; classify.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

GEE Featurecollection sorting problem

I have problem with the order of featurecollection. I found the order of featurecollection changed when uploading csv or exporting featurecollection to Assets, even if an ee.FeatureCollection.Sort ...
李思佳's user avatar
0 votes
1 answer
47 views

GeoServer SLD style : ordering draw from custom attribute

I want to control the order in which the features are being loaded and drawn on the map with the GeoServer vendor parameter sortBy. I created a layer from an external WFS i'm not owner. So i'can't ...
jlSta's user avatar
  • 1,096
4 votes
1 answer
100 views

Sorting Classification by another field

I am currently using the QGIS software. I use rule-based classification to extract the monetary values from a field and display them as symbols. For map legend purposes I need to concatenate the ...
Ernst's user avatar
  • 41
0 votes
0 answers
34 views

Sorting legend items across multiple layers alphabetically

Is it posisble in QGIS layout manager to sort all legend items from multiple layers/groups alphabetically after i have hidden the groups? So from layer 1 I have item A and item D, from layer 2 i have ...
John's user avatar
  • 1
2 votes
1 answer
88 views

Aggregating points into polylines, sorted by timestamp using GeoPandas/Python

I have a geodataframe that contains positions (point geometries). For each position, we know the individual's id (id_individ), DOY (doy), year (année) and timestamp. I want to aggregate the ...
fab's user avatar
  • 48
0 votes
1 answer
64 views

How do I create a Geodataframe which the data is grouped by User ID & the timestamp is sorted from oldest to most recent?

I've been struggling to complete this exercise (Exercise 2 Problem 3) which you guys can refer to this link. A reminder that the kruger_points.shp is obtained from Exercise 2 Problem 2. Here's the ...
mfirdaus_96's user avatar
5 votes
2 answers
362 views

Saving and applying layout of columns in QGIS Attribute Table

I have multiple projects with similar layers. Here is an example, with all attributes (fields) visible in default order. I do use this layout for certain tasks. But for other tasks, I wish to hide ...
Oisin's user avatar
  • 1,836
1 vote
1 answer
209 views

How to change vertex order to a polyline in QGIS?

I'm trying to change the vertex order of a polyline in QGIS. I have an existing polyline that's closed (last vertex = first vertex). The starting point of this polyline is in a totally casual position....
niubii's user avatar
  • 13
0 votes
1 answer
30 views

Band calculations and sorting within a specified geometry

I am working on a small geographic area (< 50 km sq.) and am trying to find the 5-10 least cloudy Landsat images for my specified area. The issue I have is that if I simply use: imageCollection....
user225452's user avatar
2 votes
1 answer
364 views

GEE: How to sort ImageCollection correctly by system:index

I am very new to GEE and I have the following Problem: I have to create NDVI time series (with MODIS Vegetation indices) and compare the monthly mean value between 2001 and 2021 with the monthly mean ...
Cubozoa13's user avatar
0 votes
1 answer
335 views

How to order attributes by suffix in FME?

I have a table with attributes containing a suffix of the form _DIGIT. FME displays the table like this: country name_0 name_1 name_2 platforms_0 platforms_1 platforms_2 The Netherlands Utrecht ...
saQuist's user avatar
  • 826
5 votes
3 answers
773 views

Permanently sorting table so that field of interest is sorted in the same order as the fid in QGIS

Using 3.22.13, consider a non-spatial GeoPackage attribute table containing one text field, named "field_a". This table has the following form: fid field_a 1  B 2  A 3  X 4  C How can I sort ...
Stu Smith's user avatar
  • 8,192
2 votes
1 answer
540 views

Sorting rows based on calculated values on PostgreSQL's ST_DWithin

I have a question on how to improve sorting performance on PostgreSQL on geospatial data. I want to sort restaurants based on their distance and price, but it's noticeably slower than my study on ...
Yukha Dharmeswara's user avatar
1 vote
2 answers
488 views

Get a specific number of images from a sorted image collection in Google Earth Engine

I want to export the first 10 images of a Landsat image collection sorted based on the "CLOUD_COVER_LAND" property. I know how to extract the least cloudy image of the sorted collection by ...
diego bárb's user avatar
1 vote
1 answer
318 views

Sort SHP features by feature ID in QGIS

I have a shapefile which does not have any ID column. I put them in a validator, which indicates the ID of faulty features, based on the DBF line order. But by opening the shapefile attribute table in ...
Arkeen's user avatar
  • 363
4 votes
1 answer
3k views

Sort by custom expression in QGIS

I would like to sort child records in form view of attributes in QGIS to be sorted by an integer field but in the same time show a different expression in from list. When setup it's working fine - ...
Albine Pro's user avatar
8 votes
1 answer
399 views

Sorting values in Unique Values widget in QGIS

In QGIS 3.24.3 I have a GeoPackage table containing a text field "box_id". Within its Layer Properties > Attributes Form page I have assigned it a Unique Values widget type as shown here: ...
Stu Smith's user avatar
  • 8,192
4 votes
0 answers
213 views

Sorting points to create polygon in PyQGIS

I have list of points and I want to create a polygon. First I need to sort points for that I tried: Find the center point of all points Calculated angle from the center to each point, Based on angle ...
Velugoti Venkateswarlu's user avatar
4 votes
1 answer
248 views

QGIS 3.22 sorting by attributes does not work in gpkg-files

Since I updated from QGIS 3.16 to 3.22 I have the following problem in attribute tables: in gpkg files the sorting option (alphabetical) does not work - sometimes! I tried it with projects in qgz- or ...
Bertram's user avatar
  • 483
6 votes
1 answer
689 views

Sorting drop down lists in value relation widget in QGIS

I have some attributes in my data and want to enable the user to pick values from drop-down lists. The values of the drop-down list change depending on the chosen value of the previous field(s). The ...
Nil's user avatar
  • 1,574
2 votes
1 answer
238 views

GEE Image Collection to Multiband Image Outputs Gibberish

I'm using Landsat imagery in Google Earth Engine and am attempting to convert an image collection to a multiband image. However, before doing so I do two things: I mosaic the images by date so that ...
user5858's user avatar
  • 405
3 votes
1 answer
754 views

Automatically sort table data by specified column when opening attribute table in QGIS

I want the attribute table in QGIS to be automatically sorted by the column I want, so that I don't have to click on the right column every time. At the moment, when I open the attribute table, the ...
Comrade Che's user avatar
  • 7,261
7 votes
1 answer
389 views

Sorting layer order in QGIS based on mixed string/numerical layer names

In QGIS, is there a way to automatically order the layers in the Layers Panel? I'm looking to sort 50 layers, output of a Split vector layer operation (see here) in a predefined order that is not ...
Babel's user avatar
  • 73.1k
8 votes
4 answers
607 views

Sorting/ordering selected features by attribute in QgsVectorLayer using PyQGIS

In a standalone application, I have a layer to which I select some features. Then I need to do an iteration, and I need it to be done in the order of the value of a field/attribute (In my example ...
RBenet's user avatar
  • 780
1 vote
1 answer
192 views

GeoServer WFS - Casting a property to Integer for sorting

I have a WFS query string that ends with: &SORTBY=am_subtype%20DESC This works but am_subtype is a string, so it does not sort the way I'd like it to. Can I cast am_subtype to an Integer somehow ...
user2065855's user avatar
2 votes
2 answers
769 views

Sorting field values within column in table using ArcPy

I have a feature class table named fcwells. It has a bunch of different columns but the column I need sorted is 0Meters. Many fields under 0Meters have multiple values separated by commas and it is ...
Brett Holte's user avatar
-1 votes
1 answer
211 views

Creating table from lists in sorted manner in Google Earth Engine

I have calculated the area coverage of landcover types in a region and sort them now I want to export the results as a table to drive in a sorted manner when I combine them in a new dictionary object ...
Solmaz's user avatar
  • 149
0 votes
2 answers
236 views

sort dictionary datasets based on values in ascending order

i want to sort my dataset and use an example dataset to chack the code. that works and here is the code: var b=ee.List([4.5,2.8,7.4]) var c= ee.List(['a','b','c']) print('b',b) var dict=ee.Dictionary....
Solmaz's user avatar
  • 149
1 vote
0 answers
63 views

How does the expression look like to sort route segments of multiple routes using start and end coordinates of segments in qgis?

I do have a line layer containing multiple route segments. Having a route_id (string type; for example A101-1, B207, ...) as attribute for each segments tells me to which route the segment belongs. ...
mymymy's user avatar
  • 175
1 vote
1 answer
3k views

Sorting dictionary values and getting sorted keys in new dictionary using Google Earth Engine

How can I sort a dictionary's keys in Earth Engine based on their values? For example, I have such a dictionary defined in Earth Engine after some calculations and I want to sort that based on ...
Solmaz's user avatar
  • 149
3 votes
2 answers
3k views

Is there a way to "sort" points in a MultiLineString such that they seem more like a continuous LineString?

Is there a way to "sort" the points of a MultiLineString such that they follow a more sequential order? Let me illustrate what I mean with a graphical example: Input Suppose I have the ...
Felipe D.'s user avatar
  • 2,689
3 votes
1 answer
475 views

Getting fieldnames with QGIS expressions in same order as in attribute table (not alphabetical order)

Context I want to get a list of field names of a layer using QGIS expressions. The function attributes() returns a key:value map of the attribute names and values. By default, the result is sorted ...
Babel's user avatar
  • 73.1k
1 vote
2 answers
141 views

GeoServer 2.20 - view only list of layers in a specified store

Is there any way to view only the layers from a specific store in GeoServer (v 2.20)? I can't find anything online and I don't see any way to do this in the interface. The layer list shows everything ...
JasonBK's user avatar
  • 610
4 votes
1 answer
447 views

Grouping and sorting field values by group in QGIS

I need to sort groups of "Field A" by "Field B" and write the Sort Order to "Field C". All entities of "X" value in "Field A" are ordered amongst ...
MrKingsley's user avatar
  • 1,443
1 vote
1 answer
348 views

FME - how to sort data in verses

I have many elements in my layer. In the table, I have measure - distance and curvature. These two data in columns are connected with each other. For example (first verse): 0 - 35; 4420 - 35; 4157 - ...
adien's user avatar
  • 13
1 vote
0 answers
476 views

Sorting columns in attribute tables in ArcGIS Pro 2.8

I have an attribute table whose columns I want to keep in chronological order, but when I try to drag and sort them, they return to their original order. Is there a way to make them keep the order I ...
Beck's user avatar
  • 301
1 vote
1 answer
211 views

Sorting by multiple fields SearchCursor ArcGIS 10.6

I want to define the values of first row in a sorted table with search cursor. My code is working without sorting, but I don't know how can I integrate into sorting. I would like to see only the ...
GisT's user avatar
  • 91
2 votes
1 answer
729 views

Sort column by values in ui.Chart.feature.byProperty in Google Earth Engine

I am creating a bar chart of band importance of a random forest classifier in GEE. The default bar order seems to be by name. How can I sort the columns in descending order depending on each column ...
OscarBau's user avatar
  • 710
10 votes
2 answers
974 views

Numbering adjacent points/centroids in sequential order using QGIS

I am using QGIS 3.18. I have, for example, this layer with points or centroids (with x, y coordinates) I want to enumerate the points from right to left (for example) and top to bottom like this: I ...
wollyka's user avatar
  • 457
0 votes
0 answers
73 views

Deleting the old layer set automatically - after sorting layers of one specific group within the table of contents alphabetically

I'd like to reorder the layers within ONE specific group of the TOC alphabetically by layer name, but without reordering the top level layers or the layers of other groups. @GérmanCarillo helped me to ...
jaysigg's user avatar
  • 507
8 votes
2 answers
1k views

Sorting layers by name in one specific group of QGIS layer tree

I'd like to reorder the layers within ONE specific group of the TOC alphabetically by layer name, but without reordering the top level layers or the layers of other groups. I found the following ...
jaysigg's user avatar
  • 507
10 votes
2 answers
924 views

Sorting records by attribute in shapefile using PyShp

I know how to get records in a shapefile using PyShp, but how to sort records by an attribute (i.e., "NAME" or "POPULATION")? My code: import shapefile file = "c:/data/cities....
user183925's user avatar
2 votes
0 answers
172 views

Selecting, sorting, and grouping spatial data (lines) by length and proximity

I'm working on a project where I have a bunch of lines inside of polygonal land parcels. Here's a rough sketch of what I'm talking about: I need to further subdivide these parcels into sections that ...
Adam Malenczak's user avatar
1 vote
1 answer
216 views

How to make a linked-list in Google Earth Engine?

Now, after Noel Gorelick's very helpfull code, i have a sorted list with two-segment: var list = ee.List([ [101, 103], [102, 103], [103, 109], [109, 122], [117, 156], [122, 133], [133, ...
Mehmet C ARSLANOGLU's user avatar
1 vote
1 answer
384 views

How put order in multiple raster file in RasterMosaic in FME? [closed]

I have couple of raster files which I want to mosaic in a specific order. How I can do that?
Firoza Akter's user avatar
1 vote
1 answer
576 views

Sort attribute table in an atlas layout with PyQGIS 3

I wrote a script that automate the production of an atlas layout with PyQGIS 3 that works well but it remains a detail I can't figure out. Each page of my atlas contains a map zoomed on a particular ...
Juliette Lapeyre's user avatar
0 votes
1 answer
2k views

Using arcpy.da.SearchCursor to sort field in attribute table by ascending order

I am using ArcMap 10.6 with Python 2.7.14 with ArcPy. I want to sort a field named Seq_ID in my attribute table by ascending order using ArcPy. I believe I have to use arcpy.da.SearchCursor. Here is ...
user avatar
0 votes
1 answer
515 views

Sorting GeoJSON features array by property value [closed]

I am looking to sort a GeoJSON file on a property so I can then slice it keeping only the top 5 features. For example, I wish to take this GeoJSON and sort the file in descending order by the ...
LoF10's user avatar
  • 103
0 votes
2 answers
476 views

Sort Custom Tileset Features in MapBox Studio or GL

I have a large number (hundreds of thousands) of point features uploaded to my account in MapBox studio as a dataset, and have generated a tileset based on that dataset. This tileset is used in a ...
Ty Hayes's user avatar
  • 101
1 vote
1 answer
410 views

Is there a way to sort the QGIS attribute table by date modified?

I was wondering if there was a way to sort the attribute table in QGIS Pi by date modified. I have been digitizing a large area and I need to delete the last 50-100 features that were digitized. My ...
AndrewRobert's user avatar