diff flys-backend/contrib/shpimporter/shpimporter.py @ 2861:b0132e1b9719

Added further shape importers and added the option to reproject shapes during the import process. flys-backend/trunk@4342 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 03 May 2012 14:19:52 +0000
parents bd9e76e0b55d
children 998f1a7dcfde
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/shpimporter.py	Wed May 02 08:49:57 2012 +0000
+++ b/flys-backend/contrib/shpimporter/shpimporter.py	Thu May 03 14:19:52 2012 +0000
@@ -8,21 +8,28 @@
 from fixpoints import Fixpoint
 from buildings import Building
 from crosssectiontracks import CrosssectionTrack
+from floodplains import Floodplain
+from boundaries import HydrBoundary, HydrBoundaryPoly
 
 DBCONN='OCI:user/pass@host'
 PATH='/path/to/Gewaesser/Elbe'
 RIVER_ID=the_river_id
+DEST_SRS=31467
 
 
 def getImporters():
     return [
-        Axis(DBCONN, RIVER_ID),
-        KM(DBCONN, RIVER_ID),
-        CrosssectionTrack(DBCONN, RIVER_ID),
-        Line(DBCONN, RIVER_ID),
-        Fixpoint(DBCONN, RIVER_ID),
-        Building(DBCONN, RIVER_ID),
-        UESG(DBCONN, RIVER_ID)]
+        Axis(DBCONN, RIVER_ID, DEST_SRS),
+        KM(DBCONN, RIVER_ID, DEST_SRS),
+        CrosssectionTrack(DBCONN, RIVER_ID, DEST_SRS),
+        Line(DBCONN, RIVER_ID, DEST_SRS),
+        Fixpoint(DBCONN, RIVER_ID, DEST_SRS),
+        Building(DBCONN, RIVER_ID, DEST_SRS),
+        Floodplain(DBCONN, RIVER_ID, DEST_SRS),
+        HydrBoundary(DBCONN, RIVER_ID, DEST_SRS),
+        HydrBoundaryPoly(DBCONN, RIVER_ID, DEST_SRS),
+        UESG(DBCONN, RIVER_ID, DEST_SRS)
+        ]
 
 
 if __name__ == '__main__':

http://dive4elements.wald.intevation.org