You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another thought on functionality that could be added to these classes (if it doesn't exist somewhere else) would be a "sanitize" or "normalize" function so that I could take any user's PROJ.4 string and get a "consistent" PROJ.4 string back with defaults fill in.
Could that be accomplished simply by parsing the proj4 string, and then converting it back out to proj4? I.e. crs = pycrs.parse.from_proj4(...); sanitized = crs.to_proj4(). In some ways, the parsing function does do some sanity checks and adds in some defaults. If it's sufficient, maybe we could just add it as an example in the docs.
Or are there some issues this method would not cover, so that a sanitizing function would provide some extra value?
The text was updated successfully, but these errors were encountered:
@djhoese wrote:
Could that be accomplished simply by parsing the proj4 string, and then converting it back out to proj4? I.e.
crs = pycrs.parse.from_proj4(...); sanitized = crs.to_proj4()
. In some ways, the parsing function does do some sanity checks and adds in some defaults. If it's sufficient, maybe we could just add it as an example in the docs.Or are there some issues this method would not cover, so that a sanitizing function would provide some extra value?
The text was updated successfully, but these errors were encountered: