c# - Import ORACLE SDO_GEOMETRY to SQL Server Geometry -
i'm building service 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).
does have idea of other options, maybe third-party libraries can used this?
one possibility use towkb? function in oracle spatial convert sdo_geometry wkb. use below linked server oracle sql server.
with (select mi_prinx, street,geometry::stgeomfromwkb(wkb,4283).makevalid() geom sistdb..gips.wkb_roads_test_v)insert sde.tra_lan_queenslandroadsselect mi_prinx id, street,geography::stgeomfromwkb(geom.stasbinary(),4283) geog a;
Comments
Post a Comment