Hi again,
Thanks to both of you.
I think it is a problem with projections, but I don't know how I
should fix it... Anyway I'm not sure that this is the problem, so I
give more info about my issue.
Ogrinfo says:
[EMAIL PROTECTED]:/srv/maps$ ogrinfo -al data/frankestein16/frankestein.shp
INFO: Open of `data/frankestein16/frankestein.shp'
using driver `ESRI Shapefile' successful.
Layer name: frankestein
Geometry: Polygon
Feature Count: 32
Extent: (149532.733262, 4061858.514502) - (246384.733262, 4145546.514502)
Layer SRS WKT:
(unknown)
location: String (255.0)
OGRFeature(frankestein):0
location (String) = frankestein_0_0.tif
POLYGON ((149532.733261565037537
4145546.514501546975225,173932.733261565037537
4145546.514501546975225,173932.733261565037537
4121146.514501546975225,149532.733261565037537
4121146.514501546975225,149532.733261565037537
4145546.514501546975225))
My map file (w/o the other layers):
MAP
NAME DGIS
STATUS ON
SIZE 800 475
EXTENT -180 -90 180 90
UNITS METERS
SHAPEPATH "data"
IMAGETYPE PNG
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
END
CONFIG "PROJ_LIB" "/srv/maps/proj"
WEB
METADATA
"wms_title" "Sistema de Información Geográfica
de Donana (DGIS)"
"wms_onlineresource"
"http://localhost/cgi-bin/mapserv?map=DGIS.map&"
END
END
PROJECTION
"init=epsg:4326"
END
[...] the layers.... [...]
END
And the WMS request I'm doing...
http://192.168.1.16:6969/cgi-bin/mapserv?LAYERS=frankestein&MAP=/srv/maps/DGIS.map&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-6.6796875,36.9140625,-6.50390625,37.08984375&WIDTH=256&HEIGHT=256
The DEBUG ON at the layer level logs in the error.log of apache2:
[Tue Feb 12 15:01:40 2008].994602 msDrawRasterLayerLow(frankestein): entering.
[Tue Feb 12 15:01:40 2008].994816 msDrawMap(): Layer 5 (frankestein), 0.000s
[Tue Feb 12 15:01:41 2008].543673 msDrawRasterLayerLow(frankestein): entering.
[Tue Feb 12 15:01:41 2008].543878 msDrawMap(): Layer 5 (frankestein), 0.000s
Could anyone point me to solve my problem?
Thanks in advance.
On Feb 12, 2008 2:17 PM, Frank Warmerdam <[EMAIL PROTECTED]> wrote:
> Christian López Espínola wrote:
> > Hi all,
> >
> > I have created a shape with gdaltindex, and added it to my map, as follows:
> >
> > LAYER
> > NAME "frankestein"
> > STATUS ON
> > TILEINDEX "frankestein16/frankestein.shp"
> > TILEITEM "Location"
> > TYPE RASTER
> > END
> >
> > But when I do a WMS request, it returns white tiles.
> > The *bizarre* problem is that in other server I have the same mapfile,
> > with the same geotiffs/shapefile, and it works. Maybe did I forgot to
> > install any piece of software?
>
> Christian,
>
> You might want to try turning on layer level debugging and checking the
> output.
>
> But likely you used absolute paths when building your tileindex and those
> absolute paths don't exist on the problem server. You can check the
> attributes in the tileindex using "ogrinfo -al" on it.
>
> Best regards,
> --
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up | Frank Warmerdam, [EMAIL PROTECTED]
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush | President OSGeo, http://osgeo.org
>
>
--
Regards,
Christian López Espínola