<?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 Importing CSV File with special spatial reference in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/importing-csv-file-with-special-spatial-reference/m-p/533146#M49709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have a little problem when trying to import a csv file with wkid 102110 (french projection) but each time, the reference wkid still in 4326. Is it normal to keep this&amp;nbsp;wkid ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See my code below :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;esriLoader.dojoRequire(["esri/basemaps",&lt;BR /&gt; "esri/map",&lt;BR /&gt; "esri/layers/CSVLayer",&lt;BR /&gt; "esri/Color",&lt;BR /&gt; "esri/symbols/SimpleMarkerSymbol",&lt;BR /&gt; "esri/renderers/SimpleRenderer",&lt;BR /&gt; "esri/InfoTemplate",&lt;BR /&gt; "esri/urlUtils",&lt;BR /&gt; "esri/geometry/Extent",&lt;BR /&gt; "esri/SpatialReference",&lt;BR /&gt; "esri/geometry/Point",&lt;BR /&gt; "dojo/domReady!"], (esriBasemaps, Map, CSVLayer, Color, SimpleMarkerSymbol, SimpleRenderer, InfoTemplate, urlUtils, Extent, SpatialReference, Point) =&amp;gt; {&lt;BR /&gt; esriBasemaps.&lt;SPAN style="background-color: #f6f6f6;"&gt;myservice&lt;/SPAN&gt; = {&lt;BR /&gt;&lt;SPAN&gt; baseMapLayers: [{url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserver&amp;gt;/arcgis/rest/services/&amp;lt;myService/MapServer"}&lt;/SPAN&gt;&lt;BR /&gt; ],&lt;BR /&gt; title: "myservice"&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;let map = new Map(this.refs['map'], {&lt;BR /&gt; basemap: "&lt;SPAN style="background-color: #f6f6f6;"&gt;myservice&lt;/SPAN&gt;",&lt;BR /&gt; zoom: 0,&lt;BR /&gt; extent: new Extent({&lt;BR /&gt; xmax: 1438371.080139373,&lt;BR /&gt; xmin: -98371.08013937285,&lt;BR /&gt; ymax: 7185000,&lt;BR /&gt; ymin: 5975000, spatialReference: {wkid: 102110}&lt;BR /&gt; })&lt;BR /&gt; });&lt;BR /&gt; map.spatialReference = new SpatialReference({wkid: 102110});&lt;BR /&gt; map.on("load", () =&amp;gt; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let csv = new CSVLayer(process.env.PUBLIC_URL + "/data/Coor_CO.csv", {&lt;BR /&gt; latitudeFieldName: 'X_LIEU',&lt;BR /&gt; longitudeFieldName: 'Y_LIEU',&lt;BR /&gt; columnDelimiter: ';'&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;let orangeRed = new Color([238, 69, 0, 0.5]); // hex is #ff4500&lt;BR /&gt; let marker = new SimpleMarkerSymbol("solid", 15, null, orangeRed);&lt;BR /&gt; let renderer = new SimpleRenderer(marker);&lt;BR /&gt; csv.setRenderer(renderer);&lt;BR /&gt; csv.fullExtent = new Extent({&lt;BR /&gt; xmax: 1438371.080139373,&lt;BR /&gt; xmin: -98371.08013937285,&lt;BR /&gt; ymax: 7185000,&lt;BR /&gt; ymin: 5975000, spatialReference: {wkid: 102110}&lt;BR /&gt; });&lt;BR /&gt; csv.spatialReference.wkid = 102110;&lt;BR /&gt; map.addLayer(csv);&lt;BR /&gt; });&lt;BR /&gt; }&lt;BR /&gt; )&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx by advance &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Mar 2017 13:06:13 GMT</pubDate>
    <dc:creator>FlorianCADOZ</dc:creator>
    <dc:date>2017-03-13T13:06:13Z</dc:date>
    <item>
      <title>Importing CSV File with special spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/importing-csv-file-with-special-spatial-reference/m-p/533146#M49709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have a little problem when trying to import a csv file with wkid 102110 (french projection) but each time, the reference wkid still in 4326. Is it normal to keep this&amp;nbsp;wkid ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See my code below :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;esriLoader.dojoRequire(["esri/basemaps",&lt;BR /&gt; "esri/map",&lt;BR /&gt; "esri/layers/CSVLayer",&lt;BR /&gt; "esri/Color",&lt;BR /&gt; "esri/symbols/SimpleMarkerSymbol",&lt;BR /&gt; "esri/renderers/SimpleRenderer",&lt;BR /&gt; "esri/InfoTemplate",&lt;BR /&gt; "esri/urlUtils",&lt;BR /&gt; "esri/geometry/Extent",&lt;BR /&gt; "esri/SpatialReference",&lt;BR /&gt; "esri/geometry/Point",&lt;BR /&gt; "dojo/domReady!"], (esriBasemaps, Map, CSVLayer, Color, SimpleMarkerSymbol, SimpleRenderer, InfoTemplate, urlUtils, Extent, SpatialReference, Point) =&amp;gt; {&lt;BR /&gt; esriBasemaps.&lt;SPAN style="background-color: #f6f6f6;"&gt;myservice&lt;/SPAN&gt; = {&lt;BR /&gt;&lt;SPAN&gt; baseMapLayers: [{url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserver&amp;gt;/arcgis/rest/services/&amp;lt;myService/MapServer"}&lt;/SPAN&gt;&lt;BR /&gt; ],&lt;BR /&gt; title: "myservice"&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;let map = new Map(this.refs['map'], {&lt;BR /&gt; basemap: "&lt;SPAN style="background-color: #f6f6f6;"&gt;myservice&lt;/SPAN&gt;",&lt;BR /&gt; zoom: 0,&lt;BR /&gt; extent: new Extent({&lt;BR /&gt; xmax: 1438371.080139373,&lt;BR /&gt; xmin: -98371.08013937285,&lt;BR /&gt; ymax: 7185000,&lt;BR /&gt; ymin: 5975000, spatialReference: {wkid: 102110}&lt;BR /&gt; })&lt;BR /&gt; });&lt;BR /&gt; map.spatialReference = new SpatialReference({wkid: 102110});&lt;BR /&gt; map.on("load", () =&amp;gt; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let csv = new CSVLayer(process.env.PUBLIC_URL + "/data/Coor_CO.csv", {&lt;BR /&gt; latitudeFieldName: 'X_LIEU',&lt;BR /&gt; longitudeFieldName: 'Y_LIEU',&lt;BR /&gt; columnDelimiter: ';'&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;let orangeRed = new Color([238, 69, 0, 0.5]); // hex is #ff4500&lt;BR /&gt; let marker = new SimpleMarkerSymbol("solid", 15, null, orangeRed);&lt;BR /&gt; let renderer = new SimpleRenderer(marker);&lt;BR /&gt; csv.setRenderer(renderer);&lt;BR /&gt; csv.fullExtent = new Extent({&lt;BR /&gt; xmax: 1438371.080139373,&lt;BR /&gt; xmin: -98371.08013937285,&lt;BR /&gt; ymax: 7185000,&lt;BR /&gt; ymin: 5975000, spatialReference: {wkid: 102110}&lt;BR /&gt; });&lt;BR /&gt; csv.spatialReference.wkid = 102110;&lt;BR /&gt; map.addLayer(csv);&lt;BR /&gt; });&lt;BR /&gt; }&lt;BR /&gt; )&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx by advance &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 13:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/importing-csv-file-with-special-spatial-reference/m-p/533146#M49709</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2017-03-13T13:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV File with special spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/importing-csv-file-with-special-spatial-reference/m-p/533147#M49710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;To my knowledge the JS API CSVLayer is for WKID 4236 lat long data. I am not sure is supports using data in other projections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 13:18:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/importing-csv-file-with-special-spatial-reference/m-p/533147#M49710</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-03-13T13:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV File with special spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/importing-csv-file-with-special-spatial-reference/m-p/533148#M49711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright, thank you for your answer Robert !&lt;/P&gt;&lt;P&gt;So, my problem right now is to convert the geometries in my csv (the csv I'm trying to import) from 102110 to 4326 ! Do you think is it possible to use&amp;nbsp;lngLatToXY(long, lat) or&amp;nbsp;geographicToWebMercator(geometry) while importing my csv with&amp;nbsp;new CSVLayer() ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 13:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/importing-csv-file-with-special-spatial-reference/m-p/533148#M49711</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2017-03-13T13:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV File with special spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/importing-csv-file-with-special-spatial-reference/m-p/533149#M49712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since your project is not 4326 or 102100 you will have to&amp;nbsp;convert your CSV XY data to WGS-84 Lat Lon values for the CSVLayer to work. I am not aware of a way to do this after you have added the csv to the CSVLayer or a way to do this before the data is loaded client side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 14:47:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/importing-csv-file-with-special-spatial-reference/m-p/533149#M49712</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-03-13T14:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV File with special spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/importing-csv-file-with-special-spatial-reference/m-p/533150#M49713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright, thank you Robert, I will try to use the WGS84 projection in my map and modify the proj of my data before using it ! It will be more simple ! Thank you for your advice ! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 09:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/importing-csv-file-with-special-spatial-reference/m-p/533150#M49713</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2017-03-14T09:41:10Z</dc:date>
    </item>
  </channel>
</rss>

