Quantcast
Channel: Question and Answer » oracle
Viewing all articles
Browse latest Browse all 717

ESRI ST_Geometry struct parse in java

$
0
0

I am trying to read and parse the ESRI ST_Geometry which is an oracle user defined type in java manually, and I follow this instructions, and it said that:

…. Points: Contains the byte stream of the point coordinates that
define the geometry

Now even I read the points(Blob in databse) to byte[], I have no idea how to transfer them to the coordinates.

Is this possible?


We have other data in the database which is not produced by ESRI product, if we use ESRI java SDE to access the Spatial data, and get other data from database, I think this is not a good idea. So we use Arcgis SDE to push the spatial data to the database, and try to access the data through jdbc.

And why I do not use the st_astext function to get the data is that we are using Hibernate in the application, and I am creating a custom Dialect to register the St_Geometry column type and read/write the struct. That’s why I have to parse the data manually.

And I am inspired by the Hibernate Spatial project, which make the SDGeometry column type mappable.


Viewing all articles
Browse latest Browse all 717

Trending Articles