On Fri, 2009-01-02 at 10:38 -0800, Mikel Maron wrote:
> 
> Christopher Schmidt <[email protected]> wrote:
> 
> >> Also, when running mod_tile's renderd, I get the following error. I
> would've thought that gdal supplied the adaptor for shape files, and
> that seems to be picked up by the compiler. Is there some other
> configuration or set up I'm missing?
> >
> > GDAL doesn't provide the shape plugin; the shapefile plugin is
> internal
> > to Mapnik.
> 
> 
> Ok, I honestly haven't spent a lot of time looking into the internals,
> and I'm not familiar with scons .. simply trying to get OSM tile
> rendering running on a box. I've gotten this working for other
> installs, but mapnik seems pretty sensitive to the particulars of each
> machine, and for whatever reason hitting these problems. I'll dig in
> if I must, but was hoping the solution to the problem was easy to
> spot.
> 
> 
> So the immediate problem is this error when I run renderd...
> 
>   what():  Could not create datasource. No plugin found for type
> 'shape' in layer 'world-1'
> 
> And if I comment out the shape type layers
> 
>   what():  Could not create datasource. No plugin found for type
> 'postgis' in layer 'leisure'

I suspect you need to adjust the following line render_config.h

// Mapnik input plugins (will need to adjust for 32 bit libs)
#define MAPNIK_PLUGINS "/usr/local/lib64/mapnik/input"

Make sure that this directory has at least the following plugin files:

* postgis.input
* shape.input

> Besides this, when compiling mapnik, neither the iconv or pq libraries
> are detected.

To get postgresql to be detected you often need to use:
$ scons PGSQL_INCLUDES=/usr/include/postgresql ...

I'm not sure how critical the iconv failure is, it is mainly for UTF-8
handling. If you want the best foreign character support then you
probably want to be running newer code which uses libicu instead of
iconv.

        Jon



_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to