Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3212

Inserting values ST_Polygon values in ST_geomentry

$
0
0

Hi All,

 

I am trying to insert ST_Polygon values into the table field which has ST_Geomentry type

 

INSERTINTO"NEO_B45RWNY007IMPIDRM4ZSG1OV0"."AREA"(AREANAME,AREA)VALUES('OMR1',new ST_POLYGON('POLYGON((12.941604

80.236210, 13.006241 80.247477, 12.968213 80.259943, 12.919784 80.251124,12.965365 80.246106))'));

 

but i am unable to insert it is throwing below error

 

Could not execute 'INSERt INTO "NEO_B45RWNY007IMPIDRM4ZSG1OV0"."AREA"(AREANAME,AREA)VALUES('Test',new ...' in 123 ms 373 µs .

SAP DBTech JDBC: [266]: inconsistent datatype: Failed to parse from WellKnownText at function __st_polygon__()


Please help me in solving this issue.


Below is the create statement which is used to create the table FYI:


createcolumntable"NEO_B45RWNY007IMPIDRM4ZSG1OV0"."AREA"(ID BIGINTPRIMARYKEY GENERATED BYDEFAULTASIDENTITY,AREANAME VARCHAR(30),AREA ST_GEOMETRY);


Thanks,

Rithika


Viewing all articles
Browse latest Browse all 3212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>