ThinkGeo.com    |     Documentation    |     Premium Support

WFSFeatureLayer GetAllFeatures bug

I am getting an error of invalid WKT when making a call to GetAllFeatures and requesting all of the column data. If not making this call, the layer adds correctly. I have attached the XmlResponse when making this call as well as schema description and a GetAllFeatures with no columns.


Thanks.



1260-PavementScores_GetAllFeaturesAllColumns.zip (175 KB)

 Hi Nelson,


We found there is an invalid feature in your xml file whose OBJECTID is “93”. The xml node is as following:



You can see that the “gml:MultiLineString” node is empty, so the WKT which WfsFeatureSource can get is “MultiLineString(())”, and this can not pass the validation of Map Suite Core.
I think you should remove all the empty xml nodes in the server side to fix this problem.
Any more questions please let me know.
Thanks,
sun

 





This is very interesting, because it is worth noting that the layer can be added correctly if the geocache is left off... but when looking at the XMLResponse without columns, it looks like the feature is not even sent altogether... That would clearly explain why there is no error at all when the cache is not in use. 



I will have to get with the GIS Administrator in charge of this datat and determine why this was done or if it was an error in their data. 



Thank you sun!



Sun, 
  
   Can we enhance our validation so that if we do not find the well known data that we ignore the feature?  In this way we can at least move forward while Nelson checks on his end. 
  
 David

Hi guys, 



It turns out this was not intentional at all on the GIS end of things. It would be nice in a way if the XMLparser could skip the feature but at the same time maybe it is good GIS practice not to be including features that are not spatially present. 



Still, maybe it does make sense for Map Suite not to crash in this event. 



After the geometry was corrected, everything works as intended. 



Thanks again guys!



Nelson, thanks for your letting us know your status. I will add this enhancement to our working track system and try to enhance it after we get it back from holiday. 
  
 Thanks. 
  
 Yale