1.      We got shp, Index, dbf file from client
2.      In order to map it to Google map we need to convert it to Kml or
Kmz format
3.      For converting shp files to kml files we need to use tools
a.      http://shape2earth.com/shp2e.aspx
Follow these steps to start using Shape2Earth for MapWindow GIS:
1.  Download and install the free version of Google Earth.
2.  Download and install the free and open source MapWindow GIS.
3.  Directly install Shape2Earth.
4.  If you do not see Shape2Earth in the MapWindow menu, click on Plug-
ins menu and select Shape2Earth.
5.  Load a Shapefile into MapWindow, set its symbology, and click
"Export to KML" under the Shape2Earth menu.
6.  Test Shape2Earth on your data.  If you would like to purchase, you
may do so by selecting 'Register' under the Shape2Earth menu.
4.      Load the Kml files to test server
5.      Using the above script
a.      Replace the key with google map key.
b.      Run the html
c.      Replace the url with url below and the kml is integrated in google
map





Files uploaded on test server
http://www.fileden.com/files/2010/8/17/2944209//CCTV.kml
http://www.fileden.com/files/2010/8/17/2944209//rahul.kmz
http://www.fileden.com/files/2010/8/17/2944209//ParkingBays.kml


For creating your own KML file
1.      
http://www.easterngeek.com/2010/05/creating-kml-and-kmz-files-for-your.html

Below script loads kml in web form and integrate with google maps

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html;
charset=utf-8" />

    <title>Using Google Earth with the Maps API - GGeoXml</title>
    <!-- *** Replace the key below with your own API key, available at
http://code.google.com/apis/maps/signup.html *** -->
 <script type="text/javascript" src="http://www.google.com/jsapi?
key=ABQIAAAA12Pke58so2nENwvwGj3TdhSKCYIG41ZmgbqNHNP1bBcXp7ubLBQlOJs4giIBepFfzBvGnRYcoaTksQ"></
script>

    <script type="text/javascript">
    google.load('maps', '2.160');
    var map;
    var geoXml;

    function initialize() {
      map = new GMap2(document.getElementById("map"));
      map.setCenter(new GLatLng(37.4328, -122.077), 12);
      map.addMapType(G_SATELLITE_3D_MAP);
      var mapui = map.getDefaultUI();
      mapui.maptypes.physical = false;
      map.setUI(mapui);
      map.setMapType(G_SATELLITE_MAP);
    }

    function loadKml(url) {
      map.clearOverlays();
      geoXml = new GGeoXml(url);
      map.addOverlay(geoXml);
      geoXml.gotoDefaultViewport(map);

      document.getElementById('kmlurl').value = url;
    }

    function loadKmlBox() {
      loadKml(document.getElementById('kmlurl').value);
    }
    </script>
  </head>
  <body onload="initialize()" onunload="GUnload">

    <input id="kmlurl" size="100" value="http://code.google.com/
articles/support/earthapikml.kml"/>
    <input type="button" onclick="loadKmlBox()" value="Load KML"/>

    <br>
    <br>

    <a href="#" onclick="loadKml('http://code.google.com/articles/
support/earthapikml.kml'); return false;">Basic KML</a> |
    <a href="#" onclick="loadKml('http://services.google.com/earth/kmz/
vancouver_sea_levels_n.kmz'); return false;">Sample KML 1</a> |
    <a href="#" onclick="loadKml('http://www.cornishlight.co.uk/
cornishlight.kml'); return false;">Sample KML 2</a> <br>

    <br>
    <br>
    <div id="map" class="map" style="width:800px;height:600px"></div>
  </body>
</html>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to