Geometry from Oracle 10g into SQL server 2012
i'm building service(c#) selects number of geometries system stores geometries in oracle 10g, , save copy of sql server database use system.
looked first @ sdo_util.to_wktgeometry(). however, geometries stored 3d geometries (even though z-layer 0, not work wkt works if in 2d).
option number 2 sdo_util.to_gmlgeometry(), returns gmls in v2, , sql server them in gml v3.1.1(from read)(and have not found simple way convert these).
have idea of other options, maybe third-party libraries can used this?
understand may find more belong in a. net forum, have been trying such, not been able find anything. ideas appreciated!
why storing 3d geometries if z value 0?:)
it's been while since used oracle seems me if to_wktgeometry() works 2d geometries (couldn't see limitation documented anywhere?) need "flatten" data 2d first, using make_2d function: http://docs.oracle.com/cd/e11882_01/appdev.112/e11830/sdo_cs_ref.htm#chdbcaee export them wkt.
twitter: @alastaira blog: http://alastaira.wordpress.com/ | pro spatial sql server 2012
SQL Server > SQL Server Spatial
Comments
Post a Comment