[Mapserver-users] Weird bug

Zamil Murji Zamil.Murji at divestco.com
Wed Jul 9 16:01:42 PDT 2003


Hello list,

I have two layers in my .map file. I want both of them to show up. I want the township lines under the county borders. Here is my layer definitions:

LAYER
  NAME "twp"
  TILEINDEX us_data/townships/twptileindex
  STATUS off
  TYPE POLYGON
  MAXSCALE 25
  CLASS
   OUTLINECOLOR 183 178 178
#OUTLINECOLOR 255 0 0 
  END
END

...and a little later on in the .map file
LAYER
# fast file
  NAME "counties"
  DATA boarders/counties
  STATUS off
  TYPE POLYGON
  MAXSCALE 29
  CLASS
   OUTLINECOLOR 0 0 0
#   COLOR 84 247 168
  END
END

If i run a request from the web browser with this .map file, I get the township lines but no county borders. If I move the county border layer above the township layer, then I get a picture with just the borders and no township lines. Really weird. Any suggestions? I'm using the latest mapserv build (4.something) on a win 2k os running apache 2.something

Thanks 
Zamil

-----Original Message-----
From: Zamil Murji 
Sent: Wednesday, July 09, 2003 9:52 AM
To: anilvemu at yahoo.com; mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] msDrawMap(): Image handling error


Hi Anil,

I just finished getting an oracle spatial layer to work properly for me. When I was getting this error message it was due to the fact that NO SPATIAL INDEX was created on the shape column. Also in your DATA tag you must have USING SRID 8307 or whatever SRID you have. Read the WIKI for more help (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial)

Hope this helps.

Thanks
Zamil

-----Original Message-----
From: Anil Kumar Vemu [mailto:anilvemu at yahoo.com]
Sent: Tuesday, July 08, 2003 10:44 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] msDrawMap(): Image handling error


Hi all,

I'm trying to access data from Oracle Spatial. The map file LAYER settings
are as follows.

LAYER
  NAME building
  TYPE POLYGON
  STATUS ON
  CONNECTIONTYPE oraclespatial
  CONNECTION "htil/ispat at NHUGHES"
  DATA "shape FROM building"
  CLASSITEM 'building'
  CLASS
    NAME building
    EXPRESSION 'Itasca'
    OUTLINECOLOR 128 128 128
    COLOR 225 225 128
  END
  METADATA
    WMS_TITLE "Landbase Buildings"
    WMS_AUTHOR "ANIL VEMU"        
  END
END

Once I click the Demo_init.html page, I'm getting the error,

msDrawMap(): Image handling error. Failed to draw layer named 'building'. 

I have gone through the archives, but couldn't get sufficient help. 
Thanks in advance.

Regards,
Anil Vemu.

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
_______________________________________________
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