Notices


Reply
Thread Tools
Posts: 223 | Thanked: 323 times | Joined on Dec 2010
#31
Originally Posted by slender View Post
Mahtavaa. Tulipahan mieleen, että pitäisikö tuohon laittaa lisähuomiona, että käyttäjän oletetaan tietävän kuinka mahdollinen palomuuri niin koneella/modeemissa säädetään niin, että tarvittavat portit avataan maailmalle. Tuskin tänne nyt kukaan täysin tietämätön ihan heti eksyy, mutta en nyt kauheasti ihmettele, jos joku valittaa ettei toimi ja kone on esim. NAT:n takana ja kaverilla ei ole mitään hajua siitä miten säädetään, mutta kun ohjeet näytti niin helpoilta
---
Just mumbling about noobs and firewalls & NAT.
Joo pitikin alunperin noista mainita, mutta unohdin. Ei välttämättä mikään kovin tietoturvallinen toi skripti eli ite käytän ainakin vaan paikallisessa verkossa.
 
Posts: 16 | Thanked: 19 times | Joined on Dec 2010
#32
Many thanks to Orava. The guidelines are clear. The python script was easy to install and Apache server, too. Does the script suit to 64 bit system? I have 64 bit SuSe linux 11.3 with all needed packages. From command line: python map.py -z 7 -x 72 -y 36 -s kkp2 results: "Segmentation fault".
 
Mandibela's Avatar
Posts: 270 | Thanked: 195 times | Joined on Aug 2009 @ Finland
#33
Imma warm this thread up. No news with finnish-topomaps sadly!

I found this:

https://projects.forum.nokia.com/ovi.../documentation

Could someone make Mappero use tiles from ovi maps? That could be useful... Not anywhere near the usability of NLS map data, but another tile renderer service nonetheless: https://projects.forum.nokia.com/ovi.../wiki/examples look usable. I'm not too familiar with the Mappero method of requesting tiles... A friendly person could share a suitable method maybe?

In the future, it would be nice to have the ovi map data merged with the digital format available today (for purchase)... like http://www.paikkatietoikkuna.fi - all NLS data is available in vector format alrady, Nokia could purchase the extra data (maybe already has? =) to make an alternative map data source available (for all ovi maps clients), offering similar info as available from NLS in the form of those (old) topomaps. I've seen some garmin handheld GPS devices with vector data on them, they're not too bad looking.
 
Posts: 2,829 | Thanked: 1,459 times | Joined on Dec 2009 @ Finland
#34
@ Mandibela
Did you read this topic fully?
__________________
TMO links: [iSpy] - [Power search] - [Most thanked] - [Cordia - Maemo5 UI on top MeeGo Core] - [CommunitySSU]
 
Posts: 16 | Thanked: 19 times | Joined on Dec 2010
#35
Originally Posted by matinvesi View Post
... python map.py -z 7 -x 72 -y 36 -s kkp2 results: "Segmentation fault".
Server is up and fetching maps to Mappero. Amazing. The problem solved when I find a very good Geo -application repository to SuSe 11.3: http://download.opensuse.org/reposit...plication:/Geo and updated all relevant packages.
 
Mandibela's Avatar
Posts: 270 | Thanked: 195 times | Joined on Aug 2009 @ Finland
#36
Originally Posted by slender View Post
@ Mandibela
Did you read this topic fully?
Yes.



ö
 
Posts: 3 | Thanked: 0 times | Joined on Mar 2011
#37
Can similar trick be done with (or for) N810?
What you have discussed about Mappero looks different in Maemo Mapper.

I guess the maps were anyway loaded from the same place before somebody screw up this whole (really nice) thing.

(Answer in Finnish would be also accepted)
 
Posts: 87 | Thanked: 56 times | Joined on Nov 2008
#38
This works for Maemo Mapper also. Just set up repository in Maemo Mapper like it is done there, and use same (well...your own server) urls for repository like instructed in first page of this thread.
 
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
 
Posts: 18 | Thanked: 6 times | Joined on Oct 2010
#40
I'm running Ubuntu 8.04 on my server and I get the following error (after going through dependency-hell for an hour or so):

Code:
# python map.py
Traceback (most recent call last):
  File "map.py", line 11, in <module>
    from osgeo import gdal
ImportError: No module named osgeo
Help?
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 19:49.