Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.hive.ql.exec.Description;
import org.apache.hadoop.hive.ql.exec.UDFArgumentException;
import org.apache.hadoop.io.BytesWritable;

Expand All @@ -10,6 +11,12 @@
import com.esri.core.geometry.SpatialReference;
import com.esri.hadoop.hive.GeometryUtils.OGCType;

@Description(
name = "ST_GeomFromShape",
value = "_FUNC_(shape) - construct ST_Geometry from Esri shape representation of geometry\n",
extended = "Example:\n" +
" SELECT _FUNC_(ST_AsShape(ST_Point(1, 2))); -- constructs ST_Point\n"
)
public class ST_GeomFromShape extends ST_Geometry {

static final Log LOG = LogFactory.getLog(ST_GeomFromShape.class.getName());
Expand Down Expand Up @@ -50,4 +57,4 @@ public BytesWritable evaluate(BytesWritable shape, int wkid) throws UDFArgumentE
}
}

}
}