decode the blob geometry using java

别说谁变了你拦得住时间么 提交于 2020-05-30 08:09:05

问题


In my table I have two columns, Data and Range.

Range field is encoded binary from ArcGIS. this format is supposed to be a standard format with in the Geo spatial industry.

https://www.gaia-gis.it/gaia-sins/BLOB-Geometry.html

http://www.geopackage.org/spec120/#gpb_format

need to use the srs_id to decode the Range field.

String sql = "SELECT DATA, RANGE FROM IK_TEMP";

        try (Connection conn = this.connect();
             Statement stmt  = conn.createStatement();
             ResultSet rs    = stmt.executeQuery(sql)){

            // loop through the result set
            while (rs.next()) {
                System.out.println(rs.getString("DATA") +  "\t" + 
                                   rs.getString("RANGE"));

            }

This range field I need to decode. How can I decode it.

I have seen example but it didn't work.

来源:https://stackoverflow.com/questions/62016074/decode-the-blob-geometry-using-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!