<div>Hi,</div>  <div>nice to see some Indians on this wonderful list.</div>  <div>I am a Geologist from Hyderabad. I use OpenJUMP, PostGIS (not very successful though) and GRASS GIS.</div>  <div> </div>  <div>Pl give your details.</div>  <div>Namashkar</div>  <div>Ravi Kumar<BR><BR><B><I>Babu Naidu <pbnaidu@gmail.com></I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Thanks Robert. That worked and I am going to use the concise format of MakeBox2D.<BR>-Babu<BR><BR>  <DIV><SPAN class=gmail_quote>On 9/15/07, <B class=gmail_sendername>Robert Coup</B> <<A href="mailto:robert.coup@onetrackmind.co.nz"> robert.coup@onetrackmind.co.nz</A>> wrote:</SPAN>  <BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">On 15/09/2007, Babu Naidu <<A href="mailto:pbnaidu@gmail.com"> pbnaidu@gmail.com</A>> wrote:<BR>> I am trying
 to convert Google Maps GMap.getBounds() (which returns LatLng<BR>> for south west and LatLng for north east)<BR>> to POLYGON( ) ewkt format. This is to query for points within that POLYGON. <BR>><BR>> I think I figured out the format and I would like to verify it with experts<BR>> here. I have southwest Lat Lng and northeast LatLng<BR>> considering Y=Lng and X=Lat<BR>><BR>> POLYGON(maxY  maxX, <BR>> maxY  minX,<BR>> minY  minX,<BR>> minY  maxX,<BR>> maxY  maxX)<BR>><BR>> Is this the right way to create a POLYGON? could you please point me to docs<BR>> if available that explain this format?<BR><BR>X should be Longitude, and Y Latitude. Always.<BR><BR>in WKT you need double-brackets for a polygon, and the common<BR>convention is to do boxes in the following sequence:<BR>POLYGON((minx miny, maxx miny, maxx maxy, minx maxy, minx miny)) <BR><BR>If you don't need to make WKT you could
 do the following instead,<BR>which creates a geometry you can use in queries, etc:<BR>MakeBox2D(MakePoint(minx, miny), MakePoint(maxx, maxy))<BR><BR>hth,<BR><BR>Rob :)<BR>_______________________________________________<BR>postgis-users mailing list<BR><A href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</A><BR><A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</A><BR></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>postgis-users mailing list<BR>postgis-users@postgis.refractions.net<BR>http://postgis.refractions.net/mailman/listinfo/postgis-users<BR></BLOCKQUOTE><BR><p>
      <hr size=1>Fussy? Opinionated? Impossible to please? Perfect.  <a href="http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ">Join Yahoo!'s user panel</a> and lay it on us.