mapserver not compiled with postgis support
Doug B
ummmmm22 at GMAIL.COM
Tue Feb 20 08:54:30 PST 2007
Thanks, Paul. That was it. Since there's only one "make" for the
mapserv executable and the mapscript.so, I assumed that both would be
copied during the install-force step. I guess I forgot that wasn't
the case.
Doug
On 2/20/07, Paul Ramsey <pramsey at refractions.net> wrote:
> Doug,
>
> Note that the error is "PHP Warning", so your mapserv executable doesn't
> enter into the equation. What you *do* have is a php_mapscript.so which
> doesn't have PostGIS support compiled in somewhere in your installation.
>
> Pau
>
> Doug B wrote:
> > Thought about that, but "find" only finds 2 copies, one in the src
> > directory from which I compiled, and one in /usr/local/bin where
> > install-force copied it. (And both are identical in size, which
> > confirms for me that they're the same file.)
> >
> > As far as other libraries, I have no idea which they'd be. As far as
> > I know, it's only the MapServer compile which uses it.
> >
> > Doug
> >
> > On 2/20/07, David Potts <dave.potts at pinan.co.uk> wrote:
> >> Is it possible that you have more than one version of mapserver on your
> >> system ? or that any library that your using does not have postgis
> >> compiled in?
> >> D.
> >> > [Tue Feb 20 09:29:25 2007] [error] [client 32.86.231.32] PHP Warning:
> >> > [MapServer Error]: msDrawMap(): Failed to draw layer named
> >> > 'Offender_PostGIS'.
> >> > [Tue Feb 20 09:29:25 2007] [error] [client 32.86.231.32] in
> >> > /var/www/html/offender/map.php on line 87
> >> > [Tue Feb 20 09:29:25 2007] [error] [client 32.86.231.32] PHP Warning:
> >> > [MapServer Error]: msPOSTGISLayerOpen(): msPOSTGISLayerOpen called but
> >> > unimplemented! (mapserver not compiled with postgis support)
> >> > [Tue Feb 20 09:29:25 2007] [error] [client 32.86.231.32] in
> >> > /var/www/html/offender/map.php on line 87
> >> > [Tue Feb 20 09:29:25 2007] [error] [client 32.86.231.32] PHP Fatal
> >> > error: Object expected as argument. in /var/www/html/offender/map.php
> >> > on line 106
> >> >
> >> > I did configure with --with-postgis=<path to pg_config> and mapserv -v
> >> > reports:
> >> >
> >> > MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> >> > OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS
> >> > INPUT=SHAPEFILE
> >> >
> >> > Would I get a different error if postgis support was actually included
> >> > but the layer or the postgis configuration wasn't correct?
> >> >
> >> > Thanks again for the help.
> >> > Doug
> >> >
> >>
> >>
> >>
>
>
> --
>
> Paul Ramsey
> Refractions Research
> http://www.refractions.net
> pramsey at refractions.net
> Phone: 250-383-3022
> Cell: 250-885-0632
>
More information about the MapServer-users
mailing list