[mapserver-users] Inappropriate ioctl for device
Aaron D. Hunt
hunt at zedxinc.com
Fri Jun 21 13:34:06 PDT 2002
When i add a projection tag into my map file I get "Unable to open mapfile. Inappropriate ioctl for device" in my error log when I call my php script. Does anyone know why this may be happing or what it means?
I am using mapserver 3.6 compiled with proj,ogr,gdal and php.
Aaron D. Hunt
Here is my map file. I used all geographic just to test.
#
# Start of map file
#
NAME DEMO
PROJECTION
geographic
END
STATUS ON
SIZE 380 380
EXTENT -91.1644 34.6098 -91.1306 34.6399
UNITS DD
SHAPEPATH "/tmp"
IMAGECOLOR 255 255 255
#
# Start of web interface definition
#
WEB
IMAGEPATH "/home/httpd/html/dy_images/"
IMAGEURL "/dy_images/"
END
LEGEND
STATUS embed
TRANSPARENT TRUE
LABEL
COLOR 0 0 0
SIZE small
END
POSITION lr
END
SCALEBAR
INTERVALS 7
STATUS embed
TRANSPARENT TRUE
POSITION ll
STYLE 1
SIZE 300 5
LABEL
COLOR 0 0 0
SIZE tiny
END
END
LAYER
NAME field
PROJECTION
geographic
END
TYPE POLYGON
DATA "/tmp/shape"
STATUS ON
CLASS
NAME "Boundary"
SIZE 5
OUTLINECOLOR 255 0 0
COLOR -1 -1 -1
END
END
LAYER
NAME att
PROJECTION
geographic
END
TYPE POLYGON
DATA "/tmp/shape"
STATUS ON
CLASS
NAME "Boundary"
SIZE 5
OUTLINECOLOR 0 255 0
COLOR -1 -1 -1
END
END
LAYER
NAME "roads"
PROJECTION
geographic
END
TYPE line
TILEINDEX "/usr/gisdata/map_info/scripts/maj_roads"
TILEITEM "location"
STATUS on
LABELITEM "STREETNAME"
CLASS
NAME "Minor Roads"
OUTLINECOLOR 0 0 0
COLOR 150 150 0
LABEL#
angle auto
MINDISTANCE 20
SIZE medium
COLOR 150 150 150
END
END
END # LAYER
LAYER
NAME "roads"
PROJECTION
geographic
END
TYPE line
TILEINDEX "/usr/gisdata/map_info/scripts/min_roads"
TILEITEM "location"
STATUS on
LABELITEM "HIGHWAY"
CLASS
NAME "Major Roads"
OUTLINECOLOR 0 0 0
COLOR 50 50 0
LABEL
angle auto
MINDISTANCE 20
SIZE medium
COLOR 150 150 150
END
END
END # LAYER
END # Map File
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020621/1fbd543a/attachment.htm>
More information about the MapServer-users
mailing list