example geomajas application using the geomajas-layer-deegree as vector layer and the pure gwt face.
- compile geomajas-layer-deegree
$ git clone https://github.com/martin-vi/geomajas-layer-deegree.git
$ cd geomajas-layer-deegree
$ mvn clean install
- clone the geomajas-puregwt-demo application
% git clone https://github.com/martin-vi/geomajas-puregwt-demo.git
- configure geomajas-layer-deegree under geomajas-puregwt-demo/src/main/webapp/WEB-INF/layerDeegreeWfs.xml
- setup wfs client configuration
<bean name="layerWfs" class="org.deegree.DeegreeLayer">
<property name="url" value="http://hostname:PORT/services/wfs" />
<property name="featureTypeName" value="MY_WFS_FEATURE" />
<property name="featureGeometyPropertyName" value="geometryProperty" />
<property name="layerInfo" ref="layerWfsLayerInfo" />
</bean>
- define attributes for the feature type
<bean class="org.geomajas.configuration.FeatureInfo" name="layerWfsLayerFeatureInfo">
<property name="identifier">
[...]
</property>
<property name="geometryType">
[...]
</property>
<property name="attributes">
<list>
<bean class="org.geomajas.configuration.PrimitiveAttributeInfo">
[...]
</bean>
[...]
</list>
</property>
</bean>
- compile the webapp
$ cd geomajas-puregwt-demo
$ mvn clean install
- ensure wfs server is running (e.g. local deegree wfs serice )
- run the application either with jetty or tomcat
$ mvn jetty:run
- navigate your browser to http://localhost:8080/
- the Click button has no use for now, the package containing the FeatureClickedListener in geomajas somehow did not keep up with the latest releases
- not all filter are yet implemented in geomajas-layer-deegree
- in large scale the get feature tool is not very accurate, induced by rounding in deegree (geomajas to deegree geometry conversion)