[Mapserver-users] getextent in a file .TAB

Irene Pérez irenutxa2000 at yahoo.es
Wed Mar 10 00:39:40 PST 2004


Hi, can you help me?
I 'm using files mapinfo and I have a problem, because
I'm trying get the extent of a layers, but i can't use
getextent() because i have the next error to execute
the next line:

$shapeFileObj = ms_newShapeFileObj(
"/home/ejemplos/data/municipios",-1) 

the error is:

Warning: [MapServer Error]: msSHPOpenFile():
(/home/ejemplos/data/Municipios) in
/home/ejemplos/html/click.inc.php on line 410

Fatal error: Failed to open shapefile
/home/ejemplos/data/Municipios in
/home/ejemplos/click.inc.php on line 410

Also when I've write the extension:
$shapeFileObj = ms_newShapeFileObj(
"/home/ejemplos/data/municipios.tab",-1) 
 
in my map file, i have:

LAYER
      		NAME "Municipios"
      		TYPE POLYGON
      		CONNECTIONTYPE OGR
      		CONNECTION
"/home/ejemplos/data/municipios.TAB"
      		STATUS OFF
      		CLASS
         		COLOR     255 244 208
	 		OUTLINECOLOR 0 0 0
			TEMPLATE "template.html"
      		END
   	END

How can i get the extent, please?

Thanks.
	






___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es



More information about the MapServer-users mailing list