[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    Re: [postgis-users] Using PostGIS for latitude & longitude
From:       Stephen Woodbridge <woodbri () swoodbridge ! com>
Date:       2012-12-28 13:57:01
Message-ID: 50DDA52D.10204 () swoodbridge ! com
[Download RAW message or body]

On 12/28/2012 1:59 AM, nevillekb wrote:
> Hi Brent,
>
> So at the moment i am hard-coding sample lat and long values to test the
> functionality and it works!!!
>
> What i wanted to ask is how can i get these values from Google maps and then
> feed them in my DB rather then hard-coding them. Any idea how to go about?

Aside for the legal issues that might be involved based on the Google 
Terms of Service. You might consider using OpenLayers the pulling in a 
base map from Bing, OpenStreetMap or Google then setup OpenLayers to 
allow you to click on the map and issue an ajax call to a snippet of PHP 
code that connects to the database and inserts your coordinate.

This is a pattern that is commonly used for creating and editing 
features in a database. In fact you can setup TinyOWS of GeoServer to 
act as a WFS-T server that OpenLayers can talk directly to that will 
manage all your features in a database table.

-Steve

_______________________________________________
postgis-users mailing list
postgis-users@lists.osgeo.org
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic