[
https://issues.apache.org/jira/browse/TIKA-2770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16687132#comment-16687132
]
ASF GitHub Bot commented on TIKA-2770:
--------------------------------------
lewismc commented on issue #257: fix for TIKA-2770 contributed by kristencheung
URL: https://github.com/apache/tika/pull/257#issuecomment-438820138
I am +1 for merging this PR into master. I've executed the following tests...
With a .hdr file containing ```map info``` encoded as UTM
```
curl -T ang20150420t182050_corr_v1e_img.hdr http://localhost:9998/meta
--header "Content-Type: application/envi.hdr"
"envi.byte.order","0"
"X-Parsed-By","org.apache.tika.parser.DefaultParser","org.apache.tika.parser.envi.EnviHeaderParser"
"envi.map.info","{ UTM , 1.000 , 1.000 , 724522.127 , 4074620.759 ,
1.1000000000e+00 , 1.1000000000e+00 , 12 , North , WGS-84 , units=Meters ,
rotation=75.00000000 }"
"envi.description","{ Georeferenced Image built from input GLT. [Wed Jun 10
04:37:54 2015] [Wed Jun 10 04:48:52 2015]}description = { Georeferenced Image
built from input GLT. [Wed Jun 10 04:37:54 2015] [Wed Jun 10 04:48:52 2015]}"
"envi.sensor.type","Unknown"
"envi.bands","432"
"envi.header.offset","0"
"language","en"
"envi.interleave","bil"
"envi.wavelength.units","Nanometers"
"envi.lines","14674"
"envi.file.type","ENVI Standard"
"envi.samples","739"
"envi.lat/lon","36.79077627261556, -108.48370867914815"
"Content-Encoding","ISO-8859-1"
"envi.data.type","4"
"Content-Type","application/envi.hdr"
```
And then with a .hdr file with non-UTM ```map info```
...
```
lmcgibbn@LMC-056430
/usr/local/tika/tika-parsers/src/test/resources/test-documents(TIKA-2270) $
curl -T envi_test_header.hdr http://localhost:9998/meta --header "Content-Type:
application/envi.hdr"
"envi.byte.order","0"
"X-Parsed-By","org.apache.tika.parser.DefaultParser","org.apache.tika.parser.envi.EnviHeaderParser"
"envi.map.info","{Sinusoidal, 1.5000, 1.5000, -10007091.3643, 5559289.2856,
4.6331271653e+02, 4.6331271653e+02, , units=Meters}"
"envi.sensor.type","Unknown"
"envi.bands","7"
"envi.header.offset","0"
"envi.projection.info","{16, 6371007.2, 0.000000, 0.0, 0.0, Sinusoidal,
units=Meters}"
"language","en"
"envi.interleave","bip"
"envi.wavelength.units","Unknown"
"envi.lines","2400"
"envi.file.type","ENVI Standard"
"envi.samples","2400"
"Content-Encoding","ISO-8859-1"
"envi.data.type","2"
"Content-Type","application/envi.hdr"
```
Excellent work @kristencheung
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Convert EnviHeader "map info" from UTM to LatLon
> ------------------------------------------------
>
> Key: TIKA-2770
> URL: https://issues.apache.org/jira/browse/TIKA-2770
> Project: Tika
> Issue Type: Improvement
> Components: parser
> Affects Versions: 2.0.0
> Reporter: Kristen Cheung
> Assignee: Lewis John McGibbney
> Priority: Major
> Fix For: 1.20
>
>
> Would like to create the conversion logic for coordinates from Universal
> Transverse Mercator (UTM) to Geographic (Lat/Lon) Coordinate System in Apache
> Tika Extraction logic, found in
> tika/tika-parsers/src/main/java/org/apache/tika/parser/envi/EnviHeaderParser.java
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)