<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Query Feature Layer / Create Layer from Shapefile in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380954#M1906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to follow up, with the local dynamic map service, you should be able to do definition expression. Here is how you would go about it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Create a local map service&lt;/P&gt;&lt;P&gt;- enable dynamic layers on it - &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_local_map_service.html#af2dca9de67deb55f46a843f7919a5598" title="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_local_map_service.html#af2dca9de67deb55f46a843f7919a5598"&gt;ArcGIS Runtime SDK for Qt C++ API: EsriRuntimeQt::LocalMapService Class Reference&lt;/A&gt; &lt;/P&gt;&lt;P&gt;- Once the service is started and the layer is loaded, obtain the dynamic layer infos from the layer&lt;/P&gt;&lt;P&gt;- obtain the dynamic layer info for the associated layer you are working with&lt;/P&gt;&lt;P&gt;- set the definition expression on the applicable dynamic layer info - &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_layer_info.html#a8b4ab81ca398c213d40664c260d12bdb" title="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_layer_info.html#a8b4ab81ca398c213d40664c260d12bdb"&gt;ArcGIS Runtime SDK for Qt C++ API: EsriRuntimeQt::LayerInfo Class Reference&lt;/A&gt; &lt;/P&gt;&lt;P&gt;- refresh the layer - &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_arc_g_i_s_dynamic_map_service_layer.html#afdc66592aa4326a76d3c0e687d56cb4f" title="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_arc_g_i_s_dynamic_map_service_layer.html#afdc66592aa4326a76d3c0e687d56cb4f"&gt;ArcGIS Runtime SDK for Qt C++ API: EsriRuntimeQt::ArcGISDynamicMapServiceLayer Class Reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work for you. Like I said, the workflow is a bit long right now, but we will soon have native support for shapefiles, and it should be very straightforward to do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Luke&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 23:52:42 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2016-04-14T23:52:42Z</dc:date>
    <item>
      <title>Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380944#M1896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to use the runtime sdk to load a shapefile and dynamically change the geometry shown by querying the attribute table. I created an EsriRuntimeQt::LocalFeatureService for an "empty" mpk file and added the Shapefile using the approach from QtSampleApplication_10.2.6_win64 to a &lt;SPAN style="color: #800080;"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;. Then I created a local Feature service (pointing to the same mpk-file) and created a FeatureLayer in the slot called on layerCreateComplete().&lt;/P&gt;&lt;P&gt;But creating a FeatureLayer in this method like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;m_featureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;EsriRuntimeQt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;ArcGISFeatureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;m_dynamicLocalServiceLayer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #000000;"&gt;url&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;()+&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"/0"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;m_featureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;setOperationMode&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;EsriRuntimeQt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;QueryMode&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;SelectionOnly&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;m_map&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;addLayer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;m_featureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;connect&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;m_featureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;SIGNAL&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;layerCreateComplete&lt;SPAN style="color: #000000;"&gt;()),&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;SLOT&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;onFeatureLayerCreateComplete&lt;SPAN style="color: #000000;"&gt;()));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;connect&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;m_featureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;SIGNAL&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;layerCreateError&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;QString&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;SLOT&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;onFeatureLayerCreateError&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;QString&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;fails. None of the slots above is called.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;What am I missing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 12:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380944#M1896</guid>
      <dc:creator>DanielBachmann1</dc:creator>
      <dc:date>2016-04-12T12:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380945#M1897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Created the mpk-File offline in ArcMap and the FeatureLayer shows up.&lt;/P&gt;&lt;P&gt;!!!But it is extremely slow!!!&lt;/P&gt;&lt;P&gt;Layer has 900 Polylines with about 1000 points each so the raw geometry is about 7MB of raw geometrie data (shp is 11MB). But the FeatureLayer uses nearly 2GB of RAM and renders really slow.&lt;/P&gt;&lt;P&gt;Realtime queries on the data seam to be impossible. &lt;STRONG&gt;Is this expected behaviour? Or is it just the wrong way to online change the number of features shown in a layer?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 16:43:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380945#M1897</guid>
      <dc:creator>DanielBachmann1</dc:creator>
      <dc:date>2016-04-12T16:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380946#M1898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something doesn't sound right. Are you trying to make an ArcGISDynamicMapServiceLayer, or ArcGISFeatureLayer? The dynamic layer should be much faster, but I see your code is for ArcGIS Feature Layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 16:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380946#M1898</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2016-04-12T16:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380947#M1899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use a ArcGISDynamicMapServiceLayer it is much faster. But I was not able to restrict the number of features drawn from that layer, is this possible?. I'm new to the runtimeAPI, so I most likely missed something...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380947#M1899</guid>
      <dc:creator>DanielBachmann1</dc:creator>
      <dc:date>2016-04-12T17:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380948#M1900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think ArcGISDynamicLayers can restrict or limited the number of features return like ArcGISFeaturelayer. Dynamic Layer is more useful to dynamically change layer appearance and behavior in your map service. Determining which layers will appear in a map, layer symbology, layer order and position, labeling, and more, can be achieved on the server through the use of dynamic layers. In this way, dynamic layers can increase the amount of interaction that users are able to have with your maps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to use definitionExpression to limit the features return from ArcGISFeaturelayer first? &lt;A href="https://developers.arcgis.com/qt/qml/api-reference/class_arc_g_i_s_feature_layer.html#afe95ab8bb0918756c1476c80ffb61aac" title="https://developers.arcgis.com/qt/qml/api-reference/class_arc_g_i_s_feature_layer.html#afe95ab8bb0918756c1476c80ffb61aac"&gt;ArcGIS Runtime SDK for Qt QML API: ArcGISFeatureLayer Class Reference&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Then you can debug that event handle to see why that SLOT is not calling. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:57:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380948#M1900</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-04-12T17:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380949#M1901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I will not be able to dynamically query Feature-Layers of that size with the runtime SDK?&lt;/P&gt;&lt;P&gt;All possible subsets of the Feature-Layer should be drawable... But creating the Featurelayer and showing all Features needs approx. 3 to 5 Minutes to finish on my i7 (in ReleaseMode) and as mentioned earlier uses 2gb of main memory and this is a rather small dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 21:11:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380949#M1901</guid>
      <dc:creator>DanielBachmann1</dc:creator>
      <dc:date>2016-04-12T21:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380950#M1902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What specifically do you want to do? What do you mean by dynamically query? In general, ArcGISDynamicMapServiceLayer will be better for performance than the Feature Layer, because it is sending back dynamically generated images, versus complex geometries and symbols. If you need to only show features that match some given query, then you will need to use a FeatureLayer. If you can upload some sample code/project and data, that would be helpful too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 22:31:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380950#M1902</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2016-04-12T22:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380951#M1903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The layer consists of polylines which should be first shown completely. The number of polylines to show should then be limited by querying the associated attribute table. You can think of a slider which is used to restrict the maximum allowed value of one attribute resulting in a subset of "valid" features.&lt;/P&gt;&lt;P&gt;May be this is only achieved with the ArcObjects SDK directly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 18:05:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380951#M1903</guid>
      <dc:creator>DanielBachmann1</dc:creator>
      <dc:date>2016-04-13T18:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380952#M1904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this similar concept in JavaScript &lt;A href="https://developers.arcgis.com/javascript/jssamples/layers_raster.html" title="https://developers.arcgis.com/javascript/jssamples/layers_raster.html"&gt;Raster layer slider | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;You should able to do this in RuntimeQt as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 20:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380952#M1904</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-04-13T20:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380953#M1905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;Hi Daniel,&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;You have a few options. The first is ArcGISDynamicMapServiceLayer, and that will give better performance, but applying a definition expression is the tricky part. If the service supports dynamic layers, then you could get the dynamic layer info, and set definition expression here - &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_layer_info.html#a8b4ab81ca398c213d40664c260d12bdb" style="color: #3778c7 !important;"&gt;https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_layer_info.html#a8b4ab81ca398c213d40664c260d12bdb&lt;/A&gt;. I am trying to confirm if you can turn on dynamic layer info support or not with local services right now… I will get back to you on that.&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;Otherwise, you could also go the feature layer route, but it sounds like you are having some performance issues. I would try a few things for this:&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;- Set max allowable offset, to generalize the geometries - &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_arc_g_i_s_feature_layer.html#a469e95cddb9da4842e4a24055bdbc3a4" title="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_arc_g_i_s_feature_layer.html#a469e95cddb9da4842e4a24055bdbc3a4"&gt;ArcGIS Runtime SDK for Qt C++ API: EsriRuntimeQt::ArcGISFeatureLayer Class Reference&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;- Limit the out fields to only what you need - &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_arc_g_i_s_feature_layer.html#af5561ef6af66e535c9c35f1106e5f1d0" title="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_arc_g_i_s_feature_layer.html#af5561ef6af66e535c9c35f1106e5f1d0"&gt;ArcGIS Runtime SDK for Qt C++ API: EsriRuntimeQt::ArcGISFeatureLayer Class Reference&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;- Instead of ArcGISFeatureLayer, try using the GeodatabaseFeatureServiceTable and the FeatureLayer&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;We will soon have native support for shapefiles, so you don't need to spin up local server at all for this. It should be a very simple and straight forward way for you to do this with our upcoming release, but for now, there are unfortunately a few hoops to jump through.&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;Hope this helps.&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri, sans-serif; font-size: 14px;"&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 20:42:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380953#M1905</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2016-04-13T20:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380954#M1906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to follow up, with the local dynamic map service, you should be able to do definition expression. Here is how you would go about it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Create a local map service&lt;/P&gt;&lt;P&gt;- enable dynamic layers on it - &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_local_map_service.html#af2dca9de67deb55f46a843f7919a5598" title="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_local_map_service.html#af2dca9de67deb55f46a843f7919a5598"&gt;ArcGIS Runtime SDK for Qt C++ API: EsriRuntimeQt::LocalMapService Class Reference&lt;/A&gt; &lt;/P&gt;&lt;P&gt;- Once the service is started and the layer is loaded, obtain the dynamic layer infos from the layer&lt;/P&gt;&lt;P&gt;- obtain the dynamic layer info for the associated layer you are working with&lt;/P&gt;&lt;P&gt;- set the definition expression on the applicable dynamic layer info - &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_layer_info.html#a8b4ab81ca398c213d40664c260d12bdb" title="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_layer_info.html#a8b4ab81ca398c213d40664c260d12bdb"&gt;ArcGIS Runtime SDK for Qt C++ API: EsriRuntimeQt::LayerInfo Class Reference&lt;/A&gt; &lt;/P&gt;&lt;P&gt;- refresh the layer - &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_arc_g_i_s_dynamic_map_service_layer.html#afdc66592aa4326a76d3c0e687d56cb4f" title="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_arc_g_i_s_dynamic_map_service_layer.html#afdc66592aa4326a76d3c0e687d56cb4f"&gt;ArcGIS Runtime SDK for Qt C++ API: EsriRuntimeQt::ArcGISDynamicMapServiceLayer Class Reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work for you. Like I said, the workflow is a bit long right now, but we will soon have native support for shapefiles, and it should be very straightforward to do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Luke&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 23:52:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380954#M1906</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2016-04-14T23:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380955#M1907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works perfect. Thanks a lot! As long as the performance is acceptabe, the length of the workflow is no concern.&lt;/P&gt;&lt;P&gt;Do you know when native support for shapefiles will be available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 16:25:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380955#M1907</guid>
      <dc:creator>DanielBachmann1</dc:creator>
      <dc:date>2016-04-15T16:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380956#M1908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, great! We plan on releasing Quartz final around Q3 of this year. Shapefile support will not make it into that release, so it'll be in our first update, which we are planning for 3-4 months after, so end of this year/beginning of next.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 17:46:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380956#M1908</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2016-04-15T17:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380957#M1909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to the SDK.&lt;/P&gt;&lt;P&gt;At this point in time we have Qt SDK &lt;STRONG&gt;10.2.6&lt;/STRONG&gt; and &lt;STRONG&gt;100.0.0&lt;/STRONG&gt; available for download, and I'm not sure what Quartz refers to.&lt;/P&gt;&lt;P&gt;I need to import &lt;STRONG&gt;shapefiles&lt;/STRONG&gt; using either the &lt;STRONG&gt;QML&lt;/STRONG&gt; or &lt;STRONG&gt;C++&lt;/STRONG&gt; API, but I'm having difficulty finding documentation on how to do that.&lt;/P&gt;&lt;P&gt;What is the best method currently supported at this point?&lt;/P&gt;&lt;P&gt;Can you direct me to some examples?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 16:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380957#M1909</guid>
      <dc:creator>EricPflaum</dc:creator>
      <dc:date>2016-12-09T16:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Query Feature Layer / Create Layer from Shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380958#M1910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Quartz" was the codename for our 100.0 release. This is the new generation of Runtime SDKs from Esri. The 100.0 release does not yet have support for shapefiles. However, our 10.2.6 release does have a way you can view shapefiles -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/10-2/cpp/sample-code/local_shapefile_sample.htm" title="https://developers.arcgis.com/qt/10-2/cpp/sample-code/local_shapefile_sample.htm"&gt;ArcGIS for Developers | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an upcoming update of Runtime 100, we will have native support for shapefiles and it will be very easy to read and query them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 20:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/query-feature-layer-create-layer-from-shapefile/m-p/380958#M1910</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2016-12-09T20:47:23Z</dc:date>
    </item>
  </channel>
</rss>

