<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.digitalspirit.org/blog/index.php/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>DigitalSpirit - Tag - Poi</title>
  <link>http://www.digitalspirit.org/blog/index.php/</link>
  <atom:link href="http://www.digitalspirit.org/blog/index.php/feed/tag/Poi/rss2" rel="self" type="application/rss+xml"/>
  <description>Blog personnel de Charles Rincheval contenant des descriptions de projets réalisés dans les domaines du logiciels libres en encore dans des développements de systèmes embarqués</description>
  <language>fr</language>
  <pubDate>Mon, 06 Feb 2012 16:31:19 +0100</pubDate>
  <copyright>© 2008 Charles Rincheval. Ce billet a été originellement publié sur le site www.DigitalSpirit.org</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Écriture dans les fichiers Tomtom Ov2 et Garmin Asc</title>
    <link>http://www.digitalspirit.org/blog/index.php/post/2007/11/16/Ecriture-dans-les-fichiers-Tomtom-Ov2-et-Garmin-Asc</link>
    <guid isPermaLink="false">urn:md5:c94b3c9b9537fe75a583cf26d7b304ee</guid>
    <pubDate>Fri, 16 Nov 2007 10:25:00 +0100</pubDate>
    <dc:creator>hugo</dc:creator>
        <category>Php</category>
        <category>Asc</category><category>Développement</category><category>Garmin</category><category>Géo</category><category>Hyla</category><category>Ov2</category><category>php</category><category>Php</category><category>Poi</category><category>Tomtom</category><category>tutoriel</category>    
    <description>    &lt;p&gt;Pour faire suite au &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.digitalspirit.org/blog/index.php/post/2007/09/19/Lecture-de-fichiers-Tomtom-Ov2-et-Garmin-Asc&quot;&gt;billet précédent &lt;/a&gt;concernant la lecture de fichiers au format &lt;a hreflang=&quot;en&quot; href=&quot;http://www.tomtom.com&quot;&gt;Tomtom&lt;/a&gt; Ov2 et &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.garminfrance.com/&quot;&gt;Garmin&lt;/a&gt; Asc, voici la même librairie avec en plus le support de l'écriture.&lt;/p&gt;
&lt;p&gt;
Voici un petit exemple du fonctionnement :
&lt;/p&gt;
&lt;pre&gt;&amp;lt;?php&lt;br /&gt;/*  Ov2 and Asc reader / writer&lt;br /&gt;    hugo arobase digitalspirit dot org&lt;br /&gt;    c.rincheval, 2007&lt;br /&gt; */&lt;br /&gt;&lt;br /&gt;require 'geo.class.php';&lt;br /&gt;&lt;br /&gt;$content = array(0  =&amp;gt;  array(&lt;br /&gt;                            'lon'   =&amp;gt; -3.22,&lt;br /&gt;                            'lat'   =&amp;gt; 49.19,&lt;br /&gt;                            'label' =&amp;gt; 'poi 0'&lt;br /&gt;                        ),&lt;br /&gt;                 1  =&amp;gt;  array(&lt;br /&gt;                            'lon'   =&amp;gt; -5.45,&lt;br /&gt;                            'lat'   =&amp;gt; 52.12,&lt;br /&gt;                            'label' =&amp;gt; 'poi 1'&lt;br /&gt;                        )&lt;br /&gt;        );&lt;br /&gt;&lt;br /&gt;$file = 'test.ov2';&lt;br /&gt;&lt;br /&gt;$format = 'ov2';    // 'asc';&lt;br /&gt;&lt;br /&gt;// Writing data to file !&lt;br /&gt;geo::writeData($file, $format, $content);&lt;br /&gt;&lt;br /&gt;// Read file&lt;br /&gt;$data = geo::getData($file, $format);&lt;br /&gt;&lt;br /&gt;print_r($data);&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;/pre&gt;
&lt;p&gt;
L'exemple ci dessus se contente d'écrire dans un fichier (test.ov2) les 2 poi du tableau et ainsi la fonctione getData lit ce fichier et l'affiche.
&lt;/p&gt;</description>
    
          <enclosure url="http://www.digitalspirit.org/blog/public/lib/geo.tar.gz"
      length="8514" type="application/x-gzip" />
    
    
          <comments>http://www.digitalspirit.org/blog/index.php/post/2007/11/16/Ecriture-dans-les-fichiers-Tomtom-Ov2-et-Garmin-Asc#comment-form</comments>
      <wfw:comment>http://www.digitalspirit.org/blog/index.php/post/2007/11/16/Ecriture-dans-les-fichiers-Tomtom-Ov2-et-Garmin-Asc#comment-form</wfw:comment>
      <wfw:commentRss>http://www.digitalspirit.org/blog/index.php/feed/atom/comments/96</wfw:commentRss>
      </item>
    
  <item>
    <title>Lecture de fichiers Tomtom Ov2 et Garmin Asc</title>
    <link>http://www.digitalspirit.org/blog/index.php/post/2007/09/19/Lecture-de-fichiers-Tomtom-Ov2-et-Garmin-Asc</link>
    <guid isPermaLink="false">urn:md5:41f3a6c173eeb11471fb61f4151a6557</guid>
    <pubDate>Wed, 19 Sep 2007 08:05:00 +0200</pubDate>
    <dc:creator>hugo</dc:creator>
        <category>Php</category>
        <category>Asc</category><category>Développement</category><category>Garmin</category><category>Géo</category><category>Hyla</category><category>Ov2</category><category>php</category><category>Php</category><category>Poi</category><category>Tomtom</category><category>tutoriel</category>    
    <description>    &lt;p&gt;Pour les besoins de &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.hyla-project.org/&quot;&gt;Hyla&lt;/a&gt; 0.8.1 et, plus particulièrement, de son plugin Géo, j'ai créé une librairie d'accès aux fichiers Ov2 de &lt;a hreflang=&quot;en&quot; href=&quot;http://www.tomtom.com/&quot;&gt;Tomtom&lt;/a&gt; et Asc de &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.garminfrance.com/&quot;&gt;Garmin&lt;/a&gt;, ces derniers contiennent des informations géographiques, et notamment, des &lt;acronym title=&quot;Point Of Interest&quot;&gt;POI&lt;/acronym&gt;.&lt;/p&gt;
&lt;p&gt;Cette librairie vous permet d'extraire les données contenues dans les fichiers sus-cités sous forme de tableaux directement exploitables dans votre application.&lt;/p&gt;
&lt;p&gt;Voici le contenu du fichier test fourni qui se contente de lire un fichier au format Ov2 et fait un &quot;dump&quot; du contenu du tableau renvoyé :&lt;/p&gt;
&lt;pre&gt;
&amp;lt;?php
/*  Ov2 and Asc reader
    hugo arobase digitalspirit dot org
    c.rincheval, 2007
 */

require 'geo.class.php';

$data = geo::getData('FON_FR.ov2', 'ov2');

print_r($data);

?&amp;gt;
&lt;/pre&gt;
&lt;p&gt;Comme vous le voyez, l'utilisation est très simple...&lt;/p&gt;
&lt;p&gt;
En annexe, une archive contenant la classe, un fichier de test et un fichier au format ov2.
&lt;/p&gt;</description>
    
          <enclosure url="http://www.digitalspirit.org/blog/public/lib/geo.tar.gz"
      length="8514" type="application/x-gzip" />
    
    
          <comments>http://www.digitalspirit.org/blog/index.php/post/2007/09/19/Lecture-de-fichiers-Tomtom-Ov2-et-Garmin-Asc#comment-form</comments>
      <wfw:comment>http://www.digitalspirit.org/blog/index.php/post/2007/09/19/Lecture-de-fichiers-Tomtom-Ov2-et-Garmin-Asc#comment-form</wfw:comment>
      <wfw:commentRss>http://www.digitalspirit.org/blog/index.php/feed/atom/comments/91</wfw:commentRss>
      </item>
    
</channel>
</rss>
