koopjs / winnow

Deprecated
Apache License 2.0
90 stars 18 forks source link

Allow alternative input coordinate reference systems. #185

Closed rgwozdz closed 3 years ago

rgwozdz commented 3 years ago

This PR adds functionality for winnow to geometrically filter and transform input data that uses various coordinate systems as opposed to just WGS84. Non-WGS84 input datasets are defined by:

Winnow depends on proj4 for projecting, and this library only supports a few well-known ids. A follow-on PR will use exisiting dependencies to convert well-known ids set with inputCrs to their well-known text equivalents.

rgwozdz commented 3 years ago

@haoliangyu - There is a lot of variation in option names, and a lot of these alternative option names remain so we do not introduce breaking changes. A few are there due to direct support for Geoservices API query parameters. Here is a breakdown:

Option names for input data coordinate system:

Option names for output coordinate system

Option names for the geometryFilter

At some point I think we should deprecate everything except inputCrs, outputCrs, and perhaps add a filterCrs. But that will cause breaking changes and would require changes to FeatureServer. I'd like to refactor FeatureServer before starting that kind of work.

haoliangyu commented 3 years ago

@rgwozdz Thanks for explaining the naming. I think it is good for now, but I don't see the mentioned outputCrs in this PR. Is it planned for the next one?

rgwozdz commented 3 years ago

@rgwozdz Thanks for explaining the naming. I think it is good for now, but I don't see the mentioned outputCrs in this PR. Is it planned for the next one?

Yes, thanks for pointing that out. I have a subsequent PR that is currently WIP that includes that.