I try to use Complex feature created by App-Schema extension in the
OpenLayers3 retrieving features by bbox. As a result I have exception report
telling me 'cannot be cast to org.opengis.feature.simple.SimpleFeature'. Did
somebody have the same and how to deal with it?
OpenLayer:
var vectorSource = new ol.source.ServerVector({
format: new ol.format.GeoJSON(),
loader: function(extent, resolution, projection) {
var url = 'http://loom-gis.geo.ut.ee:8040/geoserver/ows?SERVICE=WFS&’ +
'VERSION=1.1.0&REQUEST=GetFeature&TYPENAMES=plf:SampleLocality&' +
'OUTPUTFORMAT=text/javascript&FORMAT_OPTIONS=callback:loadFeatures&' +
'SRSNAME=EPSG:3301&BBOX=' + extent.join(',') +
',EPSG:3301';
//&RESOLVE=none&RESOLVEDEPTH=0
$.ajax({
url: url,
dataType: 'jsonp'
});
},
strategy: ol.loadingstrategy.createTile(new ol.tilegrid.XYZ({
maxZoom: 19
})),
projection: 'EPSG:3301'
});
: org.geotools.feature.FeatureImpl cannot be cast to
org.opengis.feature.simple.SimpleFeature
Kind regards,
Valentina
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/OpenLayers-with-App-Schema-tp5163294.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Valentina,
GeoServer WFS JSON output format does not yet support complex features. Note that, because app-schema types are defined in terms of XML Schemas, mapping from XML to a JSON information model is not standardised.
Have you tried using WMS for OpenLayers integration? app-schema works with WMS.
Kind regards,
Ben.
On 22/09/14 21:55, Valentina Sagris wrote:
I try to use Complex feature created by App-Schema extension in the
OpenLayers3 retrieving features by bbox. As a result I have exception report
telling me 'cannot be cast to org.opengis.feature.simple.SimpleFeature'. Did
somebody have the same and how to deal with it?
OpenLayer:
var vectorSource = new ol.source.ServerVector({
format: new ol.format.GeoJSON(),
loader: function(extent, resolution, projection) {
var url = 'http://loom-gis.geo.ut.ee:8040/geoserver/ows?SERVICE=WFS&’ +
'VERSION=1.1.0&REQUEST=GetFeature&TYPENAMES=plf:SampleLocality&' +
'OUTPUTFORMAT=text/javascript&FORMAT_OPTIONS=callback:loadFeatures&' +
'SRSNAME=EPSG:3301&BBOX=' + extent.join(',') +
',EPSG:3301';
//&RESOLVE=none&RESOLVEDEPTH=0
$.ajax({
url: url,
dataType: 'jsonp'
});
},
strategy: ol.loadingstrategy.createTile(new ol.tilegrid.XYZ({
maxZoom: 19
})),
projection: 'EPSG:3301'
});
: org.geotools.feature.FeatureImpl cannot be cast to
org.opengis.feature.simple.SimpleFeature
Kind regards,
Valentina
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/OpenLayers-with-App-Schema-tp5163294.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Mineral Resources Flagship
Australian Resources Research Centre