maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   License for Finnish topo maps has expired? (https://talk.maemo.org/showthread.php?t=65922)

orava 2010-12-19 20:48

Re: License for Finnish topo maps has expired?
 
Quote:

Originally Posted by slender (Post 899310)
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.

matinvesi 2010-12-28 07:05

Re: License for Finnish topo maps has expired?
 
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 2011-01-05 19:53

Re: License for Finnish topo maps has expired?
 
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.

slender 2011-01-11 20:23

Re: License for Finnish topo maps has expired?
 
@ Mandibela
Did you read this topic fully?

matinvesi 2011-01-13 19:55

Re: License for Finnish topo maps has expired?
 
Quote:

Originally Posted by matinvesi (Post 905804)
... 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 2011-03-02 19:19

Re: License for Finnish topo maps has expired?
 
Quote:

Originally Posted by slender (Post 918141)
@ Mandibela
Did you read this topic fully?

Yes.



ö

justjuha 2011-03-14 22:24

Re: License for Finnish topo maps has expired?
 
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);)

sconf 2011-03-15 08:30

Re: License for Finnish topo maps has expired?
 
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.

Atrakki 2011-03-15 20:42

Re: License for Finnish topo maps has expired?
 
Hello,

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

Quote:

[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ä!

ofroberg 2011-04-01 13:45

Re: License for Finnish topo maps has expired?
 
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?


All times are GMT. The time now is 15:58.

vBulletin® Version 3.8.8