Skip to content

Commit

Permalink
fix: remove unneeded dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Dec 4, 2024
1 parent edd8dd8 commit cef209f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
4 changes: 0 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ dependencies {
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'
implementation 'com.sun.xml.bind:jaxb-impl:2.3.9'

testImplementation 'junit:junit:4.13.2'

Expand Down
7 changes: 2 additions & 5 deletions src/json/tools/Compress.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import java.nio.charset.StandardCharsets;

import javax.xml.bind.DatatypeConverter;

import net.jpountz.lz4.LZ4Compressor;
import net.jpountz.lz4.LZ4Decompressor;
import net.jpountz.lz4.LZ4Factory;
import net.jpountz.lz4.LZ4UnknownSizeDecompressor;

Expand All @@ -25,14 +22,14 @@ public static String compressB64(String iStr){
byte[] compressedFinal = new byte[compressedLength];
System.arraycopy(compressed, 0, compressedFinal, 0, compressedLength);

return DatatypeConverter.printBase64Binary(compressedFinal);
return java.util.Base64.getEncoder().encodeToString(compressedFinal);

}

public static String decompressB64(String iStr){


byte[] aInputData = DatatypeConverter.parseBase64Binary(iStr);
byte[] aInputData = java.util.Base64.getDecoder().decode(iStr);

LZ4Factory factory = LZ4Factory.fastestInstance();

Expand Down
9 changes: 0 additions & 9 deletions src/json/topojson/api/TopojsonApi.java
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
package json.topojson.api;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.TreeSet;

import javax.xml.bind.DatatypeConverter;

import net.jpountz.lz4.LZ4Compressor;
import net.jpountz.lz4.LZ4Factory;

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

import json.converter.csv.merger.Merger;
import json.converter.shp.ShpFileReader;
import json.geojson.FeatureCollection;
import json.geojson.objects.Bounding;
import json.tools.Compress;
import json.tools.Toolbox;
import json.topojson.algorithm.ArcMap;
Expand Down

0 comments on commit cef209f

Please sign in to comment.