Bienvenue sur PostGIS.fr

Bienvenue sur PostGIS.fr , le site de la communauté des utilisateurs francophones de PostGIS.

PostGIS ajoute le support d'objets géographique à la base de données PostgreSQL. En effet, PostGIS "spatialise" le serverur PostgreSQL, ce qui permet de l'utiliser comme une base de données SIG.

Maintenu à jour, en fonction de nos disponibilités et des diverses sorties des outils que nous testons, nous vous proposons l'ensemble de nos travaux publiés en langue française.

source: trunk/workshop-routing-foss4g/web/proj4js/test/testWKT.html @ 76

Revision 76, 2.7 KB checked in by djay, 13 years ago (diff)

Ajout du répertoire web

  • Property svn:executable set to *
Line 
1<html>
2<head>
3<script type="text/javascript" src="../lib/proj4js.js"></script>
4<script type="text/javascript">
5
6var aWKT = [
7'GEOGCS["WGS84 Lat/Long Degrees -180 ==> +180",DATUM["D_WGS_1984",SPHEROID["World_Geodetic_System_of_1984",6378137,298.257222932867]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]',
8'PROJCS["ALG-S-AN",GEOGCS["VOIR1875",DATUM["VOIR1875",SPHEROID["CLRK-IGN",6378249.200,293.46602129],TOWGS84[-73.0000,-247.0000,227.0000,0.000000,0.000000,0.000000,0.00000000]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert Tangential Conformal Conic Projection"],PARAMETER["false_easting",500000.000],PARAMETER["false_northing",300000.000],PARAMETER["scale_factor",0.999625800000],PARAMETER["central_meridian",2.70000000000000],PARAMETER["latitude_of_origin",33.30000000000000],UNIT["Meter",1.00000000000000]]',
9'PROJCS["CANQ27-M15M",GEOGCS["LL27",DATUM["NAD27",SPHEROID["CLRK66",6378206.400,294.97869821]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["false_easting",304800.000],PARAMETER["false_northing",0.000],PARAMETER["scale_factor",0.999900000000],PARAMETER["central_meridian",-90.00000000000000],PARAMETER["latitude_of_origin",0.00000000000000],UNIT["Meter",1.00000000000000]]',
10'LOCAL_CS["Non-Earth (Meter)",LOCAL_DATUM["Local Datum",0],UNIT["Meter", 1],AXIS["X",EAST],AXIS["Y",NORTH]]',
11'PROJCS["SVY21",GEOGCS["SVY21[WGS84]",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",28001.642],PARAMETER["False_Northing",38744.572],PARAMETER["Central_Meridian",103.8333333333333],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",1.366666666666667],UNIT["Meter",1.0]]'
12];
13
14var wktRE = /^\,(\w+)\[(.*)\]/;
15
16window.onload = function() {
17  var table = document.getElementById('resultsTable');
18  for (var i=0; i<aWKT.length; ++i) {
19    var tr = document.createElement('tr');
20    var wkt = aWKT[i];
21    //wkt = ','+wkt;
22    var testProj = new Proj4js.Proj(wkt);
23   
24    var td = document.createElement('td');
25    td.innerHTML = testProj.srsCode;
26    tr.appendChild(td);
27   
28    td = document.createElement('td');
29    td.innerHTML = testProj.units;
30    tr.appendChild(td);
31   
32    td = document.createElement('td');
33    td.innerHTML = testProj.projName;
34    tr.appendChild(td);
35   
36    td = document.createElement('td');
37    td.innerHTML = wkt;
38    tr.appendChild(td);
39    table.appendChild(tr);
40  }
41}
42
43</script>
44</head>
45<body>
46<h2>testing WKT parser</h2>
47<table id='resultsTable'>
48  <tr><th>name</th><th>units</th><th>proj</th><th align="left">wkt</th></tr>
49</table>
50</body>
51</html>
Note: See TracBrowser for help on using the repository browser.