Revision: 4739
          http://sourceforge.net/p/jump-pilot/code/4739
Author:   michaudm
Date:     2016-01-04 17:11:39 +0000 (Mon, 04 Jan 2016)
Log Message:
-----------
With postgis, don't try to convert every text field into geometry !

Modified Paths:
--------------
    core/trunk/ChangeLog
    
core/trunk/src/com/vividsolutions/jump/datastore/postgis/PostgisValueConverterFactory.java

Modified: core/trunk/ChangeLog
===================================================================
--- core/trunk/ChangeLog        2016-01-02 16:44:44 UTC (rev 4738)
+++ core/trunk/ChangeLog        2016-01-04 17:11:39 UTC (rev 4739)
@@ -3,6 +3,9 @@
 # 2. make sure that lines break at 80 chars for constricted display situations
 #<-------------------------------- 80 chars 
---------------------------------->#
 
+2016-01-04 mmichaud <m.michael.mich...@orange.fr>
+  * With postgis, don't try to convert every text field into geometry !
+
 2016-01-02 ede
   * finetuned wfs httpclient access, unified proxy and auth handling
   * wfs request is now buffered to disk for optimal performance

Modified: 
core/trunk/src/com/vividsolutions/jump/datastore/postgis/PostgisValueConverterFactory.java
===================================================================
--- 
core/trunk/src/com/vividsolutions/jump/datastore/postgis/PostgisValueConverterFactory.java
  2016-01-02 16:44:44 UTC (rev 4738)
+++ 
core/trunk/src/com/vividsolutions/jump/datastore/postgis/PostgisValueConverterFactory.java
  2016-01-04 17:11:39 UTC (rev 4739)
@@ -26,9 +26,6 @@
     // and from direct Adhoc query (type of the column resultset).
     if ("bytea".equalsIgnoreCase(dbTypeName) || 
"geometry".equalsIgnoreCase(dbTypeName)) {
       return WKB_GEOMETRY_MAPPER;
-    } else if (dbTypeName.equalsIgnoreCase("text")) {
-      // TODO: wrong: all text column will be treated as text here...
-      return WKT_GEOMETRY_MAPPER;
     }
 
     // handle the standard types


------------------------------------------------------------------------------
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to