[Users] example of FeatureStore / FeatureReader

Oliver Christen oliver.christen at camptocamp.com
Mon Jul 19 09:07:31 CEST 2010


hello Matt

thank you for the answer, 

I found the problem, the json returned by the server was not 100% geojson valid (though it was json valid). I dont know exactly which part of the FeatureStore / FeatureReader is supposed parse the response code but I would have expected at least an error like "server answer is not geojson and can not be read" or something, silent failing are difficult to debug.

also, it seems the OpenLayers.Protocol.HTTP used in the GeoExt.data.ProtocolProxy automaticaly use an ogcproxy crossdomain request if the url used is a full url and not a relative url, even if the domaine is the same, which surprised me a bit.

but I succeded to have everything working

best regards
Oliver
  ----- Original Message ----- 
  From: Matt Priour 
  To: Oliver Christen 
  Sent: Friday, July 16, 2010 4:54 PM
  Subject: Re: [Users] example of FeatureStore / FeatureReader


  You need to include a fields parameter to the Feature Store that reflects the attributes of interest on your features. Without this parameter, the attribute you are interested in filtering on is buried as a property of a property of a data record and can not easily be used.

  Also, including a small bit of relevant code would allow others to help you much more effectively.

  The GeoExt examples page has several examples of using FeatureStores. Go through them and look at the source. You can learn a lot from those examples.

  Matt Priour
  Kestrel Computer Consulting


  From: Oliver Christen 
  Sent: Friday, July 16, 2010 8:54 AM
  To: users at geoext.org 
  Subject: [Users] example of FeatureStore / FeatureReader


  hello

  im trying to implement a simple combobox using a geoext FeatureStore / FeatureReader
  the query is done correctly and I see valid geojson being returned, but I cant seem to be able to have the data parsed and ultimately displayed in the combobox result list.

  anyone has a simple example of FeatureStore / FeatureReader usage with a combobox ?

  thanks in advance
  Oliver



------------------------------------------------------------------------------


  _______________________________________________
  Users mailing list
  Users at geoext.org
  http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100719/614ad69c/attachment.htm 


More information about the Users mailing list