Skip to content

This project provides a method to decode arcgis compressed geometry,which is used in route analysis result

License

Notifications You must be signed in to change notification settings

maslke/arcgis-compressed-geometry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arcgis-compressed-geometry

License: MIT codecov

A Java library for encoding and decoding ArcGIS Compressed Geometry Format.

Introduction

This library provides encoding and decoding functionality for ArcGIS Compressed Geometry Format. It supports the following coordinate formats:

  • xy (2D coordinates)
  • xyz (3D coordinates with elevation)
  • xym (coordinates with measure values)
  • xyzm (coordinates with elevation and measure values)

Add Dependency

<dependency>
  <groupId>io.github.maslke</groupId>
  <artifactId>arcgis-compressed-geometry</artifactId>
  <version>${VERSION}</version>
</dependency>

How to use

Encode

List<double[]> coordinates = Arrays.asList(
            new double[]{-122.40645857695421, 37.78272915354862},
            new double[]{-122.40609876765315, 37.78299901052442}, 
            new double[]{-122.40597283439777, 37.78305298191958},
            new double[]{-122.40417378789242, 37.7844382477287}
        );
String geometry = CompressedGeometryEncoder.encode(coordinates, "xy", 55585);

Decode

List<double[]> points = CompressedGeometryDecoder.decode("+1m91-6fkfr+202tp+k+f+7+3+34+2d");

About

This project provides a method to decode arcgis compressed geometry,which is used in route analysis result

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •  

Languages