OpenEnergyPlatform / OpenEnergyPlatform/oeplatform

Error in table views when handling geometry data "ST_Transform: Input geometry has unknown (0) SRID""

Open
#2,322 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
65
Forks
29
Avg merge
15h 25m
Merged PRs (30d)
32

Description

Description of the issue

Geometry data parsing error:

"ST_Transform: Input geometry has unknown (0) SRID"

Steps to Reproduce

Found on: https://openenergyplatform.org/database/tables/tutorial_example_table

Ideas of solution

I looked into the issue with claude and it digged up some interesting error prone geometry parsing happening on the database side. As the user can send a request that will parsed into SQL some specific use cases can lead to a malformed SRID value.

Another possible reason is that this happened after our last major infrastructure upgrade.

Context and Environment

  • Version used:
  • Operating system:
  • Environment setup and (python) version:

Workflow checklist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure at the tutorial_example_table URL and trace how the table-view request parses geometry data into SQL. Check where the SRID becomes unknown (0), then verify the table view handles geometry with a valid SRID without raising ST_Transform errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sql
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.