Right.. using REST calls is the way to do that.   You'll basically need to do any complex geo queries/functions in PostGIS and then return vectors of lon/lat points which you then display with the MapKit apis.<br><br><div class="gmail_quote">
On Fri, Jun 1, 2012 at 7:24 AM, Charles Galpin <span dir="ltr"><<a href="mailto:cgalpin@lhsw.com" target="_blank">cgalpin@lhsw.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi Ahmad<div><br></div><div>You won't connect to the database directly. Depending on what the data is you can use a variety of methods. Simple REST style calls to a web server which runs code to query the database and return the data could be sufficient, but for anything more complex I suggest using a WMS server like geoserver or mapserver.</div>
<div><br></div><div>If you want your app to run on multiple platforms consider doing it in html 5.</div><div><br></div><div>hth</div><div>charles</div><div><br><div><div>On Jun 1, 2012, at 2:18 AM, Ahmad Aburizaiza wrote:</div>
<br><blockquote type="cite"><div dir="ltr">Hello all,<div><br></div><div>I am trying to build an iPhone app with a Google Map to display data stored on a remote PostGIS database. Anyone had such an experience. I need to know how to connect to the database so I can query the data.</div>


<div><br></div><div>Thanx in advance<br><div><div dir="ltr"><b style="color:rgb(51,51,153)"><font style="font-family:garamond,serif;color:rgb(51,102,255)" size="2"><span style="border-collapse:collapse">---------------------------------------------------------------------------<br>


Ahmad Aburizaiza<br>PhD student at George Mason University<br>Geography and Geoinformation Science Department<br>Fairfax, VA, USA<br>Tel : <a href="tel:%2B1-703-981-0354" value="+17039810354" target="_blank">+1-703-981-0354</a></span></font></b></div>
<br>
</div></div></div>
_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br></div></div><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" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br>