[mapserver-users] installing and configuring mapcache

Mr. Puneet Kishor punk.kish at gmail.com
Sun Sep 18 13:23:35 EDT 2011


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?

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?

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



More information about the mapserver-users mailing list