Skip to content

Follow on tweaks to the recent TIKA-2861 fix#2938

Open
tballison wants to merge 1 commit into
mainfrom
TIKA-2861-follow-on
Open

Follow on tweaks to the recent TIKA-2861 fix#2938
tballison wants to merge 1 commit into
mainfrom
TIKA-2861-follow-on

Conversation

@tballison

Copy link
Copy Markdown
Contributor

Simplify regex Pattern. Follow up to #2935

@dschmidt dschmidt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet, thanks for the cleanup!

tikaMetadata.set(TikaCoreProperties.LONGITUDE, location.longitude);
if (location.altitude != null) {
tikaMetadata.set(TikaCoreProperties.ALTITUDE, location.altitude);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if tikaMetadata could be made aware of the ISO6709.Location type? Then 5 lines would shrink to one ... but maybe it's not a good idea for coupling reasons 🤷🏻‍♂️

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... unless it would become a generic Location class - with parseFromIso6709(), parseSomething() methods that would also parse other formats as well?

Was never a Java person, so not sure what's really idiomatic :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants