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)

cjp 2010-12-12 09:01

Re: License for Finnish topo maps has expired?
 
You guys are crazy hackers and I love you.

I hope everything works out for all of you o/

orava 2010-12-12 18:32

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

Originally Posted by purgiaali (Post 895070)
Tanheis
You might have older vesion of libgdal installed.


I seem to have found a bug in the script.

Attachment 16289
map.py?kpp/15/18606/9313.png

I'm not totally sure what's causing that but changing script to do transformation to bigger map image seems to fix it. This can be done by replacing the number 0.4 with 0.5 on the line 46.

tanheis 2010-12-12 19:14

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

Originally Posted by purgiaali (Post 895070)
Tanheis
You might have older vesion of libgdal installed.

I updated libgdal.

Still not working.

apache2 log:
Code:

[Sun Dec 12 21:08:31 2010] [error] [client ::1] SystemExit: 1
[Sun Dec 12 21:09:45 2010] [notice] mod_python (pid=1442, interpreter='::1'): Reimporting module '/var/www/py/map.py'
[Sun Dec 12 21:09:46 2010] [notice] mod_python (pid=1442, interpreter='::1'): Reimporting module '/var/www/py/fetch_map.py'
[Sun Dec 12 21:09:46 2010] [error] [client ::1] mod_python (pid=1442, interpreter='::1', phase='PythonHandler', handler='mod_python.publisher'): Application error
[Sun Dec 12 21:09:46 2010] [error] [client ::1] ServerName: '::1'
[Sun Dec 12 21:09:46 2010] [error] [client ::1] DocumentRoot: '/var/www'
[Sun Dec 12 21:09:46 2010] [error] [client ::1] URI: '/py/map.py'
[Sun Dec 12 21:09:46 2010] [error] [client ::1] Location: None
[Sun Dec 12 21:09:46 2010] [error] [client ::1] Directory: '/var/www/'
[Sun Dec 12 21:09:46 2010] [error] [client ::1] Filename: '/var/www/py/map.py'
[Sun Dec 12 21:09:46 2010] [error] [client ::1] PathInfo: ''
[Sun Dec 12 21:09:46 2010] [error] [client ::1] Traceback (most recent call last):
[Sun Dec 12 21:09:46 2010] [error] [client ::1]  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n    default=default_handler, arg=req, silent=hlist.silent)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1229, in _process_target\n    result = _execute_target(config, req, object, arg)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1128, in _execute_target\n    result = object(arg)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]  File "/usr/lib/python2.6/dist-packages/mod_python/publisher.py", line 213, in handler\n    published = publish_object(req, object)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]  File "/usr/lib/python2.6/dist-packages/mod_python/publisher.py", line 425, in publish_object\n    return publish_object(req,util.apply_fs_data(object, req.form, req=req))
[Sun Dec 12 21:09:46 2010] [error] [client ::1]  File "/usr/lib/python2.6/dist-packages/mod_python/util.py", line 554, in apply_fs_data\n    return object(**args)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]  File "/var/www/py/map.py", line 513, in index\n    im = getTile(z,x,y, service)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]  File "/var/www/py/map.py", line 79, in getTile\n    fmservice = fetch_map.GetFMService(SERVICE_CODE)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]  File "/var/www/py/fetch_map.py", line 407, in GetFMService\n    sys.exit(1)
[Sun Dec 12 21:09:46 2010] [error] [client ::1] SystemExit: 1

This is what I get to www-browser..
Code:

MOD_PYTHON ERROR

ProcessId:      1443
Interpreter:    '::1'

ServerName:    '::1'
DocumentRoot:  '/var/www'

URI:            '/py/map.py'
Location:      None
Directory:      '/var/www/'
Filename:      '/var/www/py/map.py'
PathInfo:      ''

Phase:          'PythonHandler'
Handler:        'mod_python.publisher'

Traceback (most recent call last):

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1229, in _process_target
    result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1128, in _execute_target
    result = object(arg)

  File "/usr/lib/python2.6/dist-packages/mod_python/publisher.py", line 213, in handler
    published = publish_object(req, object)

  File "/usr/lib/python2.6/dist-packages/mod_python/publisher.py", line 425, in publish_object
    return publish_object(req,util.apply_fs_data(object, req.form, req=req))

  File "/usr/lib/python2.6/dist-packages/mod_python/util.py", line 554, in apply_fs_data
    return object(**args)

  File "/var/www/py/map.py", line 513, in index
    im = getTile(z,x,y, service)

  File "/var/www/py/map.py", line 79, in getTile
    fmservice = fetch_map.GetFMService(SERVICE_CODE)

  File "/var/www/py/fetch_map.py", line 407, in GetFMService
    sys.exit(1)

SystemExit: 1


MODULE CACHE DETAILS

Accessed:      Sun Dec 12 21:13:13 2010
Generation:    6

_mp_fd12b95901119bc5973f096a3acd7cf2 {
  FileName:    '/var/www/py/coordinates.py'
  Instance:    1
  Generation:  1
  Modified:    Fri Aug  6 16:36:29 2010
  Imported:    Sun Dec 12 21:08:29 2010
}

_mp_67ddd361d50674d6ee9af4d957be66c6 {
  FileName:    '/var/www/py/fetch_map.py'
  Instance:    2 [RELOAD]
  Generation:  7
  Modified:    Sun Dec 12 21:09:19 2010
  Imported:    Sun Dec 12 21:13:13 2010
  Children:    '/var/www/py/coordinates.py',
                '/var/www/py/fms.py',
                '/var/www/py/fms_kkp.py',
                '/var/www/py/fms_rka.py'
}

_mp_c5e1beab0460b294bbab446b8d633cf6 {
  FileName:    '/var/www/py/fms.py'
  Instance:    1
  Generation:  2
  Modified:    Thu Feb 11 22:01:48 2010
  Imported:    Sun Dec 12 21:08:29 2010
}

_mp_f5f3091beb3a9fcdc266bb60b0f0d9f2 {
  FileName:    '/var/www/py/fms_kkp.py'
  Instance:    1
  Generation:  3
  Modified:    Sat Dec 11 22:42:48 2010
  Imported:    Sun Dec 12 21:08:29 2010
  Children:    '/var/www/py/coordinates.py',
                '/var/www/py/fms.py'
}

_mp_3b50c43383e854a21433025c31deeaff {
  FileName:    '/var/www/py/fms_rka.py'
  Instance:    1
  Generation:  4
  Modified:    Wed Nov  3 13:50:13 2010
  Imported:    Sun Dec 12 21:08:29 2010
  Children:    '/var/www/py/coordinates.py',
                '/var/www/py/fms.py'
}

_mp_9c79b27f7f602d61fc4d48f3a5f2dbac {
  FileName:    '/var/www/py/map.py'
  Instance:    2 [RELOAD]
  Generation:  8
  Modified:    Sun Dec 12 21:09:19 2010
  Imported:    Sun Dec 12 21:13:13 2010
  Children:    '/var/www/py/coordinates.py',
                '/var/www/py/fetch_map.py'
}


orava 2010-12-12 20:07

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

Originally Posted by tanheis (Post 895408)
I updated libgdal.

Still not working.

You have maybe misspelled the map service part(kkp, kkp2, rka, rka2...) in the URL?

tanheis 2010-12-14 22:21

Re: License for Finnish topo maps has expired?
 
Got it working.
Thanks for the script!

orava 2010-12-18 09:11

Re: License for Finnish topo maps has expired?
 
I added Finnish instructions how to use script on Windows to post #6 (http://talk.maemo.org/showpost.php?p=890055&postcount=6)

slender 2010-12-18 11:10

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

Originally Posted by orava (Post 899271)
I added Finnish instructions how to use script on Windows to post #6 (http://talk.maemo.org/showpost.php?p=890055&postcount=6)

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.

purgiaali 2010-12-18 13:39

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

Originally Posted by orava (Post 899271)
I added Finnish instructions how to use script on Windows to post #6 (http://talk.maemo.org/showpost.php?p=890055&postcount=6)

This might be lighter solution than mine. :)

I used the script in a virtual machine with debian in my windows machine. That felt easier for me.

I also tried running the script in easy-debian chroot in n900, but that turned out to be way too slow. :(

jussihoo 2010-12-19 17:33

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

Originally Posted by orava (Post 899271)
I added Finnish instructions how to use script on Windows to post #6 (http://talk.maemo.org/showpost.php?p=890055&postcount=6)

Apache tuossa varmasti myös tarvitaan ja se mod_pyton eikö niin? Windows ohjeissa ei tätä mainittu ollenkaan.

Onko väliä mikä Apachen versio siellä pyörii? Toimiiko noilla ohjeilla XP:llä ja Windows 7:lla.

Suuret kiitokset! :)

orava 2010-12-19 20:04

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

Originally Posted by jussihoo (Post 900043)
Apache tuossa varmasti myös tarvitaan ja se mod_pyton eikö niin? Windows ohjeissa ei tätä mainittu ollenkaan.

Onko väliä mikä Apachen versio siellä pyörii? Toimiiko noilla ohjeilla XP:llä ja Windows 7:lla.

Suuret kiitokset! :)

Tossa käytetään CherryPy:tä web-palvelimena eli ei tartte Apachea eikä mod_pythonia. XP:llä toimii ainakin, varmaan seiskallakin.


All times are GMT. The time now is 12:26.

vBulletin® Version 3.8.8