View Single Post
Posts: 6 | Thanked: 0 times | Joined on Aug 2010
#39
Hello,

I got a following message while trying to fetch the tiles to my phone.

[15/Mar/2011:21:31:40] HTTP
Request Headers:
HOST: 192.168.11.4
TE: trailers
USER-AGENT: gnome-vfs/2.16.3 neon/0.25.4
CONNECTION: TE
Remote-Addr: 192.168.11.3
192.168.11.3 - - [15/Mar/2011:21:31:40] "GET /fmap/kkp/14/9451/4480.png HTTP/1.1" 500 1998 "" "gnome
-vfs/2.16.3 neon/0.25.4"
Progress: 0.0 %, images left 4 (cached, fetched, blank: 3, 1, 0)
Using cached map image (N,E)=(6969460.00, 532800.00)
Progress: 25.0 %, images left 3 (cached, fetched, blank: 2, 1, 0)
Fetched map image (N,E)=(6969460.00, 535200.00)
Progress: 50.0 %, images left 2 (cached, fetched, blank: 2, 0, 0)
Using cached map image (N,E)=(6971640.00, 532800.00)
Progress: 75.0 %, images left 1 (cached, fetched, blank: 1, 0, 0)
Using cached map image (N,E)=(6971640.00, 535200.00)
ERROR 4: Unable to open EPSG support file gcs.csv.
Try setting the GDAL_DATA environment variable to point to the
directory containing EPSG csv files.
ERROR 5: Access window out of range in RasterIO(). Requested
(636740,-524566) of size 611x611 on raster of 500x501.
[15/Mar/2011:21:31:43] HTTP Traceback (most recent call last):
File "C:\Python27\lib\site-packages\cherrypy\_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "C:\Python27\lib\site-packages\cherrypy\_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "C:\fmap\map-win.py", line 479, in fmap
im = getTile(int(z),int(x),int(y), service)
File "C:\fmap\map-win.py", line 147, in getTile
scanline = out_ds.ReadAsArray( int(xoff), int(yoff), int(xsize), int(ysize) )
File "C:\Python27\lib\site-packages\osgeo\gdal.py", line 686, in ReadAsArray
return gdalnumeric.DatasetReadAsArray( self, xoff, yoff, xsize, ysize, buf_obj )
File "C:\Python27\lib\site-packages\osgeo\gdal_array.py", line 193, in DatasetReadAsArray
array_list.append( numpy.reshape( band_array, [1,ysize,xsize] ) )
File "C:\Python27\lib\site-packages\numpy\core\fromnumeric.py", line 169, in reshape
return _wrapit(a, 'reshape', newshape, order=order)
File "C:\Python27\lib\site-packages\numpy\core\fromnumeric.py", line 37, in _wrapit
result = getattr(asarray(obj),method)(*args, **kwds)
ValueError: total size of new array must be unchanged
I did everything as it's said in the installation guide, but i had to download a new version of the GDAL-1.8.0.win32-py2.7.exe.

It download the map tiles to my computer, but it doesn't show/load them in my phone.

Problem solved! I simply forgot to save those enviroment variables.

Tuhannet kiitokset oravalle hienosta skriptistä!

Last edited by Atrakki; 2011-03-16 at 10:36. Reason: Solved