Re: Feedgenerator development / GeoRSS

2009-12-08 Thread Piotr Kęplicz
Mike Orr, poniedziałek 07 grudnia 2009 22:46:
 I also need GeoRSS, or at least latitude/longitude at the item level.
 I printed out the specs for the two syntaxes, GeoRSS-Simple and
 GeoRSS-GML.  So I need to decide on argument names and data structures
 for Point/Line/Polygon/Box).  Is there a set of standard classes
 somewhere for this?  (Something small and without dependencies.)  Or I
 could just use built-in Python types, though that may be less clear.

Have a look at Python Geo Interface: 
http://trac.gispython.org/lab/wiki/PythonGeoInterface
There's also Shapely, a library used for basic shape operations:
http://gispython.org/shapely/manual.html

.pk.

--

You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-disc...@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.




Re: Feedgenerator development / GeoRSS

2009-12-08 Thread Mike Orr
2009/12/8 Piotr Kęplicz kepl...@cmc.pl:
 Mike Orr, poniedziałek 07 grudnia 2009 22:46:
 I also need GeoRSS, or at least latitude/longitude at the item level.
 I printed out the specs for the two syntaxes, GeoRSS-Simple and
 GeoRSS-GML.  So I need to decide on argument names and data structures
 for Point/Line/Polygon/Box).  Is there a set of standard classes
 somewhere for this?  (Something small and without dependencies.)  Or I
 could just use built-in Python types, though that may be less clear.

 Have a look at Python Geo Interface:
 http://trac.gispython.org/lab/wiki/PythonGeoInterface
 There's also Shapely, a library used for basic shape operations:
 http://gispython.org/shapely/manual.html

OK. I talked with a GIS consultant yesterday, and he pointed me to
some code in Django for adding location data to newsfeeds.  It ties in
with that callback patch earlier this year, which is extensible for
other kinds of extensions.  So I may just put that all in WebHelpers
under a differerent name, webhelpers.feeds, and let the two
implementations live side by side until we're comfortable retiring
feedgenerator.

-- 
Mike Orr sluggos...@gmail.com

--

You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-disc...@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.




Feedgenerator development / GeoRSS

2009-12-07 Thread Mike Orr
I have printed out the differences between webhelpers.feedgenerator
and Django's feedgenerator.  They were synchronized January 5th.
WebHelpers has:

 * properties 'generator', 'source', and 'published'.
 * a bugfix in rfc3339_date().

Django has:

 * A number of callbacks for adding custom attributes and elements to feeds.
  * Bugfixes for xmlns, time zone, and missing language specification.
  * Add custom attributes to rss tag.

I'm still not sure whether it's worth pulling in the Django version
and re-applying our patches, or to stick to our version and
reimplement the Django fixes.  It would be easier to stick with ours
rather than trying to recreate its behavior.

The missing feature I found is that 'tag_uri' does not seem to work
right, and isPermaLink=False does not seem to be supported.

I also need GeoRSS, or at least latitude/longitude at the item level.
I printed out the specs for the two syntaxes, GeoRSS-Simple and
GeoRSS-GML.  So I need to decide on argument names and data structures
for Point/Line/Polygon/Box).  Is there a set of standard classes
somewhere for this?  (Something small and without dependencies.)  Or I
could just use built-in Python types, though that may be less clear.

-- 
Mike Orr sluggos...@gmail.com

--

You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-disc...@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.