Hi all, I'm trying to use the FilterFactory2.intersects(ff.property(geometryAttributeName), ff.literal(bbox)) function against a SQL Server 2008 R2 database but I keep getting a .NET exception when trying to access the results.
I've adapted the code in the SelectionLab.java tutorial to display SQL Server data. Here's the exception the I'm receiving - any thoughts? java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: A .NET Framework error occurred during execution of user-defined routine or aggregate "geometry": System.FormatException: 24114: The label ReferencedEnvelope[4 in the input well-known text (WKT) is not valid. Valid labels are POINT, LINESTRING, POLYGON, MULTIPOINT, MULTILINESTRING, MULTIPOLYGON, or GEOMETRYCOLLECTION. System.FormatException: at Microsoft.SqlServer.Types.OpenGisWktReader.ParseTaggedText(OpenGisType type) at Microsoft.SqlServer.Types.OpenGisWktReader.Read(OpenGisType type, Int32 srid) at Microsoft.SqlServer.Types.SqlGeometry.GeometryFromText(OpenGisType type, SqlChars text, Int32 srid) at Microsoft.SqlServer.Types.SqlGeometry.Parse(SqlString s) Thanks! Adam Stewart -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SQL-Server-Selection-Filter-error-tp5012296.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
