<?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: generate kml in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/generate-kml/m-p/681787#M3325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am really hoping someone can help me?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have my mapservice in arccatalog with kml web access for single, separate, and vector images. Capability mode is google earth.&amp;nbsp; If I use the URL given: &lt;/SPAN&gt;&lt;A href="http://server/arcgis/services/folder/MapServer/KmlServer...I"&gt;http://server/arcgis/services/folder/MapServer/KmlServer...I&lt;/A&gt;&lt;SPAN&gt; get "Page cannot be found" in both Mozilla and IE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas what I am doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2011 17:55:14 GMT</pubDate>
    <dc:creator>LisaT</dc:creator>
    <dc:date>2011-07-14T17:55:14Z</dc:date>
    <item>
      <title>generate kml</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/generate-kml/m-p/681785#M3323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I am trying to export a kml using the javascript REST api.&amp;nbsp; I see in the documentation that there is a "generateKml" operation (see: &lt;/SPAN&gt;&lt;A href="http://atlas.resources.ca.gov/ArcGIS/SDK/REST/mapserver.html"&gt;http://atlas.resources.ca.gov/ArcGIS/SDK/REST/mapserver.html&lt;/A&gt;&lt;SPAN&gt;) however it does not seem to be available.&amp;nbsp; I am getting an error: "generateKml is not a function".&amp;nbsp; If I look at it in firebug, I see available methods "exportMap" and "queryLayer", but no "generateKml". Does anyone know what I may be doing wrong?&amp;nbsp; We have the most current API downloaded.&amp;nbsp; How can I export a kml via the rest api?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following working...kinda:&amp;nbsp; //myServer/ArcGIS/rest/services/myService/MapServer/generatekml?docName=Test+Name&amp;amp;layers=1,2&amp;amp;layerOptions=separateImage&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This creates a KML with a big red X in the correct location in google earth.&amp;nbsp; So, it seems to be doing something right, just not displaying the image correctly.&amp;nbsp; If I use the URL above with "nonComposite" (vector) as a parameter, I get no image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//myServer/ArcGIS/rest/services/myService/MapServer/kml/mapImage.kmz seems to work, but I need a vector representation instead of one large image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I guess the question has changed to: how can I export a vector KML?&amp;nbsp; And/or how do I use "generateKml" ??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 19:30:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/generate-kml/m-p/681785#M3323</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2011-07-11T19:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: generate kml</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/generate-kml/m-p/681786#M3324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was unable to get this to work reliably.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wound up using an external java library.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I bonus I got much more control over my results.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 12:21:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/generate-kml/m-p/681786#M3324</guid>
      <dc:creator>ar4</dc:creator>
      <dc:date>2011-07-12T12:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: generate kml</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/generate-kml/m-p/681787#M3325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am really hoping someone can help me?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have my mapservice in arccatalog with kml web access for single, separate, and vector images. Capability mode is google earth.&amp;nbsp; If I use the URL given: &lt;/SPAN&gt;&lt;A href="http://server/arcgis/services/folder/MapServer/KmlServer...I"&gt;http://server/arcgis/services/folder/MapServer/KmlServer...I&lt;/A&gt;&lt;SPAN&gt; get "Page cannot be found" in both Mozilla and IE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas what I am doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 17:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/generate-kml/m-p/681787#M3325</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2011-07-14T17:55:14Z</dc:date>
    </item>
  </channel>
</rss>

