Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geography data type Method and prefSQL #53

Open
pfaeffli opened this issue Nov 7, 2016 · 0 comments
Open

Geography data type Method and prefSQL #53

pfaeffli opened this issue Nov 7, 2016 · 0 comments

Comments

@pfaeffli
Copy link
Contributor

pfaeffli commented Nov 7, 2016

Describtion
We want to use the geography data type of Ms SQL. Some of these functions have to be called like geography::STGeomFromText(). prefSQL does not allow such calls.
It is of course not necessary that prefSQL has to support this.

Example Query

SELECT o.OBJ_ID as Id,
 geography::STGeomFromText('POINT (8.436462 47.147035)',
 4326) AS Rotkreuz,
 o.OBJ_KOORDINATEN.STDistance('POINT (8.436462 47.147035)',4326) AS DistanceToRotkreuz 
FROM T_Objekt o  
SKYLINE OF  o.OBJ_OBJEKTART ('Haus' >> OTHERS EQUAL),
 o.OBJ_KOORDINATEN.STDistance('POINT (8.436462 47.147035)',4326) LOW)

Exception
mismatched input ':' expecting {, ';', ',', '=', '*', '+', '-', '||', '/', '%', '<<', '>>', '&', '|', '<', '<=', '>', '>=', '==', '!=', '<>', K_AND, K_AS, K_BETWEEN, K_EXCEPT, K_FROM, K_IN, K_INTERSECT, K_IS, K_ISNULL, K_LIKE, K_MATCH, K_NOT, K_NOTNULL, K_OR, K_ORDER, K_UNION, K_WHERE, K_SKYLINE, K_GROUP, IDENTIFIER, STRING_LITERAL}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant