<?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 Scale Dependent Query Layer Parameter? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/scale-dependent-query-layer-parameter/m-p/104558#M4261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with a PostgreSQL database that already&amp;nbsp;has some Levels of Detail created, returned by stored procedure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the data, I use query layers like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT id, geometry, name, name_en, name_de,&amp;nbsp; class, iata, icao, ele, ele_ft FROM layer_air(::bbox, ::z)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where bbox&amp;nbsp;is bounds ( a geometry) and z is a zoom level from 0 to 14.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First thing I notice is that ArcGIS PRO will not tolerate parameters as arguments in function calls.&lt;/P&gt;&lt;P&gt;So I would have to hardcode them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next thing I noticed: Even if I want to hard code the&amp;nbsp;bbox as being the World, I can't do it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find no way of expressing a constant value inside the parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can't handle putting another function call like ST_GeomFromText( ) and using that as a parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have to wrap these stored procedures in stored procedures of my own and instead call such functions inside the database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I come to specifying zoom level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This means I would have to create up to 15 query layers for each layer (ie layer_air(0).&amp;nbsp; .&amp;nbsp;. . layer(14)&lt;/P&gt;&lt;P&gt;Then I would have to configure the out beyond and in beyond zoom levels to be [..0) [0..1)&amp;nbsp; &amp;nbsp; [13..14) [14...).&lt;/P&gt;&lt;P&gt;Then style each of the 15 layers even if I might otherwise style them the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then Highlight the important attributes for preservation in vector tile creation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means in total I will handle 225 layers instead of 15.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wondering if there is any way to shortcut this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This article mentions range and time parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;No scale based parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/data/query-layers/define-parameters-in-a-query-layer.htm#ESRI_SECTION1_D459C169B90248959E6819F8658A9064" title="https://pro.arcgis.com/en/pro-app/help/data/query-layers/define-parameters-in-a-query-layer.htm#ESRI_SECTION1_D459C169B90248959E6819F8658A9064"&gt;Define parameters in a query layer—Query layers | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jan 2018 18:25:48 GMT</pubDate>
    <dc:creator>NathanMellor</dc:creator>
    <dc:date>2018-01-30T18:25:48Z</dc:date>
    <item>
      <title>Scale Dependent Query Layer Parameter?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scale-dependent-query-layer-parameter/m-p/104558#M4261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with a PostgreSQL database that already&amp;nbsp;has some Levels of Detail created, returned by stored procedure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the data, I use query layers like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT id, geometry, name, name_en, name_de,&amp;nbsp; class, iata, icao, ele, ele_ft FROM layer_air(::bbox, ::z)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where bbox&amp;nbsp;is bounds ( a geometry) and z is a zoom level from 0 to 14.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First thing I notice is that ArcGIS PRO will not tolerate parameters as arguments in function calls.&lt;/P&gt;&lt;P&gt;So I would have to hardcode them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next thing I noticed: Even if I want to hard code the&amp;nbsp;bbox as being the World, I can't do it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find no way of expressing a constant value inside the parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can't handle putting another function call like ST_GeomFromText( ) and using that as a parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have to wrap these stored procedures in stored procedures of my own and instead call such functions inside the database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I come to specifying zoom level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This means I would have to create up to 15 query layers for each layer (ie layer_air(0).&amp;nbsp; .&amp;nbsp;. . layer(14)&lt;/P&gt;&lt;P&gt;Then I would have to configure the out beyond and in beyond zoom levels to be [..0) [0..1)&amp;nbsp; &amp;nbsp; [13..14) [14...).&lt;/P&gt;&lt;P&gt;Then style each of the 15 layers even if I might otherwise style them the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then Highlight the important attributes for preservation in vector tile creation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means in total I will handle 225 layers instead of 15.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wondering if there is any way to shortcut this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This article mentions range and time parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;No scale based parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/data/query-layers/define-parameters-in-a-query-layer.htm#ESRI_SECTION1_D459C169B90248959E6819F8658A9064" title="https://pro.arcgis.com/en/pro-app/help/data/query-layers/define-parameters-in-a-query-layer.htm#ESRI_SECTION1_D459C169B90248959E6819F8658A9064"&gt;Define parameters in a query layer—Query layers | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 18:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scale-dependent-query-layer-parameter/m-p/104558#M4261</guid>
      <dc:creator>NathanMellor</dc:creator>
      <dc:date>2018-01-30T18:25:48Z</dc:date>
    </item>
  </channel>
</rss>

