goat-community / goat

This is the home of Geo Open Accessibility Tool (GOAT)
GNU General Public License v3.0
87 stars 47 forks source link

GOAT-Client/Core: Catchment areas with polygon_difference=False are not displayed appropriately #3062

Open nihar1024 opened 1 week ago

nihar1024 commented 1 week ago

Image

Catchment areas with polygon_difference=False should sort the result geometries by traveltime/step before rendering to avoid larger geometries from concealing smaller geometries.

nihar1024 commented 1 week ago

@EPajares Postgres does not guarantee that rows will be returned in the same order as they were inserted, so I can order the geometries while inserting but this does not mean they will be selected in the same order. However, the row IDs will correspond to the geometry order, so can we order by id for all layers while selecting?

nihar1024 commented 1 week ago

https://github.com/goat-community/goat-core/pull/26/commits/f80a62da5b35a3901a7c8aeb00bd1f9ff75d2950

nihar1024 commented 1 week ago

https://github.com/nihar1024/goat-routing/commit/fc5f38b4d7bbdb124d67916333fbc290e99fc7b7