From version 4.1
edited by Pierre Dubois
on 2011/10/21 16:55
To version 5.1
edited by Pierre Dubois
on 2011/10/23 10:48
Change comment: Imported from XAR

Summary

Details

Icon 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"]]
Icon ScreenShot2011-10-13at3.50.13PM.png
Size
... ... @@ -1,1 +1,1 @@
1 -0 bytes
1 +67.2 KB
Content Icon
Icon img39.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.pdubois
Size
... ... @@ -1,0 +1,1 @@
1 +66.2 KB
Content Icon
Icon img42.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.pdubois
Size
... ... @@ -1,0 +1,1 @@
1 +32.1 KB
Content Icon
Icon img43.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.pdubois
Size
... ... @@ -1,0 +1,1 @@
1 +33.5 KB
Content Icon
Icon img44.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.pdubois
Size
... ... @@ -1,0 +1,1 @@
1 +102.3 KB
Content Icon
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 9.11.5 - Documentation