-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add server side function wkt("polygon") to allow subsetting by WKT polygon #55
Comments
Rather than just add a wkt(polygon feature, it may be much better to add support for the features of the new |
That API seems to provide a good framework for single-url requests that includes WKT. The details specified in the API look very nice to me but I will be happy to get data for a given WKT regardless of the implementation. |
The need for this functionality keeps coming up in my communities. Utilities are being developed to provide this functionality client-side by combining results from several ERDDAP calls. What can I do to help move this forward? I am setting up an ERDDAP dev environment now in case I can help contribute some code. |
I'm just one guy and I'm maxed out. If you want to speed this up: |
@7yl4r, a background question: So in practice, I don't see how this works well. If for example, the region desired is a U.S. state, the polygon needed to specify it with any accuracy has 100's or 1000's of points. Are you anticipating that users will click on a map to define these points, or cut and paste the WKT for these polygons? And if the polygon is >500 points, the WKT for the polygon will probably be >5000 characters, which exceeds the default limit in Tomcat for incoming URLs. How do you plan to get around these issues to make this system useful in practice, not just in theory? Here's a possible, but limited solution: in addition to allowing WKT, ERDDAP could support predefined names for which Your thoughts? |
Hi, afaik the scenario that makes sense is retrieving coverage of the given polygon that is diagonal to the box like Adriatic sea or vessel route corridor. The user does not draw polygon manually then. |
Add new server side function like: &wkt("a string with the WKT polygon") ERDDAP could handle this by converting the polygon into lat and lon constraints, getting that data subset, then properly subsetting to the polygon, then return the results to the user. Thanks to Matthew Biddle.
The text was updated successfully, but these errors were encountered: