-
Notifications
You must be signed in to change notification settings - Fork 448
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
TWKB read and write implementation #854
Conversation
@jnh5y : hey! Would you agree to sign the Eclipse agreement with the mail you used in the commits of the |
That's a lot of test data! How long does it take to run? Is there any way to slim it down to focus on just code coverage? |
@murdos "yes", I'd be happy to sign the commits. That'd change the Git history. My current ECA is under [email protected]. If you update the author for commits or mention that email things may go better. FWIW, I'd be fine seeing this all merge-squashed into one commit. I think @jodygarnett would be ok with that as well. |
Oh, @murdos I answered a different question. I cannot sign the ECA with that email address since I don't work at CCRI anymore. I had that email address when I first starting contributing... |
Heheh, I agree with Martin, I think we can ditch the massive test files.:) |
i've reduced test data to only 78 lines per csv, the whole twkb tests take ~500ms to run. |
Initial work by James Hughes <[email protected]>, resumed by Jody Garnett <[email protected]>, Gabriel Roldan <[email protected]> and Aurélien Mino <[email protected]>
Do you mean something like this: https://github.com/locationtech/jts/compare/master...murdos:twkb-squashed?expand=1 ? |
Yup, that's fine. It's going to get squashed on merge anyway. |
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.
I think this is okay, see comments below.
@dr-jts do we have any project standards on class javadocs to maintain?
modules/io/common/src/main/java/org/locationtech/jts/io/twkb/BoundsExtractor.java
Show resolved
Hide resolved
* limitations under the License. | ||
* | ||
* | ||
* Original file: https://svn.apache.org/repos/asf/mahout/branches/mahout-0.8/core/src/main/java/org/apache/mahout/math/Varint.java |
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.
If we are making use of this file as provided, do we wish to also include the test case VarintTest.java?
This header looks fine and amounts to a dependency on Apache mahout version 0.8 (depending on source code rather than binary)
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.
The VarintTest has already been adapted by @groldan : https://github.com/locationtech/jts/pull/854/files#diff-9f94911887b807419c51762589f89bc8ecfdc48eb0b24c01d5919444c3c6acf2
IMO it's useful to have tests that verify behaviour of this utility class, but I'm not opposed to removing it, since it's unlikely that this code will evolve in jts.
There's the CONTRIBUTING page. Javadoc on classes is always nice, but for a small, clear, purely internal class perhaps it isn't needed. |
Hey @murdos I'm so glad to see this work going forward. Unfortunately, I didn't have a chance to continue as it was all in spare time, which has been scarce to be polite. So thanks for picking it up. |
modules/io/common/src/main/java/org/locationtech/jts/io/twkb/BoundsExtractor.java
Outdated
Show resolved
Hide resolved
modules/io/common/src/main/java/org/locationtech/jts/io/twkb/TWKBHeader.java
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,120 @@ | |||
CREATE OR REPLACE FUNCTION generate_twkb_test_data( |
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.
Would it be possible to document how to use this file?
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.
I added some documentation, please let me know if there's other info you would like to know.
modules/io/common/src/main/java/org/locationtech/jts/io/twkb/TWKBReader.java
Outdated
Show resolved
Hide resolved
modules/io/common/src/main/java/org/locationtech/jts/io/twkb/BufferedTKWBOutputStream.java
Outdated
Show resolved
Hide resolved
@jodygarnett any last minute concerns about the Javadocs? I'm hoping to be free enough on Friday to think about the JTS release. |
Hi @dr-jts. Do you have any ETA for the next jts release? |
Very soon, I hope. |
I continued previous work done with #452 and
twkb
branch.What I've done:
jts-io-common
module, since TWKB is an external format, it's more logical to have it outsidejts-core