Revision: 4822
          http://sourceforge.net/p/jump-pilot/code/4822
Author:   michaudm
Date:     2016-02-16 07:32:09 +0000 (Tue, 16 Feb 2016)
Log Message:
-----------
Datastore attribute converter now convert secondary geometries as OBJECT rather 
than STRING (easier to write them back to the datastore)

Modified Paths:
--------------
    core/trunk/ChangeLog
    
core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesResultSetConverter.java

Modified: core/trunk/ChangeLog
===================================================================
--- core/trunk/ChangeLog        2016-02-15 23:12:46 UTC (rev 4821)
+++ core/trunk/ChangeLog        2016-02-16 07:32:09 UTC (rev 4822)
@@ -5,6 +5,9 @@
 
 2016-02-16 mmichaud <m.michael.mich...@orange.fr>
   * Fix bug 416 in FillPolygonTool (regression due to JTS change)
+  * If a datastore table has several geometries, secondary geometries are
+    read as AttributeType.OBJECT attributes rather than STRING so that
+    datastore driver can easily write them back as a byte array.
 
 2016-02-02 mmichaud <m.michael.mich...@orange.fr>
   * Fix bug #415 throwing exceptions in AttributeTablePanel

Modified: 
core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesResultSetConverter.java
===================================================================
--- 
core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesResultSetConverter.java
   2016-02-15 23:12:46 UTC (rev 4821)
+++ 
core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesResultSetConverter.java
   2016-02-16 07:32:09 UTC (rev 4822)
@@ -78,8 +78,9 @@
           // use colName instead of "GEOMETRY" for attribute name
           featureSchema.addAttribute(colName, mapper[i].getType());
         } else {
-          // Other geometry attributes as string
-          featureSchema.addAttribute(colName, AttributeType.STRING);
+          // 2016-02-16 : Other geometry attributes as object rather than 
String
+          // so that it can be written back to datastore more easily
+          featureSchema.addAttribute(colName, AttributeType.OBJECT);
           featureSchema.setAttributeReadOnly(i, true);
         }
       } else {


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to