Re: [OSM-talk] Pyroute

2011-07-27 Thread Luis Quesada
(Sorry! I meant to send this to the list)

On Tue, July 26, 2011 5:27 pm, Luis Quesada wrote:
 On 23/07/11 23:45, Łukasz Stelmach wrote:
 Luis Quesadal.ques...@4c.ucc.ie  writes:

 I am having the error listed at the end when trying to run python gui.py
File /home/lquesada/pyroute/tiles.py, line 98, in loadImage
  self.images[name]  = cairo.ImageSurface.create_from_png(filename)
 MemoryError
 Hard to tell. My first *guess* is that there is something wrong with
 Cairo bindings for Python[1] or with the Cairo itself.


 Footnotes:
 [1] http://cairographics.org/pycairo/

 Dear Łukasz,

 Thank you very much for your answer. I installed the latest versions of
 both pycairo and cairo. It seems they are both fine:

   import cairo
   cairo.cairo_version_string()
 '1.10.2'
   cairo.version
 '1.8.8'

 Cheers,
 Luis



-- 
Luis Quesada
Research Scientist
Cork Constraint Computation Centre
University College Cork
Cork - Ireland
Phone:  (+353) 21 420 5376
Fax:(+353) 21 420 5369
Web:http://4c.ucc.ie/~lquesada

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Pyroute

2011-07-23 Thread Łukasz Stelmach
Luis Quesada l.ques...@4c.ucc.ie writes:

 I am having error listed at the end when trying to run python gui.py

   File /home/lquesada/pyroute/tiles.py, line 98, in loadImage
 self.images[name]  = cairo.ImageSurface.create_from_png(filename)
 MemoryError

Hard to tell. My first *guess* is that there is something wrong with
Cairo bindings for Python[1] or with the Cairo itself.


Footnotes:
[1] http://cairographics.org/pycairo/

-- 
Było mi bardzo miło.   Czwarta pospolita klęska, [...]
Łukasz Już nie katolicka lecz złodziejska.  (c)PP



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Pyroute

2011-07-21 Thread Luis Quesada

Dear all,

(Sorry if this is not the right forum for this question)
I am having error listed at the end when trying to run python gui.py

I am basically following the instructions at :

http://wiki.openstreetmap.org/wiki/Pyroute

svn co http://svn.openstreetmap.org/applications/routing/pyroute/
cd pyroute/
python gui.py

Could somebody tell me what I am doing wrong?

Thanks in advance!

Cheers,
Luis

lquesada@lucia:~/pyroute$ python gui.py
[poi_base.poiGroup instance at 0xa0c5e4c, poi_base.poiGroup instance 
at 0xa0a750c]

Loading POIs from /home/lquesada/pyroute/Setup/poi.txt
Error while parsing file
No GPSD detected, position information will not be available
No such tracklog data/sketches/latest.gpx
No such tracklog data/track.gpx
Loading OSM data from data/routing.osm
No such data file data/routing.osm
Traceback (most recent call last):
  File gui.py, line 336, in do_expose_event
return self._expose_cairo(event, cr)
  File gui.py, line 332, in _expose_cairo
self.draw(cr)
  File gui.py, line 257, in draw
self.modules['tiles'].draw(cr)
  File /home/lquesada/pyroute/tiles.py, line 156, in draw
self.loadImage(x,y,z,layer)
  File /home/lquesada/pyroute/tiles.py, line 98, in loadImage
self.images[name]  = cairo.ImageSurface.create_from_png(filename)
MemoryError
Traceback (most recent call last):
  File gui.py, line 336, in do_expose_event
return self._expose_cairo(event, cr)
  File gui.py, line 332, in _expose_cairo
self.draw(cr)
  File gui.py, line 257, in draw
self.modules['tiles'].draw(cr)
  File /home/lquesada/pyroute/tiles.py, line 156, in draw
self.loadImage(x,y,z,layer)
  File /home/lquesada/pyroute/tiles.py, line 98, in loadImage
self.images[name]  = cairo.ImageSurface.create_from_png(filename)
MemoryError
Traceback (most recent call last):
  File gui.py, line 336, in do_expose_event
return self._expose_cairo(event, cr)
  File gui.py, line 332, in _expose_cairo
self.draw(cr)
  File gui.py, line 257, in draw
self.modules['tiles'].draw(cr)
  File /home/lquesada/pyroute/tiles.py, line 156, in draw
self.loadImage(x,y,z,layer)
  File /home/lquesada/pyroute/tiles.py, line 98, in loadImage
self.images[name]  = cairo.ImageSurface.create_from_png(filename)
MemoryError

--
Luis Quesada
Research Scientist
Cork Constraint Computation Centre
University College Cork
Cork - Ireland
Phone:  (+353) 21 420 5376
Fax:(+353) 21 420 5369
Web:http://4c.ucc.ie/~lquesada


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Pyroute share server

2008-07-03 Thread OJ W
GPX:

http://dev.openstreetmap.org/~ojw/pos/?A=getfmtG=1RP=FMT=gpx


anyone wants a different output format, please send a modified copy of:

http://svn.openstreetmap.org/sites/other/ranaShareServer/index.php



On Thu, Jul 3, 2008 at 12:33 AM,  [EMAIL PROTECTED] wrote:

 if anyone wants to do an openlayers web-viewer for the data that would
 be nice (currently the server is just text-based). The interface for
 getting data is:

 http://dev.openstreetmap.org/~ojw/pos/?A=getG=1RP=

 where G is the group number, and RP is the password (numeric) for
 reading that group's data


 Are you set on the format for the output

 Would it be possible to output in a known format (KML, GPX, etc), that way
 the URL could be piped direct into OpenLayers to produce a magical map.

 Simon.



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


[OSM-talk] Pyroute share server

2008-07-02 Thread OJ W
Hi. I did a little web application for sharing your position with a group:

http://wiki.openstreetmap.org/index.php/Rana_share_server

there's a python client for it at:

http://svn.openstreetmap.org/applications/mobile/rana/modules/mod_shareServer.py



if anyone wants to do an openlayers web-viewer for the data that would
be nice (currently the server is just text-based). The interface for
getting data is:

http://dev.openstreetmap.org/~ojw/pos/?A=getG=1RP=

where G is the group number, and RP is the password (numeric) for
reading that group's data

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Pyroute share server

2008-07-02 Thread simon

 if anyone wants to do an openlayers web-viewer for the data that would
 be nice (currently the server is just text-based). The interface for
 getting data is:

 http://dev.openstreetmap.org/~ojw/pos/?A=getG=1RP=

 where G is the group number, and RP is the password (numeric) for
 reading that group's data


Are you set on the format for the output

Would it be possible to output in a known format (KML, GPX, etc), that way
the URL could be piped direct into OpenLayers to produce a magical map.

Simon.


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk