[Mapserver-users] postgis and java mapscript

unicoletti at prometeo.it unicoletti at prometeo.it
Fri May 14 08:12:25 EDT 2004


A simple and general way to tell whether you have postgres support in your
libmapscript.so
is to run (on linux)

ldd libmapscript.so

This prints all libraries that mapscript is linked to.
You have Postgres if libpq is present.

HTH,
UMBERTO

Quoting Tomas Brandalik <Tomas.Brandalik at Sun.COM>:

> ok, that was wrong compilation without postgis support. Now it works 
> fine with these settings:
> 
> CCFLAGS=-DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG 
> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL
> LDFLAGS=-L/usr/local/lib/swig1.3 -L../.. -L. -lmap -lgd -L/usr/local/lib 
> -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lgdal 
> -L/usr/local/pgsql/lib -lpq -lm -lstdc++
> 
> -Tomas
> 
> Tomas Brandalik wrote:
> 
> > No, I use same map file and generate only simple png without any 
> > manipulation.  But maybe problem is in compilation libmapscript.so 
> > with postgis enabled.  I am not sure if I did it properly. will 
> > investigate further
> > -Tomas
> >
> > Sean Gillies wrote:
> >
> >> On May 13, 2004, at 9:24 AM, Tomas Brandalik wrote:
> >>
> >>> I am running mapserver4.0.2 compiled with postgis0.8.1 extension. It 
> >>> works fine through cgi but not from java/mapscript.
> >>> java/mapscript library generates expected png file if datasources 
> >>> were shapefiles but no output or even error shows up when 
> >>> datasources were postgis.
> >>> I can't find any log or whatever would help me find the problem.
> >>> Have anybody seen this before?
> >>>
> >>> -Tomas
> >>>
> >>
> >> Tomas, mapscript uses the same code as mapserver, so this is unexpected.
> >> Are you using the same map config file in each case?  Are you using
> >> mapscript to modify any of the postgis layer's attributes?  Setting
> >> filters or classitems?
> >>
> >> Sean
> >>
> >>
> >>
> >>
> >> -- 
> >> Sean Gillies
> >> sgillies at frii dot com
> >> http://users.frii.com/sgillies
> >>
> >
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 






More information about the mapserver-users mailing list