[Mapserver-users] Using OGR with tab files

Phil Maskell maskellp at ntlworld.com
Sat Oct 4 17:16:21 EDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_008B_01C38AC5.241A4E40
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: 7bit

Cheers for this, I had to remove the projection to get it to work; I
also found I needed the COLOR in the class.
 
I have another newbie question, RASTERs, I have tried to display these
as a tab with OGR and as a tif with a data connection. Does anyone have
an example I can use to try and get this working.
 
Thanks
 
Phil Maskell
 
-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Michael
Roach
Sent: 03 October 2003 19:19
To: Mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Using OGR with tab files
 
 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 #CLASS
END #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 us! ed 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!?
HYPERLINK
"http://shopping.yahoo.com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk%3A
text%2Csec%3Amail"The New Yahoo! Shopping - with improved product search
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003
 

------=_NextPart_000_008B_01C38AC5.241A4E40
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DWindows-1252">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml at 01C38AC5.23ADD0D0">
<link rel=3DEdit-Time-Data href=3D"cid:editdata.mso at 01C38AC5.23ADD0D0">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:Zoom>130</w:Zoom>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:ApplyBreakingRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
p
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
pre
	{margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt =
412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
	font-size:10.0pt;
	font-family:"Courier New";
	mso-fareast-font-family:"Times New Roman";}
span.EmailStyle19
	{mso-style-type:personal-reply;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:navy;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-GB link=3Dblue vlink=3Dblue =
style=3D'tab-interval:36.0pt'>

<div class=3DSection1><!--StartFragment -->

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Cheers for this, I had to remove =
the
projection to get it to work; I also found I needed the COLOR in the =
class.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I have another newbie question, =
<span
class=3DGramE>RASTERs,</span> I have tried to display these as a tab =
with OGR and
as a tif with a data connection. Does anyone have an example I can use =
to try
and get this working.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Phil =
Maskell<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DTahoma><span
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma;mso-ansi-language:EN-US'>---=
--Original
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b>
mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] <b><span =
style=3D'font-weight:
bold'>On Behalf Of </span></b>Michael Roach<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> 03 October 2003 =
19:19<br>
<b><span style=3D'font-weight:bold'>To:</span></b>
Mapserver-users at lists.gis.umn.edu<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: =
[Mapserver-users]
Using OGR with tab files</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>&nbsp;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.<o:p></o:p></span></font></p>

<pre style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier =
New"><span
style=3D'font-size:10.0pt'>LAYER<o:p></o:p></span></font></pre><pre
style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'><span style=3D'mso-tab-count:1'>&nbsp; =
</span>NAME interstate <o:p></o:p></span></font></pre><pre
style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'><span style=3D'mso-tab-count:1'>&nbsp; =
</span>TYPE line<!--StartFragment --> =
<o:p></o:p></span></font></pre><pre
style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'><span =
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;</span>PROJECTION<o:p></o:p></span></font></pre><pre
style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'><span style=3D'mso-tab-count:1'>&nbsp; =
</span><span style=3D'mso-spacerun:yes'>&nbsp; =
</span>&quot;init=3Depsg:4269&quot; #LONG/LAT =
NAD83<o:p></o:p></span></font></pre><pre
style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'><span style=3D'mso-tab-count:1'>&nbsp; =
</span>END #PROJECTION<o:p></o:p></span></font></pre><pre
style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'><span =
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</span>CONNECTIONTYPE OGR<o:p></o:p></span></font></pre><pre
style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'><span style=3D'mso-tab-count:1'>&nbsp; =
</span>CONNECTION =
&quot;/opt/mapdata/interstate.TAB&quot;<o:p></o:p></span></font></pre><pr=
e
style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'><span style=3D'mso-tab-count:1'>&nbsp; =
</span>STATUS DEFAULT<o:p></o:p></span></font></pre><pre
style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'><span style=3D'mso-tab-count:1'>&nbsp; =
</span>CLASS<o:p></o:p></span></font></pre><pre
style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'><span style=3D'mso-tab-count:1'>&nbsp; =
</span><span style=3D'mso-spacerun:yes'>&nbsp; </span>COLOR 0 0 0 =
<o:p></o:p></span></font></pre><pre
style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'><span style=3D'mso-tab-count:1'>&nbsp; =
</span>END #CLASS<o:p></o:p></span></font></pre><pre
style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'>END #LAYER<o:p></o:p></span></font></pre>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><br>
<br>
<b><i><span style=3D'font-weight:bold;font-style:italic'>Phil Maskell
&lt;maskellp at ntlworld.com&gt;</span></i></b> wrote: =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>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 &quot;British National =
Grid&quot;. <br>
<br>
I use the following:<br>
<br>
PROJECTION<br>
&quot;init=3Depsg:27700&quot;<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 &quot;FORCE TRUE&quot; in my LAYER declaration for a =
POINT type<br>
layer.<br>
<br>
Matthew<br>
<br>
----Original Message Follows----<br>
From: &quot;Phil Maskell&quot; <br>
<MASKELLP at NTLWORLD.COM>To: <br>
<MAPSERVER-USERS at LISTS.GIS.UMN.EDU>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 us! ed 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 &quot;data/Counties.TAB&quot;<br>
STYLEITEM &quot;AUTO&quot;<br>
CLASS<br>
NAME &quot;Counties&quot;<br>
END<br>
PROJECTION<br>
&quot;AUTO&quot;<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 &quot;data/Motorways.TAB&quot;<br>
STYLEITEM &quot;AUTO&quot;<br>
CLASS<br>
NAME &quot;Motorways&quot;<br>
END<br>
PROJECTION<br>
&quot;AUTO&quot;<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<o:p></o:p></span></font></p>

</div>

<div class=3DMsoNormal align=3Dcenter =
style=3D'margin-left:36.0pt;text-align:center'><font
size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D1 width=3D"100%" align=3Dcenter>

</span></font></div>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Do you =
Yahoo!?<br>
<a
href=3D"http://shopping.yahoo.com/?__yltc=3Ds%3A150000443%2Cd%3A22708228%=
2Cslk%3Atext%2Csec%3Amail">The
New Yahoo! Shopping</a> - with improved product =
search<o:p></o:p></span></font></p>

<p style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Times New =
Roman"><span
style=3D'font-size:10.0pt'>---<br>
Incoming mail is certified Virus Free.<br>
Checked by AVG anti-virus system (http://www.grisoft.com).<br>
Version: 6.0.521 / Virus Database: 319 - Release Date: =
23/09/2003</span></font><o:p></o:p></p>

</div>

</body>

</html>
<BR>

<P><FONT SIZE=3D2>---<BR>
Outgoing mail is certified Virus Free.<BR>
Checked by AVG anti-virus system (http://www.grisoft.com).<BR>
Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003<BR>
</FONT> </P>

------=_NextPart_000_008B_01C38AC5.241A4E40--




More information about the mapserver-users mailing list