Zum Hauptinhalt gehen

Find closest features to point and generate report

Kommentare

4 Kommentare

  • John Nerge

    I'm doing something similar with parcels by reporting nearby park names and distance away (as the crow flies) in miles. I'm accomplishing this with a spatial query stored in a data link on my parcel layer. I can supply a sample if you have a similar setup (data stored in SQL Server 2012 but the query should work in 2008 as well).

    0
  • Permanently deleted user

    Hi Mike,

     

     The Generate a Multi-Layer Report with Map example from the code gallery could serve as an base from which to build your workflow/report upon. See (https://support.geocortex.com/essentialsGSCCodeGallery?sub-nav=codegall&main-nav=essentials&id=kA460000000bllT) Generate a multi-layer report .

     

    regards,

    Edmond

    0
  • Permanently deleted user

    Further Edmond's reply, the "nearest" functionality is a hard question to answer spatially on-the-fly. Thus most do pre-processing of the data to use an attribute query/value and reports the amount there. Alternatively you can generate an on-the-fly "nearest" algoritmn. An example pseudo code for on-demand closest is:

    1. Buffer selected object by X
    2. Select desired feature(s) within buffer distance
    3. Case: 0 selected features = Double Buffer Distance, Return to #1
    4. Case: 1 selected features = Answer!
    5. Case: >1 check linear distance between each feature from selected feature. Lowest is answer.

    Good luck!

    Shawn.

    0
  • Permanently deleted user

    Check out one of Geocortex User Conference 2013: (https://support.geocortex.com/essentialsGSCVideo?sub-nav=videos&main-nav=essentials&id=kA560000000Caoj) Deep Dive: Working with Data II  presented by John F.

    If you are using MS SQL database as the backend data, it is so cool new way to achieve what you want to do.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.