You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ It is originally based on [postgis-java](https://github.com/postgis/postgis-java
16
16
**Project goals and improvements:**
17
17
* Support for geometries containing arcs like `CIRCULARSTRING` or `CURVEPOLYGON`
18
18
* Support for PostGIS [geography datatype](https://postgis.net/docs/using_postgis_dbmanagement.html#PostGIS_Geography)
19
+
* Extended support for bounding boxes, i.e. box2/box3 PostGIS data types (as PGbox2d/PGbox3d).
19
20
* Use generic Java types where possible and simplify/streamline API
20
21
* Clean up code to basically only work on [WKB](https://en.wikipedia.org/wiki/Well-known_text#Well-known_binary)/EWKB implementations to reduce code duplication and focus on the actual database format
21
22
* Support for the latest PostgreSQL and PostGIS versions
@@ -37,6 +38,8 @@ It is originally based on [postgis-java](https://github.com/postgis/postgis-java
There is a Maven artifact in the official Maven repository, so just add this to your Maven POM:
@@ -45,11 +48,11 @@ There is a Maven artifact in the official Maven repository, so just add this to
45
48
<dependency>
46
49
<groupId>io.github.sebasbaumh</groupId>
47
50
<artifactId>postgis-java-ng</artifactId>
48
-
<version>22.0.1</version>
51
+
<version>22.1.0</version>
49
52
</dependency>
50
53
```
51
54
52
-
The version reflects the year of the release, e.g. `22.0.0` is a version released in 2022.
55
+
The version reflects the year of the release, e.g. `22.1.0` is a version released in 2022.
53
56
54
57
The API differs a bit from [postgis-java](https://github.com/postgis/postgis-java) with the main point being a different namespace (`io.github.sebasbaumh.postgis`) as publishing a project to Maven Central requires to own that namespace.
55
58
In addition the class structure is a bit different (see below) to support arc geometries and reduce boilerplate code, but you should be able to adapt to it easily.
@@ -80,4 +83,16 @@ Or add the following Maven build parameters to the launch configuration in eclip
80
83
|`testJdbcUsername`|`unittest`|
81
84
|`testJdbcPassword`|`CHANGEME`|
82
85
86
+
If it works, you will see this line in the build output:
87
+
88
+
```
89
+
Tests are running with a database
90
+
```
91
+
92
+
else
93
+
94
+
```
95
+
Tests are running without a database
96
+
```
97
+
83
98
*There are also local tests contained in the project, so you are still able to test most parts without specifying a PostgreSQL server. And the test console output will show if tests were run with or without a database.*
0 commit comments