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 2011-05-02 17:59

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

Originally Posted by _mikey (Post 998833)
Hi, I installed prereqs using X-term and then Mapsi successfully.
Mapsi starts with blank (black) screen. So its not working properly.

Could you try to run it from X-term and see whether any output is written to terminal. Also if you could check is there "/home/user/MyDocs/.mapsi" directory and in that dir is there "settings.ini" file.

Quote:

Originally Posted by _mikey (Post 998833)
When its working:
Is it possible to select needed maps from Paikkatietoikkuna like marine etc?

At the moment Mapsi only uses "background" map from Paikkatietoikkuna and layers aren't supported.

Mandibela 2011-05-03 07:01

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

Originally Posted by orava (Post 997757)
Hmm.. I guess that you'll need to enable extras-devel to get those packages.

Yes, I had it enabled. Had to install them manually. Mapsi works!

It has a drawing bug on the bottom scale/distance slider.

Looks promising..

niekko 2011-05-03 18:17

Re: License for Finnish topo maps has expired?
 
I had the black screen issue as well. I ran mapsi from the terminal (/opt/usr/bin/Mapsi) and saw this:

Code:

qrc:/qml/Main.qml:1:1: module "QtQuick" is not installed
So, I installed the required package (qtquickcompat) and mapsi is now working.

Metsämies 2011-05-03 18:55

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

Originally Posted by orava (Post 997757)
Hmm.. I guess that you'll need to enable extras-devel to get those packages.

Extras-devel is enabled, not found!

orava 2011-05-04 07:11

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

Originally Posted by Metsämies (Post 999589)
Extras-devel is enabled, not found!

Make sure you have line "deb http://repository.maemo.org/extras-devel fremantle free" in file "/etc/apt/sources.list.d/hildon-application-manager.list", and then try "apt-get update && apt-get install libqtm-11-location qtquickcompat". Or you can download and install those manually (http://repository.maemo.org/extras-d...tle8_armel.deb, http://repository.maemo.org/extras-d....1.0_armel.deb).

Metsämies 2011-05-04 16:15

Re: License for Finnish topo maps has expired?
 
Something is still wrong? I got still following messages:

Building dependency tree
Reading state information... Done
libqtm-11-location is already the newest version.
qtquickcompat is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
mapsi: Depends: libqtm-11 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
/home/user #

Actually Mapsi without icon is installed, but when I click it, only black screen is shown.

orava 2011-05-04 17:52

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

Originally Posted by Metsämies (Post 1000115)
Something is still wrong? I got still following messages:

Building dependency tree
Reading state information... Done
libqtm-11-location is already the newest version.
qtquickcompat is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
mapsi: Depends: libqtm-11 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
/home/user #

Actually Mapsi without icon is installed, but when I click it, only black screen is shown.

That libqtm-11 package is not actually needed, I will remove it from depends list when I upload next version.

You can try to run it from terminal to see if any error messages show up.

The icon probably appears after reboot.

_mikey 2011-05-04 19:02

Re: License for Finnish topo maps has expired?
 
Reboot and installing qtquickcompat fixed my blank Mapsi problem.
Looks and works great.

Is it possible to delete landmarks?

javali 2011-05-05 06:03

Re: License for Finnish topo maps has expired?
 
With the following patch and the latest fetch_map_v30l i was able to get the limit of cadastral units (kiinteistörajat) to my Maemo Mapper on N810.
The usage is like orto but word orto is replaced by ktjraja
for example URL:
http://YourServerIP/MapDir/map.py?ktjraja/%0d/%d/%d.png
or
http://YourServerIP/MapDir/map.py?kt.../%0d/%d/%d.png
Code:

--- map.py.ori        2011-04-08 15:59:56.000000000 +0300
+++ map.py        2011-04-27 09:13:11.000000000 +0300
@@ -39,6 +39,14 @@
        orto = 1
        SERVICE_CODE = 'kkp2'
 
+    ktjraja = 0
+    if SERVICE_CODE == 'ktjraja':
+      ktjraja = 1
+      SERVICE_CODE = 'kkp'
+    elif SERVICE_CODE == 'ktjraja2':
+      ktjraja = 1
+      SERVICE_CODE = 'kkp2'
+
    # Kansalaisen karttapaikka
    if SERVICE_CODE == 'kkp':
        if z < z_levels_kkp[0] or z > z_levels_kkp[1]:
@@ -87,6 +95,9 @@
    if( orto ):
        fmservice.HandleParameter("--orto")
 
+    if( ktjraja ):
+        fmservice.HandleParameter("--ktjraja")
+
    (COORDTYPE, C_E, C_N) = fmservice.TranslateToServiceCoordinatesXY(COORDTYPE, c_coords['E'], c_coords['N'])
    (im, ozi_map_data) = Fetch_And_Return_Map(fmservice, COORDTYPE, C_N, C_E, size, size, parameters)
 
@@ -125,7 +136,7 @@
    in_ds.SetGCPs( gcp_list, in_ds.GetProjection() )
 
    out_srs = osr.SpatialReference()
-    out_srs.ImportFromEPSG(900913)
+    out_srs.ImportFromEPSG(3857)
    out_ds = gdal.AutoCreateWarpedVRT( in_ds, in_srs.ExportToWkt(), out_srs.ExportToWkt() )
 
    gt = out_ds.GetGeoTransform()


orava 2011-05-05 09:06

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

Originally Posted by _mikey (Post 1000200)
Is it possible to delete landmarks?

If you press and hold landmarks icon you will get menu from where you can clear all landmarks. I will add support for deleting single landmarks in the next version.


All times are GMT. The time now is 16:09.

vBulletin® Version 3.8.8