同步操作将从 wuguojun/jts 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
The JTS build chain uses Maven. Build commands are executed at the project root directory (this one).
Build JTS, with tests:
mvn clean install
Build JTS, no tests:
mvn clean install -DskipTests
Build jts-io-ora
:
mvn install -Poracle
Build jts-io-sde
:
mvn install -Parcsde
Build everything:
mvn install -Pall
Build Javadoc for core modules
mvn javadoc:aggregate
mvn eclipse:eclipse
It is convenient to define the following Run Configurations:
Field | Value |
---|---|
Type | Java Application |
Project | jts-tests |
Main class | org.locationtech.jtstest.testrunner.JTSTestRunnerCmd |
Program arguments | validate general |
Working directory | ${workspace_loc:jts-tests/src/test/resources/testxml} |
Field | Value |
---|---|
Type | Java Application |
Project | jts-app |
Main class | org.locationtech.jtstest.testbuilder.JTSTestBuilder |
Program arguments (optional) | -geomfunc <classname> ... |
VM args | -Xmx1000M |
VM args (optional, for Mac) | -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel |
Working directory | Default |
JTS aims for 100% code coverage for unit tests.
There are two kinds of unit tests:
Used for verifying API code, internal data structures, and ancillary algorithms. These tests are written in Java. This allows testing all parts of the codebase, and can provide richer error detection and reporting. However, the tests are not as readable or portable as the XML tests.
To run the unit tests in a module (jts-core
):
mvn test -pl modules/core
JTS provides a code-independent, declarative XML-based format for expressing geometric functional tests. This format has the following advantages:
This format should be used for tests which involve large geometries, or which express fundamental geometric semantics of the JTS library.
The XML test format can be executed using the JTS TestRunner, or imported into the JTS TestBuilder.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。