<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Amila,<br>
<br>
Please make sure you reply to the Geomoose list as well so
others can benefit.<br>
<br>
Use Mapserver's shp2imge command line program to track down
problems with your map file.; it is included with MS4W. It will
show error messages for problems it finds (also look in
mapserver's error log). You can use GDAL's ogrinfo command to
check the PostGIS database connection.<br>
<br>
The most common reason for data not displaying is an error in
specifying the coordinate systems. Below is a guess, since I
don't know the details of your PostGIS table (have a look at
<a class="moz-txt-link-freetext" href="http://mapserver.org/input/vector/postgis.html">http://mapserver.org/input/vector/postgis.html</a>):<br>
<br>
<tt> # Use X Y X Y:<br>
EXTENT 456029 801937 467996 808358<br>
<br>
<br>
LAYER</tt><tt><br>
</tt><tt> NAME 'kysitesutmrd1'</tt><tt><br>
</tt><tt> STATUS ON</tt><tt><br>
</tt><tt> TYPE POINT<br>
<br>
# ---- Same As EPSG:4326 in DATA object below ----<br>
</tt><tt> PROJECTION<br>
"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"<br>
END<br>
<br>
</tt><tt> CONNECTIONTYPE postgis</tt><tt><br>
</tt><tt> CONNECTION 'host=localhost
dbname=postgis_21_sample user=postgres password=postgres
port=5432'</tt><tt><br>
</tt><tt> DATA 'wkb_geometry from kysitesutmrd using unique
gid using srid=4326'</tt><br>
<tt> </tt><tt><br>
</tt><tt> CLASS</tt><tt><br>
</tt><tt> #NAME 'KYsites'</tt><tt><br>
</tt><tt><tt> # --- Should use STYLE object instead:
---<br>
</tt> COLOR 254 0 0</tt><tt><br>
</tt><tt> SYMBOL "star"</tt><tt><br>
</tt><tt> SIZE 8</tt><tt><br>
</tt><tt> END</tt><tt> # CLASS<br>
</tt><tt> </tt><tt><br>
</tt><tt> END # LAYER</tt><tt><br>
</tt><br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
On 5/7/2014 11:01 PM, Amila Karunathilake wrote:<br>
</div>
<blockquote
cite="mid:CALrT7ueg5zkJXbLaoE7Xm+mWcPnEz0qRzeQiQLC0WMWFzJ=Stg@mail.gmail.com"
type="cite">
<div dir="ltr">Dear sir,
<div><br>
</div>
<div>Thank you very much for your quick reply for my problem.</div>
<div><br>
</div>
<div>Sir, I have incorporate changes you have mention,</div>
<div><br>
</div>
<div>1. <span style="font-family:monospace;font-size:10px">EXTENT
8887274.859924 787036.529767 9096903.423788 852344.927174</span><br>
</div>
<div><br>
</div>
<div>2. <span style="font-family:monospace;font-size:10px">PROCESSING
"CLOSE_CONNECTION=DEFER"</span></div>
<div><br>
</div>
<div>Now, pink color display not appearing any more but
points(.shp) were not displaying...?</div>
<div><br>
</div>
<div>Sir, Previously i directly stored data (.shp, .tiff..) in
countydata</div>
<div>folder (C:\ms4w\apps\thilankamaps\maps\demo\countydata).</div>
<div>Then all the shp's were nicely displayed.</div>
<div>
<br>
</div>
<div>
<div>But lastweek this problem occurs while i try to connect
my geomoose application to </div>
<div>the postgis databases. </div>
</div>
<div><br>
</div>
<div>Herewith i attached my old shp + map files (KYsitesUTM and
msitesTW) which properly work with geomoose (mapserver)</div>
<div><br>
</div>
<div>But problem is why new map file with database connectivity
codes, not display properly....?</div>
<div><br>
</div>
<div>Sir, your kind help is highly appreciated, because in
Srilanka we do not have any web GIS </div>
<div>specialist in the field.</div>
<div><br>
</div>
<div>Thank you again for you consideration.</div>
<div><br>
</div>
<div>Amila.</div>
</div>
</blockquote>
<br>
</body>
</html>