accidentally put in the incorrect wkt and getting error below. Could this just be timeout issue some where?
org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: com.microsoft.sqlserver.jdbc.SQLServerException: A .NET Framework error occurred during execution of user-defined routine or aggregate "geometry":
System.FormatException: 24111: The well-known text (WKT) input is not valid.
System.FormatException:
at Microsoft.SqlServer.Types.WellKnownTextReader.Read(OpenGisType type, Int32 srid)
at Microsoft.SqlServer.Types.SqlGeometry.GeometryFromText(OpenGisType type, SqlChars text, Int32 srid)
.
### The error may exist in uk/org/nbn/nbnv/api/dao/warehouse/TaxonObservationMapper.java (best guess)
### The error may involve uk.org.nbn.nbnv.api.dao.warehouse.TaxonObservationMapper.selectObservationsByFilterOrderedByDataset-Inline
### The error occurred while setting parameters
### SQL: SELECT obs.*, obs.id AS observationID, f.label AS location, f.resolutionID, r.label AS resolution, si.providerKey AS siteKey, si.name AS siteName, pt.name AS pTaxonName, pt.authority AS pTaxonAuthority, rr.name AS recorder, rd.name AS determiner FROM (SELECT o.*, 1 AS fullVersion FROM TaxonObservationDataEnhanced o INNER JOIN UserTaxonObservationID utoa ON utoa.observationID = o.id INNER JOIN FeatureData ftd ON ftd.id = o.featureID WHERE ((utoa.userID = ?) AND ftd.geom.STIntersects(geometry::STGeomFromText(?, 4326)) = 1 AND ftd.geom.STTouches(geometry::STGeomFromText(?, 4326)) = 0 AND sensitive = 0) UNION ALL SELECT o.*, 0 AS fullVersion FROM TaxonObservationDataPublic o INNER JOIN FeatureData ftd ON ftd.id = o.featureID WHERE (o.id NOT IN ( SELECT utoa.observationID FROM UserTaxonObservationID utoa WHERE utoa.userID = ?) AND ftd.geom.STIntersects(geometry::STGeomFromText(?, 4326)) = 1 AND ftd.geom.STTouches(geometry::STGeomFromText(?, 4326)) = 0 AND sensitive = 0)) obs INNER JOIN FeatureData f ON f.id = obs.featureID INNER JOIN Resolution r ON r.id = f.resolutionID INNER JOIN TaxonData pt ON pt.taxonVersionKey = obs.pTaxonVersionKey LEFT OUTER JOIN SiteData si ON si.id = obs.siteID LEFT OUTER JOIN RecorderData rr ON rr.id = obs.recorderID LEFT OUTER JOIN RecorderData rd ON rd.id = obs.determinerID ORDER BY obs.datasetKey
### Cause: com.microsoft.sqlserver.jdbc.SQLServerException: A .NET Framework error occurred during execution of user-defined routine or aggregate "geometry":
System.FormatException: 24111: The well-known text (WKT) input is not valid.
System.FormatException:
at Microsoft.SqlServer.Types.WellKnownTextReader.Read(OpenGisType type, Int32 srid)
at Microsoft.SqlServer.Types.SqlGeometry.GeometryFromText(OpenGisType type, SqlChars text, Int32 srid)
.
; bad SQL grammar []; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: A .NET Framework error occurred during execution of user-defined routine or aggregate "geometry":
System.FormatException: 24111: The well-known text (WKT) input is not valid.
System.FormatException:
at Microsoft.SqlServer.Types.WellKnownTextReader.Read(OpenGisType type, Int32 srid)
at Microsoft.SqlServer.Types.SqlGeometry.GeometryFromText(OpenGisType type, SqlChars text, Int32 srid)
IT Officer
rECOrd (A Biodiversity Information System for Cheshire, Halton, Warrington and Wirral)
www.record-lrc.co.uk