Azure流分析-如何通过连接参考斑点数据来使用ST_WITHIN方法,包含来自输​​入数据的经纬度的多边形详细信息

时间:2019-01-30 17:04:21

标签: azure azure-storage azure-blob-storage

如何通过连接参考斑点数据来使用ST_WITHIN方法,该数据包含来自输​​入数据的纬度和经度的多边形详细信息。我遇到了JOIN方法的问题

2 个答案:

答案 0 :(得分:1)

在ASA内尚不可能将一种方法置于另一种方法中。 在您的情况下,请使用with选项细分搜索。

Ex:

with cteCreatePoint(
SELECT 
   e.PartitionByDeviceId,
   e.deviceid,
   e.UnixTime,
   e.MessageParsedTimestamp,
   e.Latitude,
   e.Longitude,
   e.ObdVIN,
   e.Address,
   createpoint(e.latitude,e.longitude) as point,
   as Inbound  
   FROM geoinput as e
)

在带有返回值的序列中进行相交以获得函数内的返回值

例如:

select
a.*,
b.*
into [exit]
from [cteCreatePoint] a
JOIN [georef] on ST_WITHIN(a.point,b.geometry) = 1

答案 1 :(得分:0)

#: import main calendar
#: import NoTransition kivy.uix.screenmanager.NoTransition
#:import Factory kivy.factory.Factory

#: include january.kv

<ScheduledPopup@Popup>:
    title: 'Event Scheduled'
    id: scheduled_popup
    BoxLayout:
        Label:
            text: 'Event Scheduled.'

        Button:
            text: 'Close.'
            on_release: root.dismiss()


<ButtonPopup>:
    title: 'Set Events'
    title_align: 'center'
    auto_dismiss: False
    size_hint: None, None
    size: 400, 200

    GridLayout:
        cols: 1
        TextInput:
            multiline: True
            id: scheduled_event
            hint_text: "Something scheduled for this day..."

        BoxLayout:

            Button:
                id: set_event
                text: "Schedule"
                on_press: root.schedule_event()
                on_release: root.dismiss()

            Button:
                id: cancel
                text: "Cancel"
                on_release: root.dismiss()

<CustButton@Button>:
    size: 1, 1

<CalendarButt>:
    on_press: root.button_clicked()
    background_color: 12, 12, 12, 0.1
    font_name: 'Roboto-Thin'
    font_size: 20
    background_down: 'background_pressed.png'
    on_release: Factory.ButtonPopup().open()