Esri / spatial-framework-for-hadoop

The Spatial Framework for Hadoop allows developers and data scientists to use the Hadoop data processing system for spatial data analysis.
Apache License 2.0
369 stars 159 forks source link

Centroid versus Envelope Center #150

Closed randallwhitman closed 6 years ago

randallwhitman commented 6 years ago

https://github.com/Esri/spatial-framework-for-hadoop/wiki/ST_Geometry-in-Hive-versus-SQL#st_geometry-functions-with-different-behavior https://github.com/Esri/geometry-api-java/pull/169

randallwhitman commented 6 years ago
        OGCGeometry ogcGeometry = GeometryUtils.geometryFromEsriShape(geomref);
        OGCGeometry centroid = ogcGeometry.centroid();

ST_Centroid.java:[36,36] error: cannot find symbol

Not seeing the difference from - https://github.com/Esri/geometry-api-java/pull/169/files#diff-f11216079fddc7f9bfdf629e2b746d44R80

I do have the dependency on Geometry-2.1 :

    <geometry.version>2.1.0</geometry.version>
      <dependency>
        <groupId>com.esri.geometry</groupId>
        <artifactId>esri-geometry-api</artifactId>
        <version>${geometry.version}</version>
      </dependency>
randallwhitman commented 6 years ago

Perhaps in the category of too obvious to notice .. Centroid is on Geometry master after rather than before Geometry-2.1.0 release.