Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved support for geo spatial data #18

Open
digitaldutch opened this issue Jul 31, 2023 · 1 comment
Open

Improved support for geo spatial data #18

digitaldutch opened this issue Jul 31, 2023 · 1 comment

Comments

@digitaldutch
Copy link
Owner

No description provided.

@digitaldutch digitaldutch changed the title Support for geo spatial data Improved support for geo spatial data Aug 1, 2023
@jelzo
Copy link

jelzo commented Mar 7, 2024

You will need to modify the geometrie GML to include the srsDimension attribute on every poslist node. After that, you can load the GML into pygml and transform accurately to WGS84/EPSG:4326.

Example code:

from pyproj import Transformer
from shapely.geometry import shape
from shapely.ops import transform
import pygml

transformer = Transformer.from_crs('EPSG:28992', 'EPSG:4326', always_xy=True)

transform(transformer.transform,shape(pygml.parse(obj['geometrie']).__geo_interface__)).wkt

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

No branches or pull requests

2 participants