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

Use Geoserver to download station metadata? #128

Open
rod-glover opened this issue Jun 21, 2022 · 3 comments
Open

Use Geoserver to download station metadata? #128

rod-glover opened this issue Jun 21, 2022 · 3 comments

Comments

@rod-glover
Copy link
Contributor

@jameshiebert said:

I do still lament the loss of functionality of being able to download from geoserver directly in a geospatial format that can be directly imported into a GIS (Shapefile, GPX, Google Earth

@rod-glover
Copy link
Contributor Author

rod-glover commented Jun 21, 2022

A bit of research shows that Geoserver filtering can cover the more general SDP filters (arbitrary selections of networks, variables, frequencies).

Geoserver standardly offers a hilariously verbose (of course) XML encoding of filter expressions. The PDP uses this encoding. It would not be a good choice for SDP because arbitrary sets of networks etc. would soon create a URL longer than the de facto limit of 2048 characters.

Geoserver also offers a more compact encoding called ECQL that may serve. This too may also exceed URL length limits, but less often. We already have the URL length problem for requesting data downloads, whose syntax is similarly compact.

We may have to modify the view crmp_network_geoserver (or create a similar one) that is suitable for these extended queries; in particular the coding of variables.

@jameshiebert
Copy link
Contributor

Another idea to add this functionality back in would be to directly use PostGIS from the sdpb. I think all of these formats are able to be output from PostGIS, so we could have the sdpb issue the appropriate SQL query.

@rod-glover
Copy link
Contributor Author

That definitely sounds worth looking into.

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