Changes for page Spatial Extensions
on 2011/10/21 16:55
on 2011/10/23 10:48
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (1 modified, 4 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -55,9 +55,45 @@ 55 55 56 56 = Querying on spatial using HQL = 57 57 58 - 58 + The following functions can be used in HQL query (in combination with non spatial criteria): 59 59 60 +* dimension 61 +* geometrytype 62 +* srid 63 +* envelope 64 +* astext 65 +* asbinary 66 +* isempty 67 +* issimple 68 +* boundary 69 +* overlaps 70 +* intersects 71 +* contains 72 +* crosses 73 +* disjoint 74 +* equals 75 +* touches 76 +* within 77 +* relate 78 +* distance 79 +* buffer 80 +* convexhull 81 +* difference 82 +* intersection 83 +* symdifference 84 +* geomunion 60 60 86 +* extent (oracle) 87 +* transform (oracle) 88 + 89 +Oracle specific functions: 90 + 91 +* centroid 92 +* concat_lines 93 +* aggr_convexhull 94 +* aggr_union 95 +* lrs_concat 96 + 61 61 = Geo Services = 62 62 63 63 There are 3 built in services that are available for spatial operations, in addition to storing and querying information: ... ... @@ -94,9 +94,60 @@ 94 94 95 95 NOTE that Services are subject to Usage condition. Please refer to their website. 96 96 133 +== Setup of GeoServices == 97 97 135 +ViaMichelin and GoogleMaps services have their own bundles. Those bundles are packages as product. 136 +You must add the product in your configuration. 137 + 138 +Please note that the version of the platform should the same as the version of the GeoSpatial Extensions. 139 + 140 + 141 +[[image:img39.png||alt="Product configuration / GeoSpatial"]]. 142 + 143 +* Geocoding: 144 + 145 +The ViaMichelin GeoCoder is a SOAP API call and requires viamichelin credentials: 146 + 147 +[[image:img42.png]] 148 + 149 +* GeoMapping 150 + 151 +The ViaMichelin GeoMapping service requires the JavaScript Key (see image above). 152 + 153 +Note that the API key MUST be setup with your website URL (localhost for a test system, ...). 154 + 155 + 98 98 == Using Geocoding == 99 99 100 -JavaScript Reference:158 +The Geocoding is a classical JavaScript service: 101 101 102 -[[Geocoder>>Javascript.GeoSpatial.Geocoder]] 160 +{{code language="javascript"}} 161 +var res = Geocoder.geocodeAddress(street,null,data.rqCommune.rqNomInsee,null,"FRA"); 162 +if(res != null) { 163 + data.rqGeoLoc = res.Location; 164 +} 165 +{{/code}} 166 + 167 +The returned object is a Location object that contains the following properties: 168 + 169 +* City 170 +* StreetNumber 171 +* StreetLabel 172 +* ZipCode 173 +* State 174 +* Country 175 +* Location as a POINT (lat, long) 176 + 177 +== Using Geomapping == 178 + 179 + 180 +You must setup the Mapper you want to use in the com.requea.dynapage.geospatial.geomap system parameter: 181 + 182 + 183 +[[image:img43.png||alt="GeoMapping setup"]] 184 + 185 + 186 +When the mapping service is defined, Geolocated POINTS will be rendered as a map: 187 + 188 + 189 +[[image:img44.png||alt="Geo Map"]]
- ScreenShot2011-10-13at3.50.13PM.png
-
- Size
-
... ... @@ -1,1 +1,1 @@ 1 - 0bytes1 +67.2 KB - Content
- img39.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.pdubois - Size
-
... ... @@ -1,0 +1,1 @@ 1 +66.2 KB - Content
- img42.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.pdubois - Size
-
... ... @@ -1,0 +1,1 @@ 1 +32.1 KB - Content
- img43.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.pdubois - Size
-
... ... @@ -1,0 +1,1 @@ 1 +33.5 KB - Content
- img44.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.pdubois - Size
-
... ... @@ -1,0 +1,1 @@ 1 +102.3 KB - Content