[Mapserver-users] Using OGR with tab files

Michael Roach burntmage at yahoo.com
Fri Oct 3 11:19:30 PDT 2003


--0-1062273278-1065205170=:65292
Content-Type: text/plain; charset=us-ascii

 This format works for me under MS4.0 when using TAB files. As far as projections go, giving no projection is better than the wrong one. But, I don't believe projection is your issue here.
LAYER	NAME interstate 	TYPE line 
        PROJECTION	  "init=epsg:4269" #LONG/LAT NAD83	END #PROJECTION
        CONNECTIONTYPE OGR	CONNECTION "/opt/mapdata/interstate.TAB"	STATUS DEFAULT	CLASS	  COLOR 0 0 0 	END #CLASSEND #LAYER


Phil Maskell <maskellp at ntlworld.com> wrote:Thanks for this, I tried it, still no joy.

Being new to MapServer, do you think this has anything to do with my
projection settings? The tabs are using "British National Grid". 

I use the following:

PROJECTION
"init=epsg:27700"
END

Phil

-----Original Message-----
From: Matthew Haines [mailto:mhaines94108 at hotmail.com] 
Sent: 03 October 2003 03:30
To: maskellp at ntlworld.com
Subject: Re: [Mapserver-users] Using OGR with tab files


I have the line "FORCE TRUE" in my LAYER declaration for a POINT type
layer.

Matthew

----Original Message Follows----
From: "Phil Maskell" 
To: 
Subject: [Mapserver-users] Using OGR with tab files
Date: Thu, 2 Oct 2003 23:44:43 +0100

Hi,

I have set MapServer 4.0 up with the demo, I have used OGR to load a
POLYGON type layer from a tab, but cannot get it to work with LINE or
POINT.

This is a sample of the layer in my map file:

# This works
LAYER
NAME Counties_region
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "data/Counties.TAB"
STYLEITEM "AUTO"
CLASS
NAME "Counties"
END
PROJECTION
"AUTO"
END
END # Layer

# This doesn't work
LAYER
NAME Motorways
TYPE LINE
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "data/Motorways.TAB"
STYLEITEM "AUTO"
CLASS
NAME "Motorways"
END
PROJECTION
"AUTO"
END
END # Layer

I hope someone can explain what I'm doing wrong.

Thanks in advance

Phil Maskell



---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
--0-1062273278-1065205170=:65292
Content-Type: text/html; charset=us-ascii

<DIV><!--StartFragment --> This format works for me under MS4.0 when using TAB files. As far as projections go, giving no projection is better than the wrong one. But, I don't believe projection is your issue here.<PRE>LAYER
	NAME interstate 
	TYPE line<!--StartFragment --> <PRE>        PROJECTION
	  "init=epsg:4269" #LONG/LAT NAD83
	END #PROJECTION</PRE>        CONNECTIONTYPE OGR
	CONNECTION "/opt/mapdata/interstate.TAB"
	STATUS DEFAULT
	CLASS
	  COLOR 0 0 0 
	END #CLASS
END #LAYER</PRE><BR><BR><B><I>Phil Maskell <maskellp at ntlworld.com></I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Thanks for this, I tried it, still no joy.<BR><BR>Being new to MapServer, do you think this has anything to do with my<BR>projection settings? The tabs are using "British National Grid". <BR><BR>I use the following:<BR><BR>PROJECTION<BR>"init=epsg:27700"<BR>END<BR><BR>Phil<BR><BR>-----Original Message-----<BR>From: Matthew Haines [mailto:mhaines94108 at hotmail.com] <BR>Sent: 03 October 2003 03:30<BR>To: maskellp at ntlworld.com<BR>Subject: Re: [Mapserver-users] Using OGR with tab files<BR><BR><BR>I have the line "FORCE TRUE" in my LAYER declaration for a POINT type<BR>layer.<BR><BR>Matthew<BR><BR>----Original Message Follows----<BR>From: "Phil Maskell" <MASKELLP at NTLWORLD.COM><BR>To: <MAPSERVER-USERS at LISTS.GIS.UMN.EDU><BR>Subject: [Mapserver-users] Using OGR with tab files<BR>Date: Thu, 2 Oct 2003 23:44:43 +0100<BR><BR>Hi,<BR><BR>I have set MapServer 4.0 up with the demo, I have used OGR to
 load a<BR>POLYGON type layer from a tab, but cannot get it to work with LINE or<BR>POINT.<BR><BR>This is a sample of the layer in my map file:<BR><BR># This works<BR>LAYER<BR>NAME Counties_region<BR>TYPE POLYGON<BR>STATUS DEFAULT<BR>CONNECTIONTYPE OGR<BR>CONNECTION "data/Counties.TAB"<BR>STYLEITEM "AUTO"<BR>CLASS<BR>NAME "Counties"<BR>END<BR>PROJECTION<BR>"AUTO"<BR>END<BR>END # Layer<BR><BR># This doesn't work<BR>LAYER<BR>NAME Motorways<BR>TYPE LINE<BR>STATUS DEFAULT<BR>CONNECTIONTYPE OGR<BR>CONNECTION "data/Motorways.TAB"<BR>STYLEITEM "AUTO"<BR>CLASS<BR>NAME "Motorways"<BR>END<BR>PROJECTION<BR>"AUTO"<BR>END<BR>END # Layer<BR><BR>I hope someone can explain what I'm doing wrong.<BR><BR>Thanks in advance<BR><BR>Phil Maskell<BR></BLOCKQUOTE></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://shopping.yahoo.com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk%3Atext%2Csec%3Amail">The New Yahoo! Shopping</a> - with improved product search
--0-1062273278-1065205170=:65292--



More information about the MapServer-users mailing list