-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Support gml:LineString format with list of gml:pos elements #7135
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
Support gml:LineString format with list of gml:pos elements #7135
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #7135 +/- ##
=============================================
+ Coverage 72.05% 72.09% +0.03%
- Complexity 20679 20695 +16
=============================================
Files 2242 2244 +2
Lines 83801 83913 +112
Branches 8348 8350 +2
=============================================
+ Hits 60385 60495 +110
+ Misses 20488 20487 -1
- Partials 2928 2931 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Related: #5697 You might be able to use the test. |
| if (o instanceof DirectPositionType directPosition) { | ||
| var values = directPosition.getValue(); | ||
| if (values == null || values.size() != 2) { | ||
| System.out.println("bad lineString element value " + values); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you get rid of the System.out.println?
| } | ||
| list.addAll(values); | ||
| } else { | ||
| System.out.println("unhandled lineString element type " + o.getClass().getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace this with slf4j or remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's build-time, so I changed it to issueStore.add instead
Summary
VR has NeTEx data where a ServiceLink is expressed as
This adds support for it.
GML documentation extract for LineString:
We only supported 2, but this PR adds 1 as well.
Unit tests
Yes.
Documentation
Rationale given in this comment.
Changelog
Yes.
Bumping the serialization version id
No.