-
Notifications
You must be signed in to change notification settings - Fork 814
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
Temporal CRS Unit Conversion Factor Unhandled #2275
Comments
Actually, this is more a bug of the example than PROJ. The examples in the WKT standard tend to use Unicode printing open quote (“) and Unicode printing closing quote (”), but this isn't even allowed by the standard. Probably an artifact of the standard being written in a text editor that does the substitution for ASCII double-quote automatically. So the PROJ parser nominally supports ASCII double quote, and as a convenience a correct balancing of Unicode printing open quote (“) and Unicode printing closing quote (”), but in that example the AXIS name starts with ASCII double quote, which is terminated after the (ms) of TIMEUNIT. For me, this is a wont fix situation |
Note: I've raised the issue to the OGC CRS WG mailing list |
I agree, and that was certainly the intention, in both 2015 and 2019 versions. As editor of OGC 18-010r7 I will look at fixing the source Word document. I guess there could be similar problem with other characters that appear in multiple Unicode planes indistinuishable to humans reading a text document. Any easy way of checking for this in a text document? But in the comment above @Roualt said
|
With really a text (.txt) document, that is not a Word one, yes, with Unix utilities it is easy:
vs
I just mean that I don't think there is anything to change in PROJ regarding this. The issue is with the WKT provided as input, not with the software implementation |
I think Even means that PROJ current behaviour should not be modified (accept matching quotes, but report mixing of ASCII quotes with Unicode quotes as an error). Apache SIS has the same policy. Alternatively, the examples could also be copied in plain text files, one file per WKT, and committed on an OGC Github. |
For information, examples from ISO 19162:2015 are available as GeoAPI tests executable by PROJ using the JNI bindings (I did not had the time to upgrade to ISO 19162:2019 yet). I have just executed the tests. Many of them pass, the following ones may need investigation:
|
…se TIMEUNIT is at the CS level, and not inside Adresses testTemporal() and testCompoundWithTime() cases of OSGeo#2275 (comment)
|
…se TIMEUNIT is at the CS level, and not inside (#2276) Adresses testTemporal() and testCompoundWithTime() cases of #2275 (comment)
The problem with non-ASCII characters in OGC 18-010r7 is in the html document at http://docs.opengeospatial.org/is/18-010r7/18-010r7.html. The Word version at https://portal.opengeospatial.org/files/18-010r7/docx and the pdf at https://portal.opengeospatial.org/files/18-010r7 do not appear to have the problem. It appears to have been caused in the Pandoc conversion. The html document will be corrected - I don't have a timeframe. |
Hopefully the html document now fixed. I suggest that this issue could now be closed. |
Example of problem
projinfo 'TIMECRS[“GPS milliseconds”,TDATUM[“GPS time origin”,TIMEORIGIN[1980-01-01T00:00:00.0Z]],CS[TemporalCount,1],AXIS["(T)“,future,TIMEUNIT[”millisecond (ms)",0.001]]]' input string: parsing of user string failed: unhandled axis direction: 0.001
Problem description
WKT string from example 2: http://docs.opengeospatial.org/is/18-010r7/18-010r7.html#105
Expected Output
No error.
Environment Information
Installation method
The text was updated successfully, but these errors were encountered: