Skip to content

Conversation

jampukka
Copy link
Member

@jampukka jampukka commented Oct 6, 2025

MyPlaceMapper#findAllByBBOX got broken in #1194

@ZakarFin
Copy link
Member

ZakarFin commented Oct 6, 2025

This makes userlayer and myplaces behave the same way and fixes an error:

### Error querying database.  Cause: org.postgresql.util.PSQLException: ERROR: ST_Intersects: Operation on mixed SRID geometries (Polygon, 0) != (MultiPolygon, 3857)
### The error may exist in fi/nls/oskari/myplaces/MyPlaceMapper.java (best guess)
### The error may involve fi.nls.oskari.myplaces.MyPlaceMapper.findAllByBBOX-Inline
### The error occurred while setting parameters
### SQL: SELECT  id,  uuid,  category_id,  name,  attention_text,  created,  updated,  place_desc,  link,  image_url,  ST_ASTEXT(geometry) as wkt,  ST_SRID(geometry) as srid  FROM my_places  WHERE  category_id = ?  AND  ST_INTERSECTS(   ST_MAKEENVELOPE(?, ?, ?, ?),        geometry)
### Cause: org.postgresql.util.PSQLException: ERROR: ST_Intersects: Operation on mixed SRID geometries (Polygon, 0) != (MultiPolygon, 3857)

@ZakarFin ZakarFin added this to the 3.2.0 milestone Oct 6, 2025
@ZakarFin ZakarFin merged commit bb5bf03 into oskariorg:develop Oct 6, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants