Brian Mkhwanazi (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=712020%3A46081330-7d7e-4089-ad78-ab27fae6158a
) *created* an issue
GeoServer (
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiZjY0MjFiNTQ5OTNjNDViNzg3ZjNhMDViZDk0NDA4NzAiLCJwIjoiaiJ9
) / Improvement (
https://osgeo-org.atlassian.net/browse/GEOS-10943?atlOrigin=eyJpIjoiZjY0MjFiNTQ5OTNjNDViNzg3ZjNhMDViZDk0NDA4NzAiLCJwIjoiaiJ9
) GEOS-10943 (
https://osgeo-org.atlassian.net/browse/GEOS-10943?atlOrigin=eyJpIjoiZjY0MjFiNTQ5OTNjNDViNzg3ZjNhMDViZDk0NDA4NzAiLCJwIjoiaiJ9
) SQL Views issue - UNION and ORDER BY (
https://osgeo-org.atlassian.net/browse/GEOS-10943?atlOrigin=eyJpIjoiZjY0MjFiNTQ5OTNjNDViNzg3ZjNhMDViZDk0NDA4NzAiLCJwIjoiaiJ9
)
Issue Type: Improvement Affects Versions: 2.23.0 Assignee: Unassigned
Components: SQLServer Created: 17/Apr/23 7:59 PM Environment:
I have SQL view script below that is working when executing directly in SQL
Server, However Geoserver doesn’t seem to understand the script. Can someone
assist as I’m still a fresher here? Herewith the SQL View script below and the
error message attached
SELECT
<columns>
,distance
FROM (
SELECT TOP (10)
<columns>
,CAST(geom.STDistance(geometry::Point(%lng%, %lat%, 4326)) * 111319 *
cos(radians(%lat%)) as int) as distance
FROM [all_stores]
WHERE click_collect_food = 1
UNION
SELECT TOP (10)
<columns>
,CAST(geom.STDistance(geometry::Point(%lng%, %lat%, 4326)) * 111319 *
cos(radians(%lat%)) as int) as distance
FROM [all_stores]
WHERE click_collect_fbh = 1
) A
ORDER BY distance ASC
Priority: Medium Reporter: Brian Mkhwanazi (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=712020%3A46081330-7d7e-4089-ad78-ab27fae6158a
)
(
https://osgeo-org.atlassian.net/browse/GEOS-10943#add-comment?atlOrigin=eyJpIjoiZjY0MjFiNTQ5OTNjNDViNzg3ZjNhMDViZDk0NDA4NzAiLCJwIjoiaiJ9
) Add Comment (
https://osgeo-org.atlassian.net/browse/GEOS-10943#add-comment?atlOrigin=eyJpIjoiZjY0MjFiNTQ5OTNjNDViNzg3ZjNhMDViZDk0NDA4NzAiLCJwIjoiaiJ9
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100221-
sha1:d40a829 )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel