[
https://issues.apache.org/jira/browse/TIKA-2770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16678748#comment-16678748
]
ASF GitHub Bot commented on TIKA-2770:
--------------------------------------
lewismc commented on a change in pull request #257: fix for TIKA-2770
contributed by kristencheung
URL: https://github.com/apache/tika/pull/257#discussion_r231666720
##########
File path:
tika-parsers/src/main/java/org/apache/tika/parser/envi/EnviHeaderParser.java
##########
@@ -116,17 +116,86 @@ private void readLines(AutoDetectReader reader, Metadata
metadata) throws IOExce
* Write a line to the XHTMLContentHandler and populate the key, value
into the Metadata
*/
private void writeParagraphAndSetMetadata(String line, Metadata metadata)
throws SAXException {
- if(line.length() < 150) {
+ if(line.length() < 300) {
String[] keyValue = line.split("=");
Review comment:
@kristencheung please replace this line
```
String[] keyValue = line.split("=");
```
with this
```
String[] keyValue = line.split("=", 2);
```
This way we do not drop the latter part of the following line entry
```
map info = {Sinusoidal, 1.5000, 1.5000, -10007091.3643, 5559289.2856,
4.6331271653e+02, 4.6331271653e+02, , units=Meters}
```
Thanks
----------------------------------------------------------------
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)