Point In Polygon Search

487
2
02-20-2019 03:40 PM
MauricioRamirez1
New Contributor

We have a system that brings in the Lat/Lon of field units.  They are made available to my application by our message bus.  I'm wanting to find out if an incoming unit is within any of our "Areas Of Interest".  My thought was to load the "Area Of Interest" layer from teh GIS server into memory and as the unit locations come in, check them all in memory.  The application would not have a display, and would run in the background and if a unit falls inside of the area of interest, it would send a message via our message bus. Questions:

  1. Can I have a Qt application utilizing the Qt Runtime with no display
  2. Can I pull a layer from the ArcGIS server on startup and load it into memory for query
0 Kudos
2 Replies
Rasmus_BloustrødLind
New Contributor II

Hey Mauricio

To load a featurelayer in a QT app in gml code  use:

            FeatureLayer{
                id: featureLayer
                ServiceFeatureTable{
                    url: featureServiceURL
                }
            }

this has to be loaded inside a mapview though. But if you do not add a Map {} part to the code there will not be displayed a map

after this the featurelayer should be able to be call on the id 

hope this can help 

best 

rasmus bloustrød lind

0 Kudos
MauricioRamirez1
New Contributor

Rasmus,

Thanks for the quick reply.  I will definitely give that a try.

0 Kudos