<?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: demande d'aide pour la réalisation d'une cartographie de ville in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675680#M20368</link>
    <description>&lt;P&gt;Are you submitting/running all those quote (''''') marks at the beginning and end of the code?&lt;/P&gt;
&lt;P&gt;Those should not be there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other than that, the code you copy-n-pasted looks ok - as long as you have a SAS/Graph license to give you access to the mapsgfk.burkina_faso, and you have SAS 9.4m5 (that's SAS 9.4, maintenance 5) to give you access to recently-added Proc SGmap.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 17:11:26 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2020-08-10T17:11:26Z</dc:date>
    <item>
      <title>demande d'aide pour la réalisation d'une cartographie de ville</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675425#M20357</link>
      <description>&lt;P&gt;Bonjour, je souhaite réaliser une cartographie afin de pouvoir placer des coordonnées géographique la dessus mais je ne sais pas quelle commande utiliser. cela fait plus de deux mois que je cherche jour et nuit comment procéder.&lt;/P&gt;&lt;P&gt;la ville concernant est celle de Ouagadougou, la capitale de Burkina Faso.&lt;/P&gt;&lt;P&gt;-mon objectif même est de faire d'abord la carte de la ville de Ouagadougou avec les contour des secteurs&lt;/P&gt;&lt;P&gt;-puis après placé des points sur les zones à risque à travers les coordonnées géographiques(LAT et LONG)&lt;/P&gt;&lt;P&gt;besoin de votre aide.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 19:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675425#M20357</guid>
      <dc:creator>Alassane_SOMA</dc:creator>
      <dc:date>2020-08-08T19:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: demande d'aide pour la réalisation d'une cartographie de ville</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675501#M20359</link>
      <description>&lt;P&gt;Vous pourriez afficher vos coordonnées dans Google Earth Pro (disponible gratuitement). On peut aussi associer du texte avec chaque coordonnée. Il suffit de créer un fichier .kml et de l'ouvrir avec Google Earth. J'ai écrit une macro SAS pour automatiser la création du fichier kml à partir des coordonnées et de leurs descriptions. Voici un exemple:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Générer les positions (lat-long) de 11 coordonnées le long de la piste d'atterrissage 
   de l'aéroport de Ouagadougou à partir des positions des extrémités de la piste.
   Ajouter les variables name et description. Name sera affiché sur la carte et description 
   apparaitra lorsque la coordonnée sera pointée sur la carte. */
data piste;
length name $12 description $64;
lon_s = -1.52003955; lat_s = 12.34201176;
lon_n = -1.50495766; lat_n = 12.36407826;
do pos = 0 to 1 by 0.1;
    name = catx(" ", "Position", pos*10);
    description = catx("
", "Piste de l'aéroport de Ouagadougou", name);
    lon = (1-pos)*lon_s + pos*lon_n;
    lat = (1-pos)*lat_s + pos*lat_n;
    output;
    end;
keep name description lat lon;
run;


%writeKML(piste,/home/pierre.gagnon/SASforum/Datasets/Piste.kml,
    title=Aéroport de Ouagadougou,name=name,
    lon=lon,lat=lat,description=description,west=1,author=Alassane_SOMA)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Lorsqu'on ouvre le fichier Piste.kml dans Google Earth Pro :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Piste.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48085i248ADAB464209E28/image-size/large?v=v2&amp;amp;px=999" role="button" title="Piste.png" alt="Piste.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;La macro WriteKML est attachée.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Aug 2020 20:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675501#M20359</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-08-09T20:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: demande d'aide pour la réalisation d'une cartographie de ville</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675572#M20364</link>
      <description>&lt;P&gt;If you have SAS 9.4m5, you can use Proc SGmap to plot point data overlaid on map border polygons, and also show an Openstreetmap in the background. We (SAS) ship country map polygons with SAS/Graph - the finest level of granularity for our Burkina Faso map is the province level, and the example below shows how to subset just the Kadiogo province (the province that contains Ouagadougou), draw that border on an Openstreetmap, and then plot some point data on the map.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could similarly plot the border of the city of Ouagadougou, but you'll need to find a Shapefile version of that border, and then use Proc Mapimport to convert that Shapefile into a map that SAS can use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_map; set mapsgfk.burkina_faso (where=(id='BF-031'));&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_coordinates;&lt;BR /&gt;input lat long;&lt;BR /&gt;datalines;&lt;BR /&gt;12.3545487 -1.5890092&lt;BR /&gt;12.2874918 -1.5941963&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title1 "Point data, plotted in Kadiogo Province, Burkina Faso";&lt;BR /&gt;proc sgmap mapdata=my_map plotdata=my_coordinates noautolegend;&lt;BR /&gt;openstreetmap;&lt;BR /&gt;choromap / mapid=id lineattrs=(color=red thickness=2px);&lt;BR /&gt;scatter x=long y=lat / markerattrs=(symbol=circle size=6pt color='red');&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="burkina.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48091i33116FA169F97298/image-size/large?v=v2&amp;amp;px=999" role="button" title="burkina.png" alt="burkina.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 12:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675572#M20364</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-08-10T12:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: demande d'aide pour la réalisation d'une cartographie de ville</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675588#M20365</link>
      <description>&lt;P&gt;je vois mais ça ne répond toujours pas car je veux réaliser une carte de la dite ville avec les contours des secteurs. c'est pour identifier des sites de travail des travailleuses de sexe à risque.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;comment construire une carte même à travers SAS et comment placer des coordonnées géographiques dessus.&lt;/P&gt;&lt;P&gt;j'ai une base de 99 individus et parmi ces 99, j'ai 5 individus qui sont positifs au premier test et 24 positifs au second test et je veux représenter leurs sites par des points et en fonction des tests sur la carte compte tenu des secteur car les sites sont repartir par secteur&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 13:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675588#M20365</guid>
      <dc:creator>Alassane_SOMA</dc:creator>
      <dc:date>2020-08-10T13:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: demande d'aide pour la réalisation d'une cartographie de ville</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675648#M20366</link>
      <description>&lt;P&gt;salut monsieur, merci pour votre réponse qui me guide un peu mais j'aurai besoin d'une partie encore plus pour mieux comprendre.&lt;BR /&gt;je comprend la fin et votre carte est approximativement ce que je veux mais j'aimerais savoir comment vous avez débuté pour faire sortie la carte.&lt;BR /&gt;quand je débute par :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;""""data my_map; set mapsgfk.burkina_faso (where=(id='BF-031'));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data my_coordinates;&lt;BR /&gt;input lat long;&lt;BR /&gt;datalines;&lt;BR /&gt;12.3545487 -1.5890092&lt;BR /&gt;12.2874918 -1.5941963&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title1 "Point data, plotted in Kadiogo Province, Burkina Faso";&lt;BR /&gt;proc sgmap mapdata=my_map plotdata=my_coordinates noautolegend;&lt;BR /&gt;openstreetmap;&lt;BR /&gt;choromap / mapid=id lineattrs=(color=red thickness=2px);&lt;BR /&gt;scatter x=long y=lat / markerattrs=(symbol=circle size=6pt color='red');&lt;BR /&gt;run;""""&lt;/P&gt;&lt;P&gt;on me dit ceci:&lt;BR /&gt;''"ERROR 180-322: Statement is not valid or it is used out of proper order""&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 16:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675648#M20366</guid>
      <dc:creator>Alassane_SOMA</dc:creator>
      <dc:date>2020-08-10T16:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: demande d'aide pour la réalisation d'une cartographie de ville</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675680#M20368</link>
      <description>&lt;P&gt;Are you submitting/running all those quote (''''') marks at the beginning and end of the code?&lt;/P&gt;
&lt;P&gt;Those should not be there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other than that, the code you copy-n-pasted looks ok - as long as you have a SAS/Graph license to give you access to the mapsgfk.burkina_faso, and you have SAS 9.4m5 (that's SAS 9.4, maintenance 5) to give you access to recently-added Proc SGmap.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 17:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675680#M20368</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-08-10T17:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: demande d'aide pour la réalisation d'une cartographie de ville</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675687#M20369</link>
      <description>&lt;P&gt;En effet, j'ai mis ces (""") pour cadrer le code que j'ai copier sinon sur le logiciel, j'ai juste copier le code de manière intégrale et coller. j'ai rien changé et malheureusement c'est le message d'erreur d'en bas qu'ont me pressente.&amp;nbsp;&lt;/P&gt;&lt;P&gt;j'ai bien-sur SAS v 9.4 mais je n'arrive pas.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 17:26:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675687#M20369</guid>
      <dc:creator>Alassane_SOMA</dc:creator>
      <dc:date>2020-08-10T17:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: demande d'aide pour la réalisation d'une cartographie de ville</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675797#M20370</link>
      <description>&lt;P&gt;Proc Sgmap is very new, therefore it will matter exactly which release of SAS 9.4 you have.&lt;/P&gt;
&lt;P&gt;Try running this comand...&lt;/P&gt;
&lt;P&gt;%put &amp;amp;sysvlong;&lt;/P&gt;
&lt;P&gt;And copy-n-paste the results from the SAS log, such as the number below...&lt;/P&gt;
&lt;P&gt;9.04.01M6P111518&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 00:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/675797#M20370</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-08-11T00:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: demande d'aide pour la réalisation d'une cartographie de ville</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/676277#M20376</link>
      <description>D'accord je vais essayer de désinstaller et télécharger à nouveau une nouvelle version puis essayer votre commande voir.</description>
      <pubDate>Wed, 12 Aug 2020 18:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/676277#M20376</guid>
      <dc:creator>Alassane_SOMA</dc:creator>
      <dc:date>2020-08-12T18:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: demande d'aide pour la réalisation d'une cartographie de ville</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/676362#M20377</link>
      <description>&lt;P&gt;If you can get SAS v9.4m6, that is the exact version I used to create the example (above).&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 01:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/676362#M20377</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-08-13T01:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: demande d'aide pour la réalisation d'une cartographie de ville</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/676413#M20378</link>
      <description>C'est noté mais vous pouvez m'aider avec le lien pour le télécharger directement svp ?</description>
      <pubDate>Thu, 13 Aug 2020 07:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/demande-d-aide-pour-la-r%C3%A9alisation-d-une-cartographie-de-ville/m-p/676413#M20378</guid>
      <dc:creator>Alassane_SOMA</dc:creator>
      <dc:date>2020-08-13T07:08:50Z</dc:date>
    </item>
  </channel>
</rss>

