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

output crs always 4326? #142

Open
wendellwt opened this issue Oct 9, 2023 · 2 comments
Open

output crs always 4326? #142

wendellwt opened this issue Oct 9, 2023 · 2 comments
Labels
question Further information is requested

Comments

@wendellwt
Copy link

Question: How does one specify the output srid of the geometry response from feature server?

This issue says that "pg_featureserve CRS support is a work-in-progress", but that may be an old issue. There were more discussions here but I could not determine the result.

When using the table definition:

RETURNS TABLE ( flw_geog geometry(geometry,102004) )

Non of these attempts produce desired results:

ST_SetSRID(ST_Transform(trajectory(t.flown_path)::geometry,102004),102004) as flown_track
ST_SetSRID(ST_Transform(trajectory(t.flown_path)::geometry(geometry,4326),102004),102004) as flown_track
ST_SetSRID(ST_Transform(trajectory(t.flown_path)::geometry,102004)::geometry,102004) as flown_track

The data seems to be properly converted to 102004 (Lambert Conformal Conic), but featureserve insists on converting it to 4326.
Is there a way to stop that conversion?

@dr-jts dr-jts added the question Further information is requested label Oct 10, 2023
@dr-jts
Copy link
Collaborator

dr-jts commented Oct 10, 2023

The response CRS can be specified by using the request parameter crs=SRID.

See documentation here.

@wendellwt
Copy link
Author

Great! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants