<?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 show esri shapefile on top of a map using arcgis javascript api in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3658#M313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is no direct way.&amp;nbsp; You will have to either script or convert the data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2012 14:04:00 GMT</pubDate>
    <dc:creator>JeffPace</dc:creator>
    <dc:date>2012-04-04T14:04:00Z</dc:date>
    <item>
      <title>How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3650#M305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please advise me how to upload a esri shapefile and show it on top of a map using arcgis javascript api. I ve seen this doing using silverlight api and esrcontrib. Is ther anything like this available for esri javascript api.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Mar 2012 07:59:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3650#M305</guid>
      <dc:creator>SolidSmoke</dc:creator>
      <dc:date>2012-03-24T07:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3651#M306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Upload your &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisonline/help/index.html#//010q000000m6000000"&gt;shapefile to ArcGIS.com&lt;/A&gt;&lt;SPAN&gt;, save your webmap and create your &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/ags_createwebmapid.html"&gt;JS API map from the ArcGIS.com webmap&lt;/A&gt;&lt;SPAN&gt; that uses your shapefile.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2012 16:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3651#M306</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-03-25T16:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3652#M307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My client wants a Geospatial web application in which they need a facility to upload their shape file and view the same on top of map. So uploading the shapefile in ArcGIS.com will not work in my case. So please advise me how I can create the same functionality of ArcGIS.com using ArcGIS api for javascript.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 06:12:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3652#M307</guid>
      <dc:creator>SolidSmoke</dc:creator>
      <dc:date>2012-03-26T06:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3653#M308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My client wants a Geospatial web application in which they need a facility to upload their shape file and view the same on top of map. So uploading the shapefile in ArcGIS.com will not work in my case. So please advise me how I can create the same functionality of ArcGIS.com using ArcGIS api for javascript.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I know this is not possible.&amp;nbsp; If it were, you would not need to purchase ArcGIS Server licenses.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 14:22:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3653#M308</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-03-26T14:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3654#M309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at this library: &lt;/SPAN&gt;&lt;A href="http://badassjs.com/post/845509816/r...ith-javascript"&gt;http://badassjs.com/post/845509816/r...ith-javascript&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and the HTML5 CSV drag and drop example: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Combining the two together can provide you with the solution you need. Of course this assuming that you can use HTML5 in you're development. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issues you'll find later: IE&amp;nbsp; - you're going to need a different solution as it doesn't support the file API, Safari will require a file input control as they don't support drag and drop, your going to be limited to newer browsers with html5 support, and your code will need to be written to support asynchronous file loading as you will need to wait for the dbf and shp files to both be loaded.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 18:55:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3654#M309</guid>
      <dc:creator>JamesVillanueva</dc:creator>
      <dc:date>2012-03-26T18:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3655#M310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Along similar lines to James's approach, you could &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/2223979/convert-a-shapefile-shp-to-xml-json"&gt;convert the shapefile to JSON&lt;/A&gt;&lt;SPAN&gt; then create a feature layer from the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/fl_featurecollection.html"&gt;feature collection&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 03:52:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3655#M310</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-03-27T03:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3656#M311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Solid Smoke,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you ever find a solution for adding shapefiles using javascript api??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Swapna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 12:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3656#M311</guid>
      <dc:creator>SwapnaGogineni1</dc:creator>
      <dc:date>2012-04-04T12:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3657#M312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Solid Smoke,&lt;BR /&gt;&lt;BR /&gt;Did you ever find a solution for adding shapefiles using javascript api??&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;-Swapna&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One approach i would give a try is to develop a GP tool where you could upload the shape file to a featurelayer on a map service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 13:39:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3657#M312</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2012-04-04T13:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3658#M313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is no direct way.&amp;nbsp; You will have to either script or convert the data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 14:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3658#M313</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-04-04T14:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3659#M314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It can be done.&amp;nbsp; It would be easier as json/geojson/csv, but it is doable.&amp;nbsp; Here is a library that was written in js to do it:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://github.com/RandomEtc/shapefile-js"&gt;https://github.com/RandomEtc/shapefile-js&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, you are going to have to read it and make graphics from the data in the shapefile.&amp;nbsp; It may run a little slowly and will probably cause issues in IE if it is not fast enough since the javascript engine does not have the performance of the other browsers.&amp;nbsp; Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 14:12:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3659#M314</guid>
      <dc:creator>Charles__Jamie_Phillips</dc:creator>
      <dc:date>2012-04-04T14:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3660#M315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It can be done.&amp;nbsp; It would be easier as json/geojson/csv, but it is doable.&amp;nbsp; Here is a library that was written in js to do it:&amp;nbsp; &lt;A href="https://github.com/RandomEtc/shapefile-js"&gt;https://github.com/RandomEtc/shapefile-js&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Basically, you are going to have to read it and make graphics from the data in the shapefile.&amp;nbsp; It may run a little slowly and will probably cause issues in IE if it is not fast enough since the javascript engine does not have the performance of the other browsers.&amp;nbsp; Hope this helps.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have done a POC for my potenial projects. I ran a GP to append a uploaded shape file to an existing feature layer in a map service where the GP layer is also located. You are looking similiar approach except you might have to truncate the featurelayer before upload the shape file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 18:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3660#M315</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2012-04-04T18:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3661#M316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can use esri.request and use api arcgis portal&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;see sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/portal_addshapefile.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/portal_addshapefile.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 09:13:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3661#M316</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2012-05-29T09:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3662#M317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heming&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realize this post is very old now, but I am trying to append a shapefile to an existing feature layer also. Can you give me some more information on how you did that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Emily&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 00:42:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3662#M317</guid>
      <dc:creator>San_DiegoManagement___Monitori</dc:creator>
      <dc:date>2016-08-24T00:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to show esri shapefile on top of a map using arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3663#M318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;an another option is to create a geoprocessing service on your Server to do it.&lt;/P&gt;&lt;P&gt;The script will have as input parameter zip file with the Shapefile contents.&lt;/P&gt;&lt;P&gt;the input zip will extracted and then you can load the data on a feature class.&lt;/P&gt;&lt;P&gt;The feature class will be output parameter in order to take the shapefile data as graphics using javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is a code example for&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#extract the zip&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;zf = zipfile.ZipFile(inShpZip)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FeaturesPath = arcpy.env.scratchFolder + "/zipSHPExtract"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; zf.extractall(FeaturesPath)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; #find the shp&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; shpFilesFromZip = glob.glob(FeaturesPath + "/*.shp")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#copy Features&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;outFeatures = arcpy.env.scratchGDB + "/outFeatures1"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; arcpy.CopyFeatures_management(shpFilesFromZip[0], outFeatures)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 07:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-show-esri-shapefile-on-top-of-a-map-using/m-p/3663#M318</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2016-08-24T07:44:41Z</dc:date>
    </item>
  </channel>
</rss>

