Skip to content

Comments

Convert from pixel to any geo supported by a PROJ string#2

Merged
fwrise merged 7 commits intomainfrom
feature/pixel-to-any-geo
Feb 18, 2026
Merged

Convert from pixel to any geo supported by a PROJ string#2
fwrise merged 7 commits intomainfrom
feature/pixel-to-any-geo

Conversation

@BastianHavers
Copy link
Collaborator

Overview

Adds support for converting from pixel coordinates to any coordinate system supported by PROJ strings.

Details

Uses the pyproj package to optionally convert from pixels (both for a single coordinate and for a batch of coordinates, pixel_to_geo() and its batch sibling) to any coordinate system expressible as a PROJ string (such as those used, e.g., in OpenDrive files):

georef.pixel_to_geo(px, py, proj_string="+proj=longlat +datum=WGS84 +no_defs")

If no PROJ string is passed, the old conversion using a spherical model to WGS84 is performed (latitude/longitude).
As such, this PR introduces no breaking changes and should be down-compatible.

@BastianHavers BastianHavers requested a review from fwrise February 17, 2026 19:16
@BastianHavers BastianHavers self-assigned this Feb 17, 2026
Copy link
Member

@fwrise fwrise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@fwrise fwrise merged commit 148026c into main Feb 18, 2026
3 checks passed
@fwrise fwrise deleted the feature/pixel-to-any-geo branch February 18, 2026 08:19
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