diff src/java/de/intevation/mxd/reader/FeatureLayerReader.java @ 130:5991c1f90f91

Added data source "SDE" to writer.
author vc11884admin@VC11884.win.bsh.de
date Mon, 20 Jun 2011 16:01:17 +0200
parents 39957898c694
children 6b80d2c7536e
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/FeatureLayerReader.java	Mon Jun 20 12:20:48 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/FeatureLayerReader.java	Mon Jun 20 16:01:17 2011 +0200
@@ -197,6 +197,20 @@
                         }
                     }
                 }
+                layerElement.setAttribute(
+                    "join_table",
+                    layer.getRelationshipClass()
+                         .getOriginClass().getAliasName());
+                layerElement.setAttribute(
+                    "join_field",
+                    layer.getRelationshipClass().getOriginPrimaryKey());
+                layerElement.setAttribute(
+                    "join_table_target",
+                    layer.getRelationshipClass()
+                         .getDestinationClass().getAliasName());
+                layerElement.setAttribute(
+                    "join_field_target",
+                    layer.getRelationshipClass().getOriginForeignKey());
             }
         }
         catch(Exception e) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)