<?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: How to access map service layer in Python toolbox? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-access-map-service-layer-in-python-toolbox/m-p/315403#M24544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rami, I believe this previous question is very close to yours and you should be able to find the answer here: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/8414-ArcGIS-10-user-python-arcpy-to-add-a-WMS-Service?p=391096#post391096"&gt;http://forums.arcgis.com/threads/8414-ArcGIS-10-user-python-arcpy-to-add-a-WMS-Service?p=391096#post391096&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 15:36:44 GMT</pubDate>
    <dc:creator>AdamCox1</dc:creator>
    <dc:date>2014-06-02T15:36:44Z</dc:date>
    <item>
      <title>How to access map service layer in Python toolbox?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-access-map-service-layer-in-python-toolbox/m-p/315402#M24543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a URL of a map service layer. How I can access this layer URL from python toolbox. (i.e create featureset from the layer URL).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 07:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-access-map-service-layer-in-python-toolbox/m-p/315402#M24543</guid>
      <dc:creator>RamiGhaly1</dc:creator>
      <dc:date>2014-06-02T07:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to access map service layer in Python toolbox?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-access-map-service-layer-in-python-toolbox/m-p/315403#M24544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rami, I believe this previous question is very close to yours and you should be able to find the answer here: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/8414-ArcGIS-10-user-python-arcpy-to-add-a-WMS-Service?p=391096#post391096"&gt;http://forums.arcgis.com/threads/8414-ArcGIS-10-user-python-arcpy-to-add-a-WMS-Service?p=391096#post391096&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 15:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-access-map-service-layer-in-python-toolbox/m-p/315403#M24544</guid>
      <dc:creator>AdamCox1</dc:creator>
      <dc:date>2014-06-02T15:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to access map service layer in Python toolbox?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-access-map-service-layer-in-python-toolbox/m-p/315404#M24545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;I got this snippet from a friend. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;I didn't try it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;*********************************************************************************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;import&lt;/SPAN&gt;&lt;/CODE&gt; &lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;arcpy&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;# Modify the following variables:&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;# URL to your service, where clause, fields and token if applicable&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;baseURL=&lt;/SPAN&gt;&lt;/CODE&gt; &lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/FeatureServer/1/query"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/FeatureServer/1/query&lt;/A&gt;"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;where =&lt;/SPAN&gt;&lt;/CODE&gt; &lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'1=1'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;fields ='apn, address, pool_permit'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;token =&lt;/SPAN&gt;&lt;/CODE&gt; &lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;''&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;#The above variables construct the query&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;query =&lt;/SPAN&gt;&lt;/CODE&gt; &lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"?where={}&amp;amp;outFields={}&amp;amp;returnGeometry=true&amp;amp;f=json&amp;amp;token={}".format(where, fields, token)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;# See &lt;A href="http://services1.arcgis.com/help/index.html?fsQuery.html"&gt;http://services1.arcgis.com/help/index.html?fsQuery.html&lt;/A&gt; for more info on FS-Query&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;fsURL =&lt;/SPAN&gt;&lt;/CODE&gt; &lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;baseURL +&lt;/SPAN&gt;&lt;/CODE&gt; &lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;query&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;fs =&lt;/SPAN&gt;&lt;/CODE&gt; &lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;arcpy.FeatureSet()&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;fs.load(fsURL)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;arcpy.CopyFeatures_management(fs, r"c:\local\data.gdb\permits")&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;**********************************************************************************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Rami&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 14:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-access-map-service-layer-in-python-toolbox/m-p/315404#M24545</guid>
      <dc:creator>RamiGhali2</dc:creator>
      <dc:date>2015-04-07T14:56:48Z</dc:date>
    </item>
  </channel>
</rss>

