[mapserver-users] Mapfile layer not displaying in MapServer 6.0.1 (does in 5.4)

myOpenLayersUName joanne.mcgraw at SYMPATICO.CA
Fri Jul 15 10:22:28 PDT 2011


I'm having a problem upgrading from MapServer 5.4 to 6.0.1, so thought I'd
start from scratch trying to isolate my ultimate problem. To start, all I am
trying to do is display a simple Mapfile line layer in my browser. I have
(what I believe to be) the simplest Mapfile I can make that allows me to do
a mode=map display in 5.4. But, when I try to use the same Mapfile with the
6.0.1 installation, the layer does not display. 

I have reviewed the "MapServer Migration Guide" and the online 6.0
documentation but can't see anything in this simple Mapfile that would cause
the lack of display...although it's probably staring me in the face, I know.
Anyway, I don't believe there's an actual "problem" per se (debugging
results attached below), I assume there's just a difference between how I'm
supposed to define something for 5.4 and how it should be defined for 6.0.
The only thing I can think of that might be affecting this is the
OUTPUTFORMAT changes but I certainly can't see what the problem might be. I
also looked into some of the line styling changes, but don't think any of
them apply to this example. I'm hoping another set of eyes (that have more
experience with these changes than I) can identify what I am defining
incorrectly for 6.0.

Cheers,
jtm


I provide the URL "http://<domain>/ogc/joanne?mode=map&layers=Roads25" and
when I point to the MapServer 5.4's domain I see the roads layer, but if I
point to the MapServer 6.0.1 domain (which is basically the same as the 5.4
environment - essentially a fully complete mirror), the result is an empty
image. No errors, no problem; but no roads either.

The wrapper file contains:

MS_MAPFILE=${MS_APPSPATH}joanne/map/joanne_sub.map
export MS_MAPFILE
${MS_CGIBIN}mapserv


And the Mapfile "joanne_sub.map" contents are below. It's as simple as I
could make it.


MAP
  NAME "mySubMap"
  FONTSET "../../../mapserv/etc/fonts.txt"
  SYMBOLSET "../../../mapserv/etc/symbols.sym"

  SIZE 800 600
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255

  EXTENT -2903297.697389 -789911.662978 3431059.382789 3959683.443689

  UNITS METERS
  PROJECTION
    "init=epsg:42304"
  END

  WEB
    IMAGEPATH "/<path>/httpd/htdocs/ogc_tmp/"
    IMAGEURL "/ogc_tmp/"
  END #end WEB

  OUTPUTFORMAT
    NAME 'AGG'
    DRIVER AGG/PNG
    MIMETYPE "image/png"
    IMAGEMODE RGB
    EXTENSION "png"
  END #end OUTPUTFORMAT

  LAYER
    NAME 'Roads25M'
    TYPE LINE
    STATUS ON

    CONNECTION "<host>,<port>,sde,<username>,<password>"
    CONNECTIONTYPE SDE
    DATA 'XDM_XDATA.TRN_NSF_ROAD_V6_CT25M_R2,SHAPE,SDE.DEFAULT'

    CLASS
      STYLE
        COLOR 0 0 0
      END #end STYLE
    END #end CLASS
  END #end LAYER
END #end MAP



5.4 debug results for
"http://<5.4Domain>/ogc/joanne?mode=map&layers=Roads25" request:

[Fri Jul 15 12:48:39 2011].722684 msDrawMap(): Layer 0 (Roads25M), 0.742s
[Fri Jul 15 12:48:39 2011].722837 msDrawMap(): Drawing Label Cache, 0.000s
[Fri Jul 15 12:48:39 2011].722846 msDrawMap() total time: 0.742s
[Fri Jul 15 12:48:39 2011].735882 msSaveImage() total time: 0.013s
[Fri Jul 15 12:48:39 2011].735953 mapserv request processing time (loadmap
not incl.): 0.756s
[Fri Jul 15 12:48:39 2011].735960 msFreeMap(): freeing map at 0x8b5f1a0.



6.0.1 debug results for
"http://<6.0.1Domain>/ogc/joanne?mode=map&layers=Roads25" request:

[Fri Jul 15 12:48:41 2011].658817 msDrawMap(): rendering using outputformat
named png (AGG/PNG).
[Fri Jul 15 12:48:41 2011].658911 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Fri Jul 15 12:48:41 2011].658996 msDrawMap(): Drawing Label Cache, 0.000s
[Fri Jul 15 12:48:41 2011].659004 msDrawMap() total time: 0.002s
[Fri Jul 15 12:48:41 2011].743425 msSaveImage(stdout) total time: 0.084s
[Fri Jul 15 12:48:41 2011].743545 mapserv request processing time (loadmap
not incl.): 0.087s
[Fri Jul 15 12:48:41 2011].743557 msFreeMap(): freeing map at 0x8261138.


--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapfile-layer-not-displaying-in-MapServer-6-0-1-does-in-5-4-tp6587562p6587562.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list