On Wed, Jun 27, 2012 at 7:46 PM, Stefano Costa <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Il 27/06/2012 18:25, Sean Gillies ha scritto:
>> This would be a more general and less Shapely-dependent way to
>> represent geometries, if you like.
>
> Especially considered that the library is otherwise pure Python, I
> would second Sean's suggestion. I wonder if the "geojson" package fits
> the purpose

+ 1

> or it's rather better to implement to protocol from scratch.

-1

> I have nothing against Shapely of course, but its dependency on GEOS
> makes it more complicated to install with modern Python packaging
> tools like pip.
>

Good point I will look at geojson (that seems to fit my purposes). I
used shapely
mainly because it is tried, tested, well documented and I am
comfortable with it.


> If I'm not asking too much, could you explain how different fastkml is
> from simplekml? http://pypi.python.org/pypi/simplekml/0.9.3
>

Mainly it is the ability to load kml files, or construct features from their xml
representation e.g.:

>>> pm = Placemark()
>>> doc = """ <Placemark>
            <name>Document Feature 1</name>
            <styleUrl>#exampleStyleDocument</styleUrl>
            <Point>
              <coordinates>-122.371,37.816,0</coordinates>
            </Point>
          </Placemark>"""
>>> pm.from_string(doc)

afaik simplekml can write kml files but not read them (correct me if I
am wrong).

fastkml just supports a subset of what simplekml can write (but this is
of course only a first alpha). I doubt that fastkml will implement the whole
kml and gx standard. I just add new features as I go along and need them.

> Thanks, and congratulations on this first release
> steko
> -----BEGIN PGP SIGNATURE-----


-- 
Best Regards,

Christian Ledermann

Nairobi - Kenya
Mobile : +254 702978914

<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to