-
Notifications
You must be signed in to change notification settings - Fork 364
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
CRS.fromWKT
doesn't handle WKT with no EPSG record.
#2871
Comments
I also think it would be beneficial for |
I'm under the impression from the way the issue here is written that you'd expect the WKT string you provided to be successfully parsed by the As far as I can tell, with existing code, we're only able to parse WKT strings that we can retrieve an EPSG code from or have already parsed parameters for. Unless I'm missing the correct call using some other method, this issue will require a bit more effort to resolve since this WKT string is missing an authority. |
@CloudNiner You're correct; I filed this bug before I understood that it only worked for embedded EPSG codes. However, I do think that it will also throw (or swallow?) an exception in the case where it does have an embedded EPSG code, but also has newlines. |
Sounds good. For now I'll just check for and address the newline issue if that's still a problem. |
Should this be closed then? The "convert all the things" version is probably more of a Proj4j issue anyway... |
Certainly looks like it. Will close with the merging of #3074. |
Input
This WKT is from calling
org.opengis.referencing.crs.CoordinateReferenceSystem#toWKT
on data read from a random shapefile via GeoTools.Output
Related: #2870
The text was updated successfully, but these errors were encountered: