Guest User

Untitled

a guest
Apr 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. select b.[Region],geometry::UnionAggregate(geom.MakeValid()) AS Geo
  2. into dbo.DRShape from [dbo].[departements2] a
  3. join [dbo].[BM_REGIONFR] b on a.[code_insee] = b.[dep_2] group by b.Region
  4.  
  5. ogr2ogr -f "ESRI Shapefile" "C:Userssqlexport.shp" "MSSQL:server=PORT_7FMW8H2;database=testdbspatial;trusted_connection=yes;" -sql "select * from DRShape" -overwrite
Add Comment
Please, Sign In to add comment