<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:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (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:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Garamond;
        panose-1:2 2 4 4 3 3 1 1 8 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Arial","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Without knowing what spatial reference system (SRS) your data is
in, it is hard to tell you specifically if anything is wrong.   How does the
map created MapServer look?  Does it display your data  correctly, does it line
up with your other data?  If so, success.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If your data is in a SRS that uses geographic coordinates
(lat/long), the maximum valid x value would be 180 and the maximum y value
would be 90.  I haven’t tested whether MapServer will forgive values outside of
that range or continue around the globe, but they are incorrect.  <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If your data is in a SRS that uses kilometers (as you set your
second UNITS block), you are mapping an area ~400k x ~300k.  <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>What does your GIS tell you about the data’s SRS?  <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>David.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> elisabeth theresia
[mailto:dbee_kawai@yahoo.com] <br>
<b>Sent:</b> Thursday, August 05, 2010 7:43 AM<br>
<b>To:</b> Fawcett, David (MPCA)<br>
<b>Subject:</b> Re: [mapserver-users] Mapfile from Postgis, just Background No
Map?<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<div>

<p class=MsoNormal><span style='font-family:"Garamond","serif"'>i already found
the problem STATUS to DEFAULT.<br>
then why my mapfile's EXTENT look weird? i looked at Propertise-&gt;Source of
the shapefile in Arcgis, it mention about the Extent, then i write it in
Mapfile. is it wrong?<br>
<br>
Thanks Mr. David<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-family:"Garamond","serif"'><o:p>&nbsp;</o:p></span></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>

<hr size=1 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> &quot;Fawcett, David (MPCA)&quot;
&lt;David.Fawcett@state.mn.us&gt;<br>
<b>To:</b> elisabeth theresia &lt;dbee_kawai@yahoo.com&gt;;
&quot;mapserver-users@lists.osgeo.org&quot; &lt;mapserver-users@lists.osgeo.org&gt;<br>
<b>Sent:</b> Wed, August 4, 2010 8:59:54 PM<br>
<b>Subject:</b> RE: [mapserver-users] Mapfile from Postgis, just Background No
Map?</span><o:p></o:p></p>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>I see a few potential issues with your mapfile:</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoListParagraph><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>1.</span><span style='font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>&nbsp;For testing, set your layer STATUS to DEFAULT or add
‘&amp;layer=</span>tb_kasusdbd’ to your URL<o:p></o:p></p>

<p class=MsoListParagraph><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>2.</span><span style='font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>You have two entries for UNITS (DD and KILOMETERS).&nbsp; You should
only have one of these lines, and the units should match the units of your
output projection.&nbsp; So, if your data really is in geographic coordinates
(lat/long), your units should be ‘DD’.<o:p></o:p></p>

<p class=MsoListParagraph><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>3.</span><span style='font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>The values in your EXTENT line look weird.&nbsp; The values in your
EXTENT need to be expressed in the units used by your output projection/spatial
reference system.&nbsp; If your data is in geographic coordinates, these values
are invalid.&nbsp; If your data is in some other spatial reference system, you
will need to change your UNITS to match that SRS.<o:p></o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>David.</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>elisabeth
theresia<br>
<b>Sent:</b> Tuesday, August 03, 2010 10:55 PM<br>
<b>To:</b> mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> [mapserver-users] Mapfile from Postgis, just Background No Map?</span><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<div>

<p class=MsoNormal>Good day all,<br>
i want to ask, i have file shp that already convert to Postgis, then i want to
appear it in mapfile named:map_postgis.map then check in: <a
href="http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/map_postgis.map&amp;mode=map"
target="_blank">http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/map_postgis.map&amp;mode=map</a>,
but that i found just background no Map. why?<br>
<br>
shp: kec_kasus_DBD<br>
db in postgis: db_SpatialSura<br>
table: tb_kasusdbd<br>
mapfile: map_postgis<br>
for checking: i want to see column 'kecamatan'<br>
<br>
here my mapfile:<br>
MAP<br>
<br>
NAME kec_kasus_DBD<br>
IMAGETYPE JPEG<br>
EXTENT -123.950500 -183.224900 299.457000 145.260600<br>
STATUS ON<br>
UNITS DD<br>
SIZE 546 388<br>
IMAGECOLOR 255 241 215 <br>
SHAPEPATH &quot;i:\Spatial\shp_kec&quot;<br>
FONTSET &quot;i:\Spatial\font\font.dat&quot;<br>
UNITS KILOMETERS<br>
<br>
<br>
<br>
#DATA<br>
&nbsp;&nbsp;&nbsp; LAYER<br>
&nbsp;&nbsp;&nbsp; NAME &quot;tb_kasusdbd&quot;<br>
&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; TYPE POLYGON<br>
&nbsp;&nbsp;&nbsp; CONNECTIONTYPE POSTGIS<br>
&nbsp;&nbsp;&nbsp; CONNECTION &quot;user=dbee dbname=dbSpatialSura
host=localhost port=5432 password=xxxxxx&quot;<br>
&nbsp;&nbsp;&nbsp; DATA &quot;the_geom FROM tb_kasusdbd USING UNIQUE
code_kec&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MINSCALE 100000<br>
&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; #FILTER &quot;type= 'jumdbd_08'&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME &quot;kecamatan&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 22 22<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 67 70 31<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WIDTH 2<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#style<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#class<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; END#layer<br>
END#map<br>
<br>
Thanks :)<o:p></o:p></p>

</div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

</div>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>