Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Acronym for Structured Query Language. A syntax for retrieving and manipulating data from a relational database.
1
vote
1
answer
275
views
Add a filter Filter to SQL Query based on geometry generated on-the-fly
I have an sql query like this:
SELECT geometry::STGeomFromText(
CONCAT('LINESTRING(',
(SELECT CONCAT(fstruc.Shape.STX, ' ', fstruc.Shape.STY)),
',',
(SELECT CONCAT(tstruc.Shape.STX, ' ', tstruc.Shape.STY … Something like geom.STIsValid ( ) = 1 would do it, but I can't get my sql query to run if I add this to the where clause. …
2
votes
Add a filter Filter to SQL Query based on geometry generated on-the-fly
Found an alternative solution. It uses .MakeValid() at the end of the geometry type to fix invalid geometries.
SELECT vid.*, geometry::STGeomFromText(
CONCAT('LINESTRING(',
(SELECT CONCAT(fstruc.Sha …