Revision: 4825 http://sourceforge.net/p/jump-pilot/code/4825 Author: michaudm Date: 2016-02-18 20:18:52 +0000 (Thu, 18 Feb 2016) Log Message: ----------- Small improvements
Modified Paths: -------------- core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteValueConverterFactory.java Modified: core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteValueConverterFactory.java =================================================================== --- core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteValueConverterFactory.java 2016-02-17 12:47:46 UTC (rev 4824) +++ core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteValueConverterFactory.java 2016-02-18 20:18:52 UTC (rev 4825) @@ -168,9 +168,8 @@ } else { geometryType = (wkb[1] & 0xFF) | (wkb[2] & 0xFF) << 8 | (wkb[3] & 0xFF) << 16 | (wkb[4] & 0xFF) << 24; } - boolean hasZ = ((geometryType & 0x80000000) != 0) || (geometryType > 1000); - System.out.println("hasZ " + hasZ); - if (hasZ) geometryType = 0x80000000 | (geometryType & 0x0000FFFF)%1000; + boolean hasZ = ((geometryType & 0x80000000) != 0) || (geometryType >= 1000 && geometryType < 3000); + geometryType = (geometryType & 0x0000FFFF)%1000; if (byteOrder == 0) { wkb[1] = hasZ ? (byte)(wkb[1] | 0x80) : wkb[1]; wkb[2] = 0x00; ------------------------------------------------------------------------------ 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