{"id":15657,"date":"2010-11-15T08:59:07","date_gmt":"2010-11-15T06:59:07","guid":{"rendered":"https:\/\/blogs.autodesk.com\/villagebim\/2010\/11\/styles-personalises-fdo-dans-autocad-map-3d-2011-le-cas-des-points.html"},"modified":"2010-11-15T08:59:07","modified_gmt":"2010-11-15T06:59:07","slug":"styles-personalises-fdo-dans-autocad-map-3d-2011-le-cas-des-points","status":"publish","type":"post","link":"https:\/\/blogs.autodesk.com\/villagebim\/2010\/11\/styles-personalises-fdo-dans-autocad-map-3d-2011-le-cas-des-points.html","title":{"rendered":"Styles personalis\u00e9s FDO dans AutoCAD Map 3D 2011 &#8211; le cas des points"},"content":{"rendered":"<p>AutoCAD Map 3D 2011 permet de param\u00e9trer tr\u00e8s finement les styles pour les entit\u00e9s <a href=\"http:\/\/geospatialfrance.typepad.com\/geospatialfrance\/2007\/07\/fdo-librairie-o.html\">FDO<\/a>, que ces entit\u00e9s soient stock\u00e9es dans des fichiers (SHP, <a href=\"http:\/\/www.sqlite.org\">SQLite<\/a>, SDF, \u2026), des services Web (WFS), des bases de donn\u00e9s avec type de stockage ouvert (Oracle, SQL Server, PostGIS, MySQL) ou des bases de donn\u00e9es avec type de stockage ferm\u00e9 (ArGIS\/ArcSDE).<\/p>\n<p><a href=\"http:\/\/geospatialfrance.typepad.com\/.a\/6a00e00984a67b88330133f5dd2cc6970b-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"250\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/img_606d77bd04df0.png\" style=\"border-width: 0px\" title=\"image\" width=\"400\" \/><\/a><\/p>\n<p>Pour les styles appliqu\u00e9s aux points, l\u2019utilisateur peut directement exploiter des blocs AutoCAD, et avoir ainsi acc\u00e8s \u00e0 ce qui est sans doute la mani\u00e8re la plus souple et performante d\u2019appliquer des styles vectoriels dans un SIG. D\u00e9finir un nouveau style de point revient alors \u00e0 cr\u00e9er un bloc AutoCAD.<\/p>\n<p>Ainsi, l\u2019utilisateur peut exploiter tr\u00e8s simplement des styles vectoriels pour les points.<\/p>\n<p>Pour ce qui est des styles bitmaps, par d\u00e9faut, l\u2019utilisateur ne peut pas les d\u00e9finir dans l\u2019interface d\u2019AutoCAD Map 3D, Cependant, en b\u00e9n\u00e9ficiant des avanc\u00e9es apport\u00e9es par MapGuide Open Source, le moteur d\u2019affichage d\u2019AutoCAD Map 3D 2011 est tout a fait capable de g\u00e9rer leur affichage. Pour le param\u00e9trage et la d\u00e9finition de ces styles bitmap, il faut <a href=\"http:\/\/geospatialfrance.typepad.com\/geospatialfrance\/2008\/05\/utiliser-les-fi.html\">exploiter les fichiers .layer<\/a>.<\/p>\n<p>Ces fichiers permettent de d\u00e9finir un symbole bitmap, en l\u2019encodant directement dans une section du fichier XML avec extension .layer.<\/p>\n<p><span style=\"color: #ff0000;font-size: xx-small\">&lt;SimpleSymbolDefinition xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;&#160; xsi:noNamespaceSchemaLocation=&quot;SymbolDefinition-1.1.0.xsd&quot; version=&quot;1.1.0&quot;&gt; <br \/><\/span><span style=\"font-size: xx-small\"><span style=\"color: #ff0000\">&lt;Name&gt;<\/span>inlineTree<span style=\"color: #ff0000\">&lt;\/Name&gt; <br \/><\/span><\/span><span style=\"color: #ff0000;font-size: xx-small\">&lt;Graphics&gt; <br \/><\/span><span style=\"color: #ff0000;font-size: xx-small\">&lt;Image&gt; <br \/><\/span><span style=\"font-size: xx-small\"><span style=\"color: #ff0000\">&lt;Content&gt;<\/span>iVBORw0KGgoAAAANSUhEUgAAADsAAAA7CAYAAADFJfKzAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 <\/span><span style=\"font-size: xx-small\">YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAABBRJREFUaEPlmkluG0EMReP7ZJcL+ <\/span><span style=\"font-size: xx-small\">6ZK2lA1KPafWGqtEkCI3UMVH\/k5pJSvx+Px67\/5c8B+6vPPiYcnx5+P2XP3wgjuz\/fvx\/qs+8fvx8\/97\/7+nfbdElUFuIAq7AJEsAr+XfC3Y <\/span><span style=\"font-size: xx-small\">Cukix67353AFFD32oXehkVyrFHp0duFRcpYe0+hx7BdsggQgTE592eR3OszXeYT4BEsKy4VREExNSAp12cR7I6sY1iUn6zAsGj1fOyO <\/span><span style=\"font-size: xx-small\">QRW6g7JUSSIcwSLpTvKTGXwHbHWgA7awPaKpZFmVTXMSOaI7GK2lgCVszxuUR67wOKNZdN17qmUxYAqremiSk2lkXbRYJa6tDQ01CFjCKu+l <\/span><span style=\"font-size: xx-small\">MEmEVO6qtqNqQQyLPIWuJcAJLIquei9Z83imA18iq\/rb1MtMoincTsR7e6vAEBbJg11LnJMavVPs3PBBYVk\/dfA7wIkDVJvrA4hKvQX8ElmV <\/span><span style=\"font-size: xx-small\">lwnw5Jk071zVVXsuHgpbF+8\/T2CU7NNcThSjKnK1\/+f46aTeOD5h0kmcwiLb5enWUn24FisK67zlDFAgrl2pqCeSZbZfYHt+TGVcN3LALrLu <\/span><span style=\"font-size: xx-small\">\/elePyp8HqWeB2II2EXS5Sfz9uS62iMdgk7Ydypx93LSwpLWsytbmoYrsqihV6NVHifPuUJyp2wtrJPqu5FX09GnQc\/UdDm72+tcPi7AFHTH <\/span><span style=\"font-size: xx-small\">jq44mrMu0rv3K+QEdLIfcgytxpOFd56dRCl1iGuTL7Bx+b550rpz3942L2urnJ1ELY3AjoxdJ3D3T+jaeibyWhukkMvr\/b3J+12qShWo1b1M <\/span><span style=\"font-size: xx-small\">UJONp46Zth4n74nqLq1nCjrZDK2N4DvgZI9k2pLjIvPuxAimgMQBk33UyCqHCpXwEwPU4MCUNFEYA5TjIqrIfaEJJCtG6ZoJ8FTyZ59FFbku <\/span><span style=\"font-size: xx-small\">loAiyauK7YBcgZretycVE4NUS9nNz\/qekn1iJ4RVY5eTTi1GzlBnoBv\/UL7C3vqc+F5g+79ra3FhEGpD1VdTEFXg4qmpfA1yOTeuhjiDJ9Jl <\/span><span style=\"font-size: xx-small\">a6kIO3Uw4B4EeG7MTi3SQqOM24FNqrprk\/a7HlbpUE6wduJUkUbNreMmJwmrzqRqhJ0RNc97hJLfmZpcy6nv2a8sUaFyVZgZP5E1WkM5RaXF <\/span><span style=\"font-size: xx-small\">sjeCZZWZGZTAJvnH+jFzGgJmoJfWc\/EE+F+jqpep6pzAJtFV6aNALWwfI1mBcpJCuZ62HNST1X49YLZAoQh3KSXSYkWqX3f9sg8XTO4KNIos <\/span><span style=\"font-size: xx-small\">+kqTTU6ulyqHqbZWnYMc6ORLhwopg2cOd2nVao36bo9MzU0VZfQeyn0X0S1YlMNIzh1ewaoKX52KVHFcS0FHMn5JdHB27HqiyjuXw0jGU9Bt <\/span><span style=\"font-size: xx-small\">WJTHSMoVMIFlFbquvQO5LWMkm24MazU9Quq5fu8dyFthXaSTCLOcvAPyI7Aur1nudWXcCVht+gtT4ZTMne9clAAAAABJRU5ErkJggg== <\/span><span style=\"color: #ff0000;font-size: xx-small\">&lt;\/Content&gt; <br \/><\/span><span style=\"font-size: xx-small\"><span style=\"color: #ff0000\">&lt;SizeX&gt;<\/span>5<span style=\"color: #ff0000\">&lt;\/SizeX&gt; <br \/><\/span><\/span><span style=\"font-size: xx-small\"><span style=\"color: #ff0000\">&lt;SizeY&gt;<\/span>5<span style=\"color: #ff0000\">&lt;\/SizeY&gt; <br \/><\/span><\/span><span style=\"color: #ff0000;font-size: xx-small\">&lt;\/Image&gt; <br \/><\/span><span style=\"color: #ff0000;font-size: xx-small\">&lt;\/Graphics&gt; <br \/><\/span><span style=\"color: #ff0000;font-size: xx-small\">&lt;PointUsage\/&gt; <br \/><\/span><span style=\"color: #ff0000\"><span style=\"font-size: xx-small\">&lt;ParameterDefinition\/&gt; <br \/><\/span><span style=\"font-size: xx-small\">&lt;\/SimpleSymbolDefinition&gt;<\/span><\/span><\/p>\n<p>Plusieurs points importants : <br \/>&#8211; les images doivent \u00eatre encod\u00e9es en base 64 (soit avec <a href=\"http:\/\/www.motobit.com\/util\/base64-decoder-encoder.asp\">un outil en ligne<\/a>, soit avec un <a href=\"http:\/\/topobaseinsiders.typepad.com\/the_topobase_insiders\/2010\/01\/bitmap-symbols.html\">outil fourni par mon coll\u00e8gue Derrick Oswald<\/a>. <br \/>&#8211; les images doivent \u00eatre des PNG 32 bits <br \/>&#8211; l\u2019utilisateur AutoCAD Map 3D 2011 <span style=\"text-decoration: underline\">ne pourra pas<\/span> modifier la symbologie dans l\u2019interface du logiciel. <br \/>&#8211; le m\u00eame param\u00e9trage est \u00e9videmment applicable \u00e0 MapGuide (MapGuide Open Source ou Autodesk MapGuide Enterprise 2011).<\/p>\n<p>Pour mettre tout cela en pratique, vous pourrez t\u00e9l\u00e9charger ci dessous un exemple, pour lequel j\u2019ai utilis\u00e9 un des symboles fournis en standard (dans le r\u00e9pertoire C:\\Program Files\\Autodesk\\AutoCAD Map 3D 2011\\Sample\\Symbols).<\/p>\n<p>Attention, d\u00e9zippez le fichier suivant dans \u201cC:\\map_points\u201d :<\/p>\n<p><a href=\"http:\/\/geospatialfrance.typepad.com\/samples\/map_points.zip\">Exemple de symbologie de point personnalis\u00e9e dans AutoCAD Map 3D 2011<\/a>.<\/p>\n<p>Ensuite, chargez le fichier .layer (par cliquer-d\u00e9poser, ou \u201cGestionnaire d\u2019affichage\u201d, \u201cDonn\u00e9es\\Charger un calque\u201d et vous obtenez :<\/p>\n<p><a href=\"http:\/\/geospatialfrance.typepad.com\/.a\/6a00e00984a67b88330133f5dd2cec970b-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"Map3D2011_symbo_perso\" border=\"0\" height=\"300\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/img_606d77c759728.png\" style=\"border-width: 0px\" title=\"Map3D2011_symbo_perso\" width=\"400\" \/><\/a><\/p>\n<p>Ce m\u00eame principe peut \u00eatre appliqu\u00e9 pour r\u00e9aliser des styles de lignes FDO personnalis\u00e9s, et des trames de remplissages de polygones personnalis\u00e9es, ou des symboles ponctuels vectoriels compos\u00e9s de Bitmap et de vecteurs.<\/p>\n<p>Ci dessous, plusieurs liens importants :<\/p>\n<p>&quot;&gt;Sch\u00e9ma XSD des ressources de type Layer.<\/p>\n<table border=\"1\" cellpadding=\"2\" cellspacing=\"0\" width=\"421\">\n<tbody>\n<tr>\n<td align=\"center\" valign=\"top\" width=\"214\"><strong>Version originale<\/strong><\/td>\n<td align=\"center\" valign=\"top\" width=\"205\"><strong>Traduction fran\u00e7aise<\/strong><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"214\"><a href=\"http:\/\/topobaseinsiders.typepad.com\/the_topobase_insiders\/2010\/01\/bitmap-symbols.html\">The Topobase Insiders \u2013 Anglais<\/a> <br \/>avec un encodeur Base64<\/td>\n<td valign=\"top\" width=\"205\"><a href=\"http:\/\/translate.google.fr\/translate?u=http:\/\/topobaseinsiders.typepad.com\/the_topobase_insiders\/2010\/01\/bitmap-symbols.html&amp;hl=fr&amp;langpair=auto|fr&amp;tbb=1&amp;ie=UTF-8\">The Topobase Insiders \u2013 Fran\u00e7ais<\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"214\"><a href=\"http:\/\/trac.osgeo.org\/mapguide\/wiki\/MapGuideRfc14\">Documentation MapGuide &#8211; RFC14<\/a><\/td>\n<td valign=\"top\" width=\"205\"><a href=\"http:\/\/translate.google.fr\/translate?u=http:\/\/trac.osgeo.org\/mapguide\/wiki\/MapGuideRfc14&amp;hl=fr&amp;langpair=auto|fr&amp;tbb=1&amp;ie=UTF-8\">RFC14 (attention au XML traduit, non valide !)<\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"214\"><a href=\"http:\/\/trac.osgeo.org\/mapguide\/wiki\/MapGuideRfc29\">Documentation MapGuide &#8211; RFC29<\/a><\/td>\n<td valign=\"top\" width=\"205\"><a href=\"http:\/\/translate.google.fr\/translate?u=http:\/\/trac.osgeo.org\/mapguide\/wiki\/MapGuideRfc29&amp;hl=fr&amp;langpair=auto|fr&amp;tbb=1&amp;ie=UTF-8\">RFC29 (attention au XML traduit, non valide !)<\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"214\"><a href=\"http:\/\/www.motobit.com\/util\/base64-decoder-encoder.asp\">Encodeur Base64 en ligne<\/a><\/td>\n<td valign=\"top\" width=\"205\">&#160;<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"214\"><a href=\"http:\/\/geospatialfrance.typepad.com\/samples\/LayerDefinition-1.3.0.xsd\">Sch\u00e9ma XSD des ressources de type Layer<\/a>.<\/td>\n<td valign=\"top\" width=\"205\">&#160;<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"205\">&#160;<\/td>\n<td valign=\"top\" width=\"214\"><a href=\"definir-des-styles-personnalises-pour-les-couches-fdo-dans-mapguide\">Symbologie personnalis\u00e9e avec MapGuide<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Si le sujet vous int\u00e9resse\u2026 utilisez les commentaires !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AutoCAD Map 3D 2011 permet de param\u00e9trer tr\u00e8s finement les styles pour les entit\u00e9s FDO, que ces entit\u00e9s soient stock\u00e9es dans des fichiers (SHP, SQLite, SDF, \u2026), des services Web (WFS), des bases de donn\u00e9s avec type de stockage ouvert (Oracle, SQL Server, PostGIS, MySQL) ou des bases de donn\u00e9es avec type de stockage ferm\u00e9 [&hellip;]<\/p>\n","protected":false},"author":52098,"featured_media":2472,"menu_order":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[3378,3377,3395,3403],"tags":[],"class_list":["post-15657","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-actus","category-autocad-map-3d","category-osgeo","category-technologie-mapguide","dhig-theme--light"],"acf":[],"_links":{"self":[{"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/posts\/15657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/users\/52098"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/comments?post=15657"}],"version-history":[{"count":0,"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/posts\/15657\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/media\/2472"}],"wp:attachment":[{"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/media?parent=15657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/categories?post=15657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/tags?post=15657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}