Skip to content

Commit

Permalink
fix(deps): update Geotools to 32.1
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Geotools update includes breaking changes that affect
this library's API.
  • Loading branch information
stempler committed Dec 4, 2024
1 parent bd2cd8d commit 4c0f0bc
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ build
.project
.classpath
.settings/

/web/
14 changes: 9 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,22 @@ repositories {
mavenCentral()
}

ext {
geotoolsVersion = '32.1'
}

dependencies {
implementation 'org.lz4:lz4-java:1.8.0' // Apache 2.0
implementation 'com.github.albfernandez:javadbf:1.14.1' // LGPL 3.0
implementation 'com.google.code.gson:gson:2.11.0' // Apache 2.0
implementation 'org.apache.commons:commons-lang3:3.17.0' // Apache 2.0

// GeoTools (LGPL 2.1)
implementation 'org.geotools:gt-main:29.6'
implementation 'org.geotools:gt-epsg-hsql:29.6'
implementation 'org.geotools:gt-opengis:29.6'
// implementation 'org.geotools:gt-geometry:24.2'
implementation 'org.geotools:gt-referencing:29.6'
implementation "org.geotools:gt-main:${geotoolsVersion}"
implementation "org.geotools:gt-epsg-hsql:${geotoolsVersion}"
implementation "org.geotools:gt-api:${geotoolsVersion}"
// implementation "org.geotools:gt-geometry:${geotoolsVersion}"
implementation "org.geotools:gt-referencing:${geotoolsVersion}"

implementation 'javax.xml.bind:jaxb-api:2.3.1'
implementation 'com.sun.xml.bind:jaxb-core:2.3.0.1'
Expand Down
1 change: 1 addition & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
example.csv
Binary file removed data/example.csv
Binary file not shown.
2 changes: 1 addition & 1 deletion src/json/converter/shp/ShpFileReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.io.IOException;
import java.util.regex.Pattern;

import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.geotools.api.referencing.crs.CoordinateReferenceSystem;

import json.converter.csv.CSVReader;
import json.converter.csv.merger.Merger;
Expand Down
2 changes: 1 addition & 1 deletion src/json/geojson/objects/Point.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.io.DataInputStream;
import java.io.IOException;

import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.geotools.api.referencing.crs.CoordinateReferenceSystem;

import json.graphic.Colorifier;
import json.graphic.Display;
Expand Down
2 changes: 1 addition & 1 deletion src/json/geojson/objects/Polygon.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.util.Vector;

import org.apache.commons.lang3.ArrayUtils;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.geotools.api.referencing.crs.CoordinateReferenceSystem;

import json.algorithm.DouglasPeucker;
import json.graphic.Colorifier;
Expand Down
4 changes: 2 additions & 2 deletions src/json/tools/Toolbox.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.Point;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.opengis.referencing.operation.MathTransform;
import org.geotools.api.referencing.crs.CoordinateReferenceSystem;
import org.geotools.api.referencing.operation.MathTransform;

public class Toolbox {

Expand Down
2 changes: 1 addition & 1 deletion src/json/topojson/api/TopojsonApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import net.jpountz.lz4.LZ4Compressor;
import net.jpountz.lz4.LZ4Factory;

import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.geotools.api.referencing.crs.CoordinateReferenceSystem;

import json.converter.csv.merger.Merger;
import json.converter.shp.ShpFileReader;
Expand Down
2 changes: 1 addition & 1 deletion unittest/TilesExplosion.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import json.topojson.api.TopojsonApi;
import json.topojson.topology.Topology;
import org.geotools.referencing.CRS;
import org.opengis.referencing.FactoryException;
import org.geotools.api.referencing.FactoryException;


public class TilesExplosion {
Expand Down
2 changes: 1 addition & 1 deletion unittest/TilesTesting.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import json.topojson.api.TopojsonApi;
import json.topojson.topology.Topology;
import org.geotools.referencing.CRS;
import org.opengis.referencing.FactoryException;
import org.geotools.api.referencing.FactoryException;


public class TilesTesting implements DisplayListener {
Expand Down
2 changes: 1 addition & 1 deletion unittest/testAssociation.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import json.topojson.api.TopojsonApi;
import json.topojson.topology.Topology;
import org.geotools.referencing.CRS;
import org.opengis.referencing.FactoryException;
import org.geotools.api.referencing.FactoryException;


public class testAssociation {
Expand Down
2 changes: 1 addition & 1 deletion unittest/testFillPolygon.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import json.topojson.api.TopojsonApi;
import json.topojson.topology.Topology;
import org.geotools.referencing.CRS;
import org.opengis.referencing.FactoryException;
import org.geotools.api.referencing.FactoryException;


public class testFillPolygon {
Expand Down
2 changes: 1 addition & 1 deletion unittest/testTopojson.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.junit.Test;

import com.google.gson.Gson;
import org.opengis.referencing.FactoryException;
import org.geotools.api.referencing.FactoryException;


@Ignore("Not working because reference systems cannot be resolved")
Expand Down

0 comments on commit 4c0f0bc

Please sign in to comment.