| Members: 34927 |
| Activity: High activity |
| Language: English |
|
Group categories:
|
| More group info » |
|
Many people use databases to store large amounts of geo-located data. The following are links to sites that provide sample server-side scripts for interacting with databases, or provide some library that makes it easier. Definition: Database "A database is a collection of information stored in a computer in a systematic way, such that a computer program can consult it to answer questions. The software used to manage and query a database is known as a database management system (DBMS). The properties of database systems are studied in information science." Database Management System (DBMS) "Software that manages, manipulates and retrieves data in a database." source: Google Search Define:Database, http://en.wikipedia.org/wiki/Database
Official Document: Pamela Fox, Google Geo Team has written and documented a very helpful and useful tutorial. "This tutorial is intended for developers who are familiar with PHP/mySQL, and want to learn how to use Google Maps with a mySQL database" http://code.google.com/support/bin/answer.py?answer=65622&topic=11369
Links:
Integrating Google Maps with PHP generated forms This is a PHP forms generation and validation that comes with a plug-in to integrate with Google Maps and treat a map as a special form input to let the user pick a location on the map.
The plug-in generates all the HTML and Javascript to get the user selected location coordinates and put them on form fields, so when the form is submitted the PHP script that processes the form can store the coordinates in a database or perform some other useful action with them.
Real world applications of this plug-in include a directory of user groups or a directory of professionals available for taking jobs world wide.
Here is the complete PHP forms class with the Google Maps plug-in is available here. There is also a tutorial video that explains how the forms class and the plug-in works.
Google Maps API along with DB2® or Informix®, PHP, JavaScript, and XML let you create an easy-to-use map with your data on it. http://www.ibm.com/developerworks/db2/library/techarticle/dm-0602lurie/ - Google Maps API, DB2/Informix, and PHP on Linux Google Maps using Java and PostGIS Google Maps AJAX and .NET Tutorial on retrieving overlays from an SQL Server using this control. GMDC is a library for downloading and displaying information from a database inside Google Maps in an efficient manner
(Mapki) AJAX with PHP and MySQL
Official and Documented 'Using PHP and MySQL to create KML' *recommended
Google Maps with a MySQL Database (This is not the best way to use PHP/mySQL with GMaps. The two previous tutorials are suggested instead) GeoServer - Displays data from PostGIS, MySQL, ArcSDE, DB2, and Oracle Spatial on Google Maps, with a WMS javascript connector, or through OpenLayers. Also automatically outputs same data as KML. Free Databases MS SQL Server 2005 Express Edition (Service Pack 2 Released 18/02/07) EnterpriseDB (EnterpriseDB substantially enhances PostgreSQL)
Cheap DB/Web Storage Google Speadsheet Examples http://spreadsheets.google.com/pub?key=pAxR-aN5DCiWvv9qkJtz-Xw get a txt output http://spreadsheets.google.com/pub?key=pAxR-aN5DCiWvv9qkJtz-Xw&output=txt csv output http://spreadsheets.google.com/pub?key=pAxR-aN5DCiWvv9qkJtz-Xw&output=csv selecting a range http://spreadsheets.google.com/pub?key=pAxR-aN5DCiWvv9qkJtz-Xw&output=csv&gid=0&range=A2:C26 http://spreadsheets.google.com/pub?key=pAxR-aN5DCiWvv9qkJtz-Xw&output=csv&gid=0&range=A2:C12
Examples of SQL Commands useful in Google Maps:
PostgreSQL
Find a polygon that contains a point:
select * from mygeotable where point'(35,-90)' @ polygonfield ;
Example site: USPS Zip Code Map
Find the closest line segment to a point and the closest point on that line segment to the point: select *, point '(35,-90)' ## linesegfield as closestpoint,point '(35,-90)' <-> (point '(35,-90)' ## linesegfield) as distance from mygeotable order by distance limit 1 ; Example site: Reverse Geocoder MySQL
MySQL Spatial Extension (in 5.0)
SELECT
SQL Server 2005 (with the SQL Server Integration Assembly) Find polygons containing a point: SELECT location_Shape FROM tbl_Shapes WHERE dbo.LineEncloses(location_Shape, 1, '55.6,12.55') = 1 Find points within a distance: SELECT location_Point FROM tbl_Points WHERE dbo.Distance(location_Point, '55.6,12.55') < 10 Find points within bounds: SELECT location_Point FROM tbl_Points WHERE dbo.BoundsContains(SqlBounds, location_Point) With Ruby on Rails and GeoKit GeoKit adds distance finders directly to your ActiveRecord models, with optional integrated geocoding. Examples: Store.find(:closest, :origin=>[37.792,-122.393]) Store.find(:all, :origin=>'100 Spear St, San Francisco, CA', conditions=>'distance<10') GeoKit also has integrated IP-based geolocation, as well as Ruby wrappers around multiple geocoding services.
I found the following site giving the server and client code for http://www.devfish.net/downloads.aspx I used a version of the virtual earth starter kit, and adapted it for
data driven navigation/breadcrumb php class w/ mySQL and mod_rewrite demo
|
| ||||||||||||||||||||||||||||
| Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy |
| ©2008 Google |