<?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 URL Assert statements in /layers/_ogc/_service.py in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/url-assert-statements-in-layers-ogc-service-py/m-p/1581030#M11116</link>
    <description>&lt;P&gt;In&amp;nbsp;/layers/_ogc/_service.py there are two assert statements that control the format of the URL used to create the OGCFeatureService and OGCCollection. It requires "ogcfeatureserver" to be in the URL, and for the URL to end with a digit.&lt;/P&gt;&lt;P&gt;What's the purpose of these assert statements? The OGC Spec does not specify the URL format. Is this only meant to be used with ESRI hosted services?&lt;/P&gt;&lt;P&gt;They can be bypassed by running python with the optimized flag (-O).&amp;nbsp;&lt;/P&gt;&lt;P&gt;version 24.4.0.1&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2025 21:29:21 GMT</pubDate>
    <dc:creator>jake_ell</dc:creator>
    <dc:date>2025-01-31T21:29:21Z</dc:date>
    <item>
      <title>URL Assert statements in /layers/_ogc/_service.py</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/url-assert-statements-in-layers-ogc-service-py/m-p/1581030#M11116</link>
      <description>&lt;P&gt;In&amp;nbsp;/layers/_ogc/_service.py there are two assert statements that control the format of the URL used to create the OGCFeatureService and OGCCollection. It requires "ogcfeatureserver" to be in the URL, and for the URL to end with a digit.&lt;/P&gt;&lt;P&gt;What's the purpose of these assert statements? The OGC Spec does not specify the URL format. Is this only meant to be used with ESRI hosted services?&lt;/P&gt;&lt;P&gt;They can be bypassed by running python with the optimized flag (-O).&amp;nbsp;&lt;/P&gt;&lt;P&gt;version 24.4.0.1&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 21:29:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/url-assert-statements-in-layers-ogc-service-py/m-p/1581030#M11116</guid>
      <dc:creator>jake_ell</dc:creator>
      <dc:date>2025-01-31T21:29:21Z</dc:date>
    </item>
  </channel>
</rss>

