[OSM-dev] map disappear on YourS local installation

Anwar Azulfa anwar at troyans.net
Mon Dec 26 05:34:37 GMT 2011


Hi Cartinus,



Now i use German.pak which i downloaded from
http://dev.openstreetmap.de/gosmore/
Firstly when i try routing with accessing localhost on browser it doesn't
work, becuase of this code i think:

*/*switch ($layer) {
case 'cn':
    $gosmore = '/normal';
    $style = 'cyclestyles.xml';
    break;
case 'test':
    $gosmore = '/test';
    $style = 'elemstyles.xml';
    break;
default:
    $gosmore = '/normal';
    $style = 'genericstyles.xml';
    break;
}

$dir = $yours_dir.$gosmore;*


when i check on some folders, i can't get some xml file include gosmore.i
found  *elemstyles.xml* only.
After i commented these line and change

*$dir = $yours_dir.$gosmore;*

be

*$dir = $yours_dir;*

Now my routing works well.I can create route on Germany map. :) .Its
running on ubuntu 10.10


But now i try using it on Ubuntu 11.10 server.

After i checkout source then  i got error when execute :

*$ make
gcc -lm density.c -o density
/tmp/ccNQSatu.o: In function `main':
density.c:(.text+0x21f): undefined reference to `exp'
density.c:(.text+0x224): undefined reference to `atan'
density.c:(.text+0x2c3): undefined reference to `exp'
density.c:(.text+0x2c8): undefined reference to `atan'
density.c:(.text+0x5d3): undefined reference to `exp'
density.c:(.text+0x5d8): undefined reference to `atan'
density.c:(.text+0x67a): undefined reference to `exp'
density.c:(.text+0x67f): undefined reference to `atan'
density.c:(.text+0x723): undefined reference to `exp'
density.c:(.text+0x728): undefined reference to `atan'
density.c:(.text+0x793): undefined reference to `exp'
density.c:(.text+0x798): undefined reference to `atan'
collect2: ld returned 1 exit status
make: *** [jni/bboxes.c] Error 1*



is it bug of gosmore or what is this ?


Thks

2011/12/26 Cartinus <cartinus at xs4all.nl>

> Hello,
>
> It doesn't find a route because the start point and the end point of your
> query are somewhere in Europe.
>
> flat and flon are the latitude and longitude of the start point.
> tlat and tlon are the latitude and longitude of the end point.
>
> Try these values. They should be somewhere in Bandung
> flat=-6.91469526290894&flon=**107.634368896484&tlat=-6.**
> 91350746154785tlon=107.**643768310547&
>
> ---
> m.v.g.,
> Cartinus
>
>
> On 12/26/2011 03:25 AM, Anwar Azulfa wrote:
>
>> I have configure and make this source, but when i try to execute :
>>
>> *QUERY_STRING="flat=52.396545&**flon=4.915714&tlat=52.373075&**
>> tlon=4.901638&fast=0&v=**motorcar"
>> ./gosmore*
>> *
>>
>> *
>> [this is output]
>> maple at maple:~/src/gosmore$
>> QUERY_STRING="flat=52.396545&**flon=4.915714&tlat=52.373075&**
>> tlon=4.901638&fast=0&v=**motorcar"
>> ./gosmore
>> Content-Type: text/plain
>>
>> *No route found*
>>
>>
>>
>> this is log when i configure, make and make install :
>> http://pastebin.com/qQPj1C0f
>>
>> note:
>> I only rebuild Indonesia.osm.bz2 use gosmore,
>>
>>
>> Help me,please
>>
>>
>> 2011/12/24 Nic Roets <nroets at gmail.com <mailto:nroets at gmail.com>>
>>
>>
>>
>>
>>    On Thu, Dec 22, 2011 at 5:36 PM, Anwar Azulfa <anwar at troyans.net
>>    <mailto:anwar at troyans.net>> wrote:
>>
>>        i have checkout from
>>        http://svn.openstreetmap.org/**applications/routing/yours/**
>> branches/version-1.0-via<http://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via>
>>
>>        now, map is appear. but when i try to make routing, i get error
>>        again
>>
>>
>>        this is step which i did :
>>
>>        1. i following reference from
>>        http://wiki.openstreetmap.org/**wiki/YOURS<http://wiki.openstreetmap.org/wiki/YOURS>and checkout from
>>        http://svn.openstreetmap.org/**applicatio<http://svn.openstreetmap.org/applicatio>… on-1.0-via
>>        <http://svn.openstreetmap.org/**applications/routing/yours/**
>> branches/version-1.0-via<http://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via>
>> >
>>
>>
>>        2. i checkout gosmore source from
>>        http://svn.openstreetmap.org/**applicatio<http://svn.openstreetmap.org/applicatio>… ng/gosmore
>>        <http://svn.openstreetmap.org/**applications/rendering/gosmore<http://svn.openstreetmap.org/applications/rendering/gosmore>
>> **>
>>
>>
>>        3.download file .pak and rename to gosmore.pak.i put this file
>>        inside gosmore folder
>>
>>        4. i put YOURS/* to /var/www so i can acces it via browser with
>>        http://localhost
>>        now i can access map, but when i make a route from one location
>>        to another location and click find route, error message :Status:
>>        An unexpected error occured in Gosmore: appear
>>
>>        i check on /var/log/apache2/error.log and i get this error message
>> :
>>
>>        *[Thu Dec 22 22:29:48 2011] [error] [client 127.0.0.1] PHP
>>
>>        Notice:  Undefined index: format in
>>        /home/maple/yours/api/1.0/**gosmore.php on line 105, referer:
>>        http://localhost/*
>>
>>        *nice: ./gosmore: No such file or directory*
>>
>>        *
>>
>>        *
>>
>>        What should i do to solve this ?
>>
>>
>>    Inside the gosmore folder, you should run
>>
>>      ./configure
>>      make
>>
>>    Currently, gosmore will not compile with HEADLESS. I suggest you
>>    compile with gtk+2 includes and libraries installed. Or you can
>>    check out a version what is more than 3 months old.
>>
>>    It is also a good idea to test routing from the command line before
>>    you test YOURS e.g.
>>    QUERY_STRING="flat=52.396545&**flon=4.915714&tlat=52.373075&**
>> tlon=4.901638&fast=0&v=**motorcar"
>>    ./gosmore
>>
>>    Regards,
>>    Nic
>>
>
> ______________________________**_________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.**org/listinfo/dev<http://lists.openstreetmap.org/listinfo/dev>
>



-- 
Regards,
M.Iftakhul Anwar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20111226/0f0bf922/attachment.html>


More information about the dev mailing list