Mapinfo
Ethan Alpert
ealpert at DIGITALGLOBE.COM
Fri Oct 1 11:02:50 PDT 2004
The first thing to check is that your EXTENT is the same as your TAB file. The second thing to check is to make sure since you didn't specify a projection for your tab file that the data in the tab file is in the same units as your EXTENT.
-e
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Guillaume Pouilly
Sent: Friday, October 01, 2004 3:53 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Mapinfo
Hi,
I'm a newbye, with mapserver. I have to use mapserver with mapinfo (tab) files. I use OGR, but mapserver always draw an empty map
Someone has an idea ?
Thanks
Here is my mapfile
#
# Start of map file
#
#
NAME romania_ogr_demo
STATUS ON
SIZE 500 300
SYMBOLSET /tmp/symbols_mapinfo.sym
EXTENT 24.995716 46.984584 26.008563 47.353092
UNITS DD
SHAPEPATH "./data/"
IMAGECOLOR 255 255 255
#FONTSET etc/fonts.txt
#
# Start of web interface definition
#
WEB
#
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
# of the drive where the .MAP file resides.
#
IMAGEPATH "/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
LOG "/tmp/gmap.log"
TEMPLATE demo.html
METADATA
"TITLE" "MapServer OGR/TAB Test Demo"
END
END
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END
SIZE 150 4
COLOR 255 255 255
BACKGROUNDCOLOR 0 0 0
OUTLINECOLOR 0 0 0
UNITS kilometers
INTERVALS 3
STATUS ON
END
#
# Querymap settings
#
# Style is one of NORMAL, HILITE, or SELECTED
#
QUERYMAP
STYLE HILITE
COLOR 255 0 0
END
#
# Start of layer definitions
#
LAYER
NAME Romania
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "/var/www/html/itasca/data/606_Parcelles.TAB"
# CLASSITEM "Cfactor"
# LABELITEM "Code"
# LABELMAXSCALE 160000.0
CLASS
COLOR 232 232 255
OUTLINECOLOR 32 32 255
END
END # Layer
END #map
Guillaume Pouilly
Direction des systèmes d'information
Valenciennes Métropole
2 Place de l'hôpital général
59300 VALENCIENNES
Tél :03 27 200 200 Fax :03 27 200 201
www.valenciennes-metropole.fr <http://www.valenciennes-metropole.fr/>
gpouilly at valenciennes-metropole.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041001/db94df64/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 4764 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041001/db94df64/attachment.jpg>
More information about the MapServer-users
mailing list