I will look into Shapely.<br><br>George<br><br><div class="gmail_quote">On Fri, Apr 9, 2010 at 3:30 PM, Landon Blake <span dir="ltr">&lt;<a href="mailto:lblake@ksninc.com">lblake@ksninc.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Jean-Denis,<br>
<br>
I skimmed the web site and documentation for Shapely. It looks like a handy lib and maybe even easier than OGR. :]<br>
<div class="im"><br>
Landon<br>
Office Phone Number: (209) 946-0268<br>
Cell Phone Number: (209) 992-0658<br>
<br>
-----Original Message-----<br>
</div><div class="im">From: Jean-Denis Giguere [mailto:<a href="mailto:jdenisgiguere@gmail.com">jdenisgiguere@gmail.com</a>]<br>
Sent: Thursday, April 08, 2010 7:42 PM<br>
To: Landon Blake<br>
</div><div class="im">Cc: Carlos Gabriel Asato; <a href="mailto:carto@lists.osgeo.org">carto@lists.osgeo.org</a>; <a href="mailto:sean.gillies@gmail.com">sean.gillies@gmail.com</a><br>
Subject: Re: [Carto] Sample Map Rendering Input File<br>
<br>
</div><div><div></div><div class="h5">Greetings!<br>
<br>
I&#39;m just yet another new suscriber of carto... ;-) I&#39;m not a Python<br>
GIS guru, but I have a lot of interest on this side. You will find my<br>
2¢ below.<br>
<br>
2010/4/8 Landon Blake &lt;<a href="mailto:lblake@ksninc.com">lblake@ksninc.com</a>&gt;:<br>
&gt; It sounds like Python is the winner.<br>
<br>
Nice! I think we won&#39;t be disappointed by this choice.<br>
<br>
I poke Sean Gillies, which may be interested by this project. I&#39;m sure<br>
he could give us very valuable advices.<br>
<br>
&gt;<br>
&gt; Carlos: Do you have experience with Python? If you do, can you help with the<br>
&gt; following questions:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; (1)     What is the best Python library to use for parsing XML?<br>
<br>
There ara many options, do we need a full featured libraries with<br>
extended functions or a more simple/lightweight library?<br>
Do we want to limit dependencies using built-in functions as much as possible?<br>
<br>
&gt;<br>
&gt; (2)     Is there an existing Python library for parsing WKT?<br>
<br>
shapely (<a href="http://trac.gispython.org/lab/wiki/Shapely" target="_blank">http://trac.gispython.org/lab/wiki/Shapely</a> ) . It does much<br>
more than reading WKT.<br>
<br>
&gt;<br>
&gt; (3)     I believe we can use OGR for reading ESRI Shapefiles. Is this what<br>
&gt; you would recommend?<br>
&gt;<br>
<br>
OGR support would be interesting because you get support for many<br>
formats at once.<br>
<br>
&gt; (4)     Is there an existing library that can take some sort of vector<br>
&gt; geometries and convert them to rasters? (Something like the Java 2D graphics<br>
&gt; library?)<br>
<br>
shapely have some related features. It can be use with matplotlib<br>
which may be (or not) interesting for this project.<br>
<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Now that I think about it, using a vector format like EPS or SVG might be<br>
&gt; easier than raster for the first output of the sample rendering engine.<br>
<br>
matplotlib supports many output formats, this may be helpful for<br>
prototyping and maybe more.<br>
<br>
<br>
Best regards,<br>
<br>
<br>
Jean-Denis<br>
<br>
<br>
</div></div><div class="im">Warning:<br>
Information provided via electronic media is not guaranteed against defects including translation and transmission errors. If the reader is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this information in error, please notify the sender immediately.<br>


</div><div><div></div><div class="h5">_______________________________________________<br>
Carto mailing list<br>
<a href="mailto:Carto@lists.osgeo.org">Carto@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/carto" target="_blank">http://lists.osgeo.org/mailman/listinfo/carto</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>George R. C. Silva<br><br>Desenvolvimento em GIS<br><a href="http://blog.geoprocessamento.net">http://blog.geoprocessamento.net</a><br>