[geotk] WFS client

Riou Yvan N2A (DAS SDMOL) yvan.riou at gendarmerie.interieur.gouv.fr
Fri Oct 1 09:19:48 EDT 2010


Good evening Guilhem,

I'm pleased to tell you that, with the last geotk-pending snapshot, the code you wrote in your last message is working :-)

Furthermore, I'm now able to get the features I want from our production Geoserver : no errors !

However, I still get an exception (ExceptionReport) while trying to get features against an Esri ArcGIS WFS Service (version 9.3.1) : may you test your code that way ?

Thanks very much,

yvan


S.A. Yvan RIOU
chef du groupe Cartographie
CTGN/SDML
1 boulevard Théophile Sueur
93111 Rosny-sous-Bois
tél: 01 58 66 57 10

-----Message d'origine-----
De : geotoolkit-bounces at lists.osgeo.org [mailto:geotoolkit-bounces at lists.osgeo.org] De la part de geotoolkit-request at lists.osgeo.org
Envoyé : mardi 28 septembre 2010 18:00
À : geotoolkit at lists.osgeo.org
Objet : [Internet] Geotoolkit Digest, Vol 17, Issue 9

Send Geotoolkit mailing list submissions to
	geotoolkit at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.osgeo.org/mailman/listinfo/geotoolkit
or, via email, send a message with subject or body 'help' to
	geotoolkit-request at lists.osgeo.org

You can reach the person managing the list at
	geotoolkit-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of Geotoolkit digest..."


Today's Topics:

   1. Re: WFS client (Guilhem)


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

Message: 1
Date: Tue, 28 Sep 2010 12:21:21 +0200
From: Guilhem <guilhem.legal at geomatys.fr>
Subject: Re: [geotk] WFS client
To: geotoolkit at lists.osgeo.org
Message-ID: <4CA1C1A1.4000403 at geomatys.fr>
Content-Type: text/plain; charset="iso-8859-1"

hi yvan,

I have push a new version of the WFS client, with a flag allowing to send only POST request, because geoserver seems to have issues with XML filter in the GET request.
I ran the following piece of code on two open geoserver that i found on the net (http://apps.who.int/tools/geoserver/wfs and
http://ogc.gbif.org/wfs)
The clients works i receive the feature :

public static void main(String[] args) throws URISyntaxException, DataStoreException, MalformedURLException, NoSuchAuthorityCodeException, FactoryException {

         // here the "true" means POST REQUEST
         WFSDataStore pDS = new WFSDataStore(new URI("http://ogc.gbif.org/wfs"), true);
         if (pDS != null) {

             PropertyName p = new DefaultPropertyName("geom");
             double[] min = {-10, -10};
             double[] max = {10, 10};
             CoordinateReferenceSystem crs = CRS.decode("EPSG:4326");
             DefaultBoundingBox env = new DefaultBoundingBox(min, max);
             env.setCoordinateReferenceSystem(crs);
             DefaultLiteral<Envelope> lit = new DefaultLiteral<Envelope>(env);
             Filter filter = new DefaultBBox(p, lit);
             FeatureReader reader =
pDS.getFeatureReader(QueryBuilder.filtered(new
DefaultName("http://gbif.org/geobon/demo", "cluster10"), filter));

             while (reader.hasNext()) {
                 System.out.println(reader.next());
             }
         } else {
             System.out.println("the datastore is null");
         }
     }

I hope, this will work for you.

Guilhem Legal



On 27/09/2010 17:54, Guilhem wrote:
> hello yvan,
>
> We didn't really try to use the geotk WFS client with either Geoserver 
> or ArcGis. At least if we have used it, it was with Constellation-SDI.
> I'll try to run some tests with Geoserver in the next days to see what 
> are the issues.
>
> Guilhem Legal
>
> On 27/09/2010 08:14, Riou Yvan N2A (DAS SDMOL) wrote:
>> Good morning,
>> Since some weeks, I'm trying to use geotoolkit-pending (with the last 
>> SNAPSHOT everyday) and particularly the WFS client (1.1.0) which 
>> seems to have inconsitencies while handling features from Geoserver 
>> (different versions) and ArcGIS Server (as WFS Server version 9.3.1) 
>> datastore. Are your tests against those WFS OK or do you also having 
>> problems ?
>> Thanks a lot for your works.
>> yvan.
>>
>>
>> _______________________________________________
>> Geotoolkit mailing list
>> Geotoolkit at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geotoolkit
>>    
>
>
> _______________________________________________
> Geotoolkit mailing list
> Geotoolkit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geotoolkit
>    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geotoolkit/attachments/20100928/818d0544/attachment-0001.html

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

_______________________________________________
Geotoolkit mailing list
Geotoolkit at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geotoolkit


End of Geotoolkit Digest, Vol 17, Issue 9
*****************************************
-------------- next part --------------
Ce message électronique et tous les fichiers attachés qu'il contient sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le retourner à son émetteur. La publication, l'usage, la distribution, l'impression ou la copie non autorisée de ce message et des attachements qu'il contient sont strictement interdits.

En cas d'urgence, composez le 17 ou le 112.
Afin de contribuer au respect de l'environnement, merci de n'imprimer cet e-mail qu'en cas de necessite.

This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.

In case of emergency, dial number 17 or 112.
To contribute to the environmental protection, please print this e-mail only if necessary. 


More information about the Geotoolkit mailing list