<?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: Adding GeoJSON to Leaflet in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834532#M182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WGS84 coordinates are always:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;180 &amp;gt; X &amp;gt; -180 (longitude)&lt;/P&gt;&lt;P&gt;90 &amp;gt; Y &amp;gt; -90 (latitude).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your feature collection looks to be mislabeled Web Mercator northings and eastings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Aug 2018 17:34:24 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2018-08-31T17:34:24Z</dc:date>
    <item>
      <title>Adding GeoJSON to Leaflet</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834529#M179</link>
      <description>&lt;P&gt;Here's a demo of 2 ways to add GeoJSON to a Leaflet web map: &lt;A title="http://codepen.io/pmckinney/pen/mELyNY" href="http://codepen.io/pmckinney/pen/mELyNY" target="_blank"&gt;http://codepen.io/pmckinney/pen/mELyNY&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know there is also the &lt;A href="https://github.com/calvinmetcalf/leaflet-ajax" target="_blank"&gt;Leaflet-AJAX plugin&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you're interested in converting a shapefile or feature class to GeoJSON, check out the &lt;A href="https://github.com/CityOfPhiladelphia/arc-open" target="_blank"&gt;City of Philadelphia's ArcToolbox&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know why the output of the ArcGIS Desktop JSON conversion tool does not work in Leaflet?&amp;nbsp; I've always wondered what was going on with this.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834529#M179</guid>
      <dc:creator>PatrickMcKinney1</dc:creator>
      <dc:date>2023-08-28T13:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding GeoJSON to Leaflet</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834530#M180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;output from ArcMap's 'Features to JSON' tool won't work because its not GeoJSON, its Esri's own Geoservices JSON.&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/conversion-toolbox/features-to-json.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/conversion-toolbox/features-to-json.htm"&gt;http://desktop.arcgis.com/en/arcmap/10.3/tools/conversion-toolbox/features-to-json.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ArcGIS Pro, we've added an optional parameter to the tool for generating GeoJSON&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/conversion/features-to-json.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/conversion/features-to-json.htm"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/conversion/features-to-json.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS REST API - Feature JSON documentation&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Feature_object/02r3000000n8000000/" title="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Feature_object/02r3000000n8000000/"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Feature_object/02r3000000n8000000/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoJSON and Esri JSON side by side&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/jgravois/d20efcec5043c9a6ad67" title="https://gist.github.com/jgravois/d20efcec5043c9a6ad67"&gt;example of geojson · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/jgravois/eab035258f8157d54618" title="https://gist.github.com/jgravois/eab035258f8157d54618"&gt;example of geoservices json · GitHub&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 03:49:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834530#M180</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2016-07-27T03:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding GeoJSON to Leaflet</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834531#M181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I export geojson in wgs84 or not using this tool. It is not usable in Leaflet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The coordinates are not in a format usable by Leaflet.&amp;nbsp; How do I get them to the correct format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "type" : "FeatureCollection",&lt;BR /&gt; "crs" : {&lt;BR /&gt; "type" : "name",&lt;BR /&gt; "properties" : {&lt;BR /&gt; "name" : "EPSG:4326"&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; "features" : [&lt;BR /&gt; {&lt;BR /&gt; "type" : "Feature",&lt;BR /&gt; "id" : 1,&lt;BR /&gt; "geometry" : {&lt;BR /&gt; "type" : "Polygon",&lt;BR /&gt; "coordinates" : [&lt;BR /&gt; [&lt;BR /&gt; [&lt;BR /&gt; -10915535.083699999,&lt;BR /&gt; 3895736.6819000021&lt;BR /&gt; ],&lt;BR /&gt; [&lt;BR /&gt; -10915557.3475,&lt;BR /&gt; 3895736.6819000021&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2018 16:43:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834531#M181</guid>
      <dc:creator>PaulBrown</dc:creator>
      <dc:date>2018-08-31T16:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding GeoJSON to Leaflet</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834532#M182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WGS84 coordinates are always:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;180 &amp;gt; X &amp;gt; -180 (longitude)&lt;/P&gt;&lt;P&gt;90 &amp;gt; Y &amp;gt; -90 (latitude).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your feature collection looks to be mislabeled Web Mercator northings and eastings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2018 17:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834532#M182</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2018-08-31T17:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding GeoJSON to Leaflet</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834533#M183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is how Pro created the GEO JSON.&amp;nbsp; Even though it says it is supposed to be WGS84, it is Web Mercator.&amp;nbsp; Ended up projecting the feature class to WGS84 and then telling it to use the original SR.&amp;nbsp; I think this might be a bug or something in Pro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2018 21:49:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834533#M183</guid>
      <dc:creator>PaulBrown</dc:creator>
      <dc:date>2018-08-31T21:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding GeoJSON to Leaflet</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834534#M184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/20289"&gt;Paul Brown&lt;/A&gt;‌, while I can't speak to what's going on with ArcGIS Pro, you could check out the &lt;A href="https://github.com/CityOfPhiladelphia/arc-open"&gt;Arc Open Tool&lt;/A&gt;&amp;nbsp;to convert shapefiles/feature classes to GeoJSON using ArcGIS Desktop (ArcMap/Catalog).&amp;nbsp; Maybe you can use this tool while you await resolution with the ArcGIS Pro stuff?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 16:02:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834534#M184</guid>
      <dc:creator>PatrickMcKinney1</dc:creator>
      <dc:date>2018-09-04T16:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding GeoJSON to Leaflet</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834535#M185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I reproed the error you're reporting in ArcGIS Pro 2.2.2 and forwarded on the report to the appropriate team. Sorry for the inconvenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="margin-bottom: 0in; color: #000000; text-indent: 0px; text-decoration: none; margin-top: 0in;"&gt;&lt;LI style="margin: 0in 0in 0.0001pt; font-size: 12pt;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;Create a wkid:3857 feature class and add a few points to it.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin: 0in 0in 0.0001pt; font-size: 12pt;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;Open the ‘Features to JSON’ tool. Check the ‘Output to GeoJSON’ and ‘Project to WGS_1984’.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin: 0in 0in 0.0001pt; font-size: 12pt;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;Inspect the output file in a text editor. The CRS is labeled as “EPSG:4326” but the coordinates are still northings and eastings.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 18:22:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-geojson-to-leaflet/m-p/834535#M185</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2018-09-26T18:22:26Z</dc:date>
    </item>
  </channel>
</rss>

