Oracle spatial converts Geometry to gml

Source: Internet
Author: User

In my previous post, I introduced Oracle spatial to convert Geometry to a gml string (http://www.cnblogs.com/likehua/archive/2012/10/18/2730172.html), which mainly uses three functions get_wkt (), sdo_util.TO_GMLGEOMETRY (), and to_char (). In fact, there are no problems with these three functions, just like the test in the previous blog. However, if the Geometry is very large (that is, it has many points), The to_char function will report an error. Because the get_wkt () and to_gmlgeometry () function return results of the clob type, and to_char is converted to the dense type, errors will occur if the data is large. Just like what I encountered today: threw a java. SQL. SQLException: ORA-22835: the buffer is too small for CLOB to CHAR conversion or BLOB to RAW conversion (actual: 24453, Max: 4000 ). To solve this problem, we still use java to honestly convert clob to string type data for openlayers.

Thank you for your comments! Reprint please explain the source: http://www.cnblogs.com/likehua/archive/2012/10/20/2732161.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.