<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[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]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>CREATE</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> <font color=blue><span
style='color:blue'>TABLE</span></font> [dbo]<font color=gray><span
style='color:gray'>.</span></font>[MetesAndBoundsHeader]<font color=gray><span
style='color:gray'>(<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> [PKey] [int] <font
color=blue><span style='color:blue'>IDENTITY</span></font><font color=gray><span
style='color:gray'>(</span></font>1<font color=gray><span style='color:gray'>,</span></font>1<font
color=gray><span style='color:gray'>)</span></font> <font color=gray><span
style='color:gray'>NOT</span></font> <font color=gray><span style='color:gray'>NULL,<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> [SpatialDataKey] [int]
<font color=gray><span style='color:gray'>NULL,<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> [StartX] [decimal]<font
color=gray><span style='color:gray'>(</span></font>18<font color=gray><span
style='color:gray'>,</span></font> 4<font color=gray><span style='color:gray'>)</span></font>
<font color=gray><span style='color:gray'>NULL,<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> [StartY] [decimal]<font
color=gray><span style='color:gray'>(</span></font>18<font color=gray><span
style='color:gray'>,</span></font> 4<font color=gray><span style='color:gray'>)</span></font>
<font color=gray><span style='color:gray'>NULL,<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> [Feature] [geometry] <font
color=gray><span style='color:gray'>NULL,<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> <font color=blue><span
style='color:blue'>CONSTRAINT</span></font> [PK_MetesAndBoundsDescription] <font
color=blue><span style='color:blue'>PRIMARY</span></font> <font color=blue><span
style='color:blue'>KEY</span></font> <font color=blue><span style='color:blue'>CLUSTERED</span></font>
<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>(<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> [PKey] <font
color=blue><span style='color:blue'>ASC<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>)</span></font><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>WITH </span></font><font
size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:gray'>(</span></font><font size=2 color=blue
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>PAD_INDEX</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> <font color=gray><span
style='color:gray'>=</span></font> <font color=blue><span style='color:blue'>OFF</span></font><font
color=gray><span style='color:gray'>,</span></font> <font color=blue><span
style='color:blue'>STATISTICS_NORECOMPUTE</span></font> <font color=gray><span
style='color:gray'>=</span></font> <font color=blue><span style='color:blue'>OFF</span></font><font
color=gray><span style='color:gray'>,</span></font> <font color=blue><span
style='color:blue'>IGNORE_DUP_KEY</span></font> <font color=gray><span
style='color:gray'>=</span></font> <font color=blue><span style='color:blue'>OFF</span></font><font
color=gray><span style='color:gray'>,</span></font> <font color=blue><span
style='color:blue'>ALLOW_ROW_LOCKS</span></font> <font color=gray><span
style='color:gray'>=</span></font> <font color=blue><span style='color:blue'>ON</span></font><font
color=gray><span style='color:gray'>,</span></font> <font color=blue><span
style='color:blue'>ALLOW_PAGE_LOCKS</span></font> <font color=gray><span
style='color:gray'>=</span></font> <font color=blue><span style='color:blue'>ON</span></font><font
color=gray><span style='color:gray'>)</span></font> <font color=blue><span
style='color:blue'>ON</span></font> [PRIMARY]<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>)</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> <font color=blue><span
style='color:blue'>ON</span></font> [PRIMARY]<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>GO<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>SET</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> <font color=blue><span
style='color:blue'>IDENTITY_INSERT</span></font> [dbo]<font color=gray><span
style='color:gray'>.</span></font>[MetesAndBoundsHeader] <font color=blue><span
style='color:blue'>ON<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>INSERT</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> [dbo]<font color=gray><span
style='color:gray'>.</span></font>[MetesAndBoundsHeader]<font color=blue><span
style='color:blue'> </span></font><font color=gray><span style='color:gray'>(</span></font>[PKey]<font
color=gray><span style='color:gray'>,</span></font> [SpatialDataKey]<font
color=gray><span style='color:gray'>,</span></font> [StartX]<font color=gray><span
style='color:gray'>,</span></font> [StartY]<font color=gray><span
style='color:gray'>,</span></font> [Feature]<font color=gray><span
style='color:gray'>)</span></font> <font color=blue><span style='color:blue'>VALUES
</span></font><font color=gray><span style='color:gray'>(</span></font>8<font
color=gray><span style='color:gray'>,</span></font> 7<font color=gray><span
style='color:gray'>,</span></font> <font color=fuchsia><span style='color:fuchsia'>CAST</span></font><font
color=gray><span style='color:gray'>(</span></font>463644.9082 <font
color=blue><span style='color:blue'>AS</span></font> <font color=blue><span
style='color:blue'>Decimal</span></font><font color=gray><span
style='color:gray'>(</span></font>18<font color=gray><span style='color:gray'>,</span></font>
4<font color=gray><span style='color:gray'>)),</span></font> <font
color=fuchsia><span style='color:fuchsia'>CAST</span></font><font color=gray><span
style='color:gray'>(</span></font>1484517.3764 <font color=blue><span
style='color:blue'>AS</span></font> <font color=blue><span style='color:blue'>Decimal</span></font><font
color=gray><span style='color:gray'>(</span></font>18<font color=gray><span
style='color:gray'>,</span></font> 4<font color=gray><span style='color:gray'>)),</span></font>
0xE60E00000104050000009A999999734C1C4100000000E5A636419A999999734C1C4100000000F5CD36419A99999939B01B4100000000A4CE36419A99999939B01B410000000094A736419A999999734C1C4100000000E5A6364101000000020000000001000000FFFFFFFF0000000003<font
color=gray><span style='color:gray'>)<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>INSERT</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> [dbo]<font color=gray><span
style='color:gray'>.</span></font>[MetesAndBoundsHeader]<font color=blue><span
style='color:blue'> </span></font><font color=gray><span style='color:gray'>(</span></font>[PKey]<font
color=gray><span style='color:gray'>,</span></font> [SpatialDataKey]<font
color=gray><span style='color:gray'>,</span></font> [StartX]<font color=gray><span
style='color:gray'>,</span></font> [StartY]<font color=gray><span
style='color:gray'>,</span></font> [Feature]<font color=gray><span
style='color:gray'>)</span></font> <font color=blue><span style='color:blue'>VALUES
</span></font><font color=gray><span style='color:gray'>(</span></font>9<font
color=gray><span style='color:gray'>,</span></font> 8<font color=gray><span
style='color:gray'>,</span></font> <font color=fuchsia><span style='color:fuchsia'>CAST</span></font><font
color=gray><span style='color:gray'>(</span></font>416571.3699 <font
color=blue><span style='color:blue'>AS</span></font> <font color=blue><span
style='color:blue'>Decimal</span></font><font color=gray><span
style='color:gray'>(</span></font>18<font color=gray><span style='color:gray'>,</span></font>
4<font color=gray><span style='color:gray'>)),</span></font> <font
color=fuchsia><span style='color:fuchsia'>CAST</span></font><font color=gray><span
style='color:gray'>(</span></font>1465354.3699 <font color=blue><span
style='color:blue'>AS</span></font> <font color=blue><span style='color:blue'>Decimal</span></font><font
color=gray><span style='color:gray'>(</span></font>18<font color=gray><span
style='color:gray'>,</span></font> 4<font color=gray><span style='color:gray'>)),</span></font>
0xE60E00000104050000009A999999ED6C1941000000000A5C36419A999999ED6C1941000000001A8336419A999999B3D0184100000000C98336419A999999B3D0184100000000B95C36419A999999ED6C1941000000000A5C364101000000020000000001000000FFFFFFFF0000000003<font
color=gray><span style='color:gray'>)<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>SET</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> <font color=blue><span
style='color:blue'>IDENTITY_INSERT</span></font> [dbo]<font color=gray><span
style='color:gray'>.</span></font>[MetesAndBoundsHeader] <font color=blue><span
style='color:blue'>OFF<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>David Lowther</span></font><font
color=blue><span style='color:blue'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face="Times New Roman"><span
style='font-size:12.0pt;color:blue'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Coordinate Solutions, Inc.</span></font><font
color=blue><span style='color:blue'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face="Times New Roman"><span
style='font-size:12.0pt;color:blue'> </span></font><o:p></o:p></p>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Tamas Szekeres
[mailto:szekerest@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, September 20, 2010
4:56 PM<br>
<b><span style='font-weight:bold'>To:</span></b> David Lowther<br>
<b><span style='font-weight:bold'>Cc:</span></b> gdal-dev<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [gdal-dev] OGR MS SQL
Spatial driver has been added</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2010/9/20 David Lowther <<a
href="mailto:dlowther@coordinatesolutions.com">dlowther@coordinatesolutions.com</a>><o:p></o:p></span></font></p>
<div link=blue vlink=blue>
<div>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'> </span></font> <o:p></o:p></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:blue'>It seems almost as if there is an index off in the field
information.</span></font><o:p></o:p></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:blue'> </span></font><o:p></o:p></p>
</div>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
David,<br>
<br>
That's strange indeed. What is the database type of this field in the table?
Could you provide your test data to reproduce this? <br>
<br>
<o:p></o:p></span></font></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>
<div link=blue vlink=blue>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:blue'>I am also not seeing any features when I render the layer in
Mapserver (though that could be any number of things as I am just getting
started with OGR MSSQL in Mapserver).</span></font><o:p></o:p></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:blue'> </span></font><o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
It would be helpful to see your mapfile to make sure about the problem.<br>
<br>
<br>
Best regards,<br>
<br>
Tamas<o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>