[mapserver-users] installing and configuring mapcache

thomas bonfort thomas.bonfort at gmail.com
Sun Sep 18 14:48:03 EDT 2011


On Sun, Sep 18, 2011 at 11:23, Mr. Puneet Kishor <punk.kish at gmail.com> wrote:
> installation mostly went well except for pixman. The install docs say, I should have the following incantation
>
>        --with-pixman=[yes|no|/path/to/pkgconfig/pixman.pc]
>
> I installed pixman and have the following
>
> $ll /opt/local/include/pix*
> total 88
> -rw-r--r--  1 root  admin   1739 Sep 18 11:35 pixman-version.h
> -rw-r--r--  1 root  admin  39608 Sep 18 11:35 pixman.h
>
> $ll /opt/local/lib/libpix*
> -rwxr-xr-x  1 root  admin  474024 Sep 18 11:35 /opt/local/lib/libpixman-1.0.22.2.dylib*
> lrwxr-xr-x  1 root  admin      24 Sep 18 11:35 /opt/local/lib/libpixman-1.0.dylib@ -> libpixman-1.0.22.2.dylib
> -rw-r--r--  1 root  admin  550432 Sep 18 11:35 /opt/local/lib/libpixman-1.a
> lrwxr-xr-x  1 root  admin      24 Sep 18 11:35 /opt/local/lib/libpixman-1.dylib@ -> libpixman-1.0.22.2.dylib
> -rwxr-xr-x  1 root  admin     866 Sep 18 11:35 /opt/local/lib/libpixman-1.la*
>
>
> I am not sure where I would find this pitman.pc. I tried configure-ing with `--with-pixman=/opt/local` but no luck. Suggestions on how I could include pixman?

/opt/local/lib/pkgconfig/pixman-1.pc

>
> Anyway, in the meantime, I dropped pixman support and configured successfully. `make` and `sudo make install-module` added the module to my httpd.conf. But, now I am lost again. Per the docs
>
> ---
> Next, a geocache configuration is mapped to the server url with the following snippet
>
> <IfModule geocache_module>
>    <Directory /path/to/directory>
>       Order Allow,Deny
>       Allow from all
>    </Directory>
>    GeoCacheAlias /geocache "/path/to/directory/geocache.xml"
> </IfModule>
> ---
>
> I can't really parse the above. What is the `path/to/directory` in <Directory ...>? I have the `geocache.xml` in my mapcache src tree; Should I place it somewhere special? Is this `path/to/directory` where the tiles are stored?

it points to the place where the mapcache.xml file is stored. It can
be anywhere accessible by the user that is launching the apache
server. It does not correspond to where the tiles are stored, as
that's configured in mapcache.xml. (the directory where tiles a re
stored should be readable/writable by the user *running* apache (c.f.
httpd.conf)

>
> And, finally, what should I do if I have the following mapserver URL where tile.x, tile.y and zoom are inserted dynamically?
>
> http://<server>/cgi-bin/mapcgi?layers=layer&mode=tile&tilemode=mapcgi&tile=' + tile.x + '+' + tile.y + '+' + zoom

you have to give the url to the *wms* service, not the tile one, i.e.
http://<server>/cgi-bin/mapcgi?map=foo.map

--
thomas

>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


More information about the mapserver-users mailing list