<DIV>i did create this shape file myself from the database by using the pgsql2shp command</DIV>
<DIV>that was successfull. the shape file was spots.shp</DIV>
<DIV> </DIV>
<DIV>when i did ogrinfo spots.shp spots -summary, it was successful and it gave me the following results.  My extent is right, but theres one thing that doesnt seem to match.  in my table in my database, in the longitude column i have the real longitudes and in the latitude column i have the real latitudes but here it shows 32 and 32 respectively(i dont think it should be this way or maybe it is some kind of conversion?). could it be that it has something to do with this?</DIV>
<DIV><BR>INFO: Open of `spots.shp'<BR>using driver `ESRI Shapefile' successful.</DIV>
<DIV>Layer name: spots<BR>Geometry: Point<BR>Feature Count: 4<BR>Extent: (45.495410, -73.576830) - (45.543510, -73.520960)<BR>Layer SRS WKT:<BR>(unknown)<BR>NAME: String (15.0)<BR>LATITUDE: Real (32.10)<BR>LONGITUDE: Real (32.10)<BR>CIVIL NUMB: Integer (16.0)<BR>STREET NAM: String (19.0)<BR>POSTAL COD: String (7.0)</DIV>
<DIV> </DIV>
<DIV>heres what my table looks like</DIV>
<DIV> </DIV>
<DIV>Name             Latitude       Longitude     street name   postal code  the-geom</DIV>
<DIV>cafe vienne     45.54351  -73.52096          null                  null            SRID=-1;POINT(45.51351 -73.52096)</DIV>
<DIV> </DIV>
<DIV>i have four entries like this</DIV>
<DIV><BR><B><I>strk@refractions.net</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Are you sure your points fall in your map's EXTENT ?<BR>Do you need to reproject them ?<BR>--strk;<BR><BR>On Mon, Mar 14, 2005 at 09:02:56AM -0800, w m wrote:<BR>> Thank You for your response.<BR>> i made the changes that you suggested but i still have no luck in displaying the points on the map. I'm not sure if a connection is being established to the database or not...how can i know that?? and instead of local host i also tried to insert the ip address of my server but it still didnt work nor did i get any errors.<BR>> any help would be appreciated greately<BR>> thank you<BR>> wokar<BR>> <BR>> LAYER<BR>> CONNECTIONTYPE postgis<BR>> NAME "Spots" # my table name<BR>> CONNECTION "user=test password=test dbname=MyDataBase host=localhost"<BR>> DATA "the_geom FROM Spots" # the_geom column from table Spots<BR>> STATUS ON<BR>> TYPE POINT <BR>>
 CLASS<BR>> COLOR 0 0 0<BR>> OUTLINECOLOR 0 0 0 <BR>> SIZE 2<BR>> END<BR>> END <BR>> <BR>> <BR>> strk@refractions.net wrote:<BR>> On Mon, Mar 14, 2005 at 08:20:55AM -0800, w m wrote:<BR>> > Hi,<BR>> > I created a Mapserver layer definition in order to establish a connection to my database. I would like to display the data from the database on my map.<BR>> > The table spots has just points in the "the_geom" column. All I want to do is to display those points on the map. When I write my layer definition, it gives me no errors but it also doesnt display those points on the map.<BR>> > <BR>> > Here is my layer definition:<BR>> > <BR>> > LAYER<BR>> > CONNECTIONTYPE postgis<BR>> > NAME "Spots" # my table name<BR>> > CONNECTION "user=test password=test dbname=MyDataBase host=http://localhost"<BR>> <BR>> host=localhost<BR>> also, try adding a SIZE to your class<BR>> --strk;<BR>> <BR>>
 > DATA "the_geom FROM Spots" # the_geom column from table Spots<BR>> > STATUS ON<BR>> > TYPE POINT <BR>> > CLASS<BR>> > COLOR 0 0 0<BR>> > OUTLINECOLOR 0 0 0 <BR>> > END<BR>> > END <BR>> > <BR>> > Thank You<BR>> > Wokar<BR>> > <BR>> > <BR>> > ---------------------------------<BR>> > Do you Yahoo!?<BR>> > Yahoo! Small Business - Try our new resources site! <BR>> > _______________________________________________<BR>> > postgis-users mailing list<BR>> > postgis-users@postgis.refractions.net<BR>> > http://postgis.refractions.net/mailman/listinfo/postgis-users<BR>> <BR>> _______________________________________________<BR>> postgis-users mailing list<BR>> postgis-users@postgis.refractions.net<BR>> http://postgis.refractions.net/mailman/listinfo/postgis-users<BR>> <BR>> __________________________________________________<BR>> Do You Yahoo!?<BR>>
 Tired of spam? Yahoo! Mail has the best spam protection around <BR>> http://mail.yahoo.com <BR>> _______________________________________________<BR>> postgis-users mailing list<BR>> postgis-users@postgis.refractions.net<BR>> http://postgis.refractions.net/mailman/listinfo/postgis-users<BR><BR>_______________________________________________<BR>postgis-users mailing list<BR>postgis-users@postgis.refractions.net<BR>http://postgis.refractions.net/mailman/listinfo/postgis-users<BR></BLOCKQUOTE><p>
                <hr size=1>Do you Yahoo!?<br> 
<a href="http://us.rd.yahoo.com/my/navbar/sethp/*http://www.yahoo.com/r/hs 
">Make Yahoo! your home page</a>