Jesse Eichar wrote:
> At which version did this start to work.  I am using 1.5.1 and it is not 
> working that way.  
you mean GeoServer 1.5.1? or GeoTools 2.5.1?
WFS_1_1_0_DataStore was first introduced at GeoTools 2.5.2, if that 
answers your question. If you want to be sure make sure VERSION=1.0.0 is 
on the getcaps URL, though that should be the default anyways:

 From the factory javadocs:

...
  * Note the {...@code URL} provided as parameter must refer to the actual 
{...@code GetCapabilities}
      * request. If you need to specify a preferred version or want the 
GetCapabilities request to be
      * generated from a base URL build the URL with the
      * {...@link #createGetCapabilitiesRequest(URL, Version)} first.
      * </p>
      *
      * @see 
org.geotools.data.DataStoreFactorySpi#createDataStore(java.util.Map)
      */
     public WFSDataStore createDataStore(final Map params) throws 
IOException {
...

/**
      * Creates a HTTP GET Method based WFS {...@code GetCapabilities} request.
      * <p>
      * If the query string in the {...@code host} URL already contains a 
VERSION number, that version
      * is used, otherwise the queried version will be 1.0.0.
      * </p>
      * <p>
      * <b>NOTE</b> the default version will be 1.0.0 until the support 
for 1.1.0 gets stable enough
      * for general use. If you want to use a 1.1.0 WFS you'll have to 
explicitly provide the
      * VERSION=1.1.0 parameter in the GetCapabilities request meanwhile.
      * </p>
      *
      * @param host
      *            non null URL pointing either to a base WFS service 
access point, or to a full
      *            {...@code GetCapabilities} request.
      * @return
      */
     public static URL createGetCapabilitiesRequest(final URL host) {


If you can provide more specifics about the error you're getting please 
do so I can better help you.

Cheers,
Gabriel
There is no VERSION parameter and when I added it it
> started to blow up.
> 
> Jesse
> 
> On Mon, May 25, 2009 at 12:00 PM, Jody Garnett <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     Two things:
>     - unless VERSION=1.1.0 is explicitly stated the WFSDataStoreFactory
>     will produce a 1.0 version
>     - use VERSION=1.0 to foce the use of the WFS 1.0 datastore
>     implementation
> 
>     Check out the WFSServiceImpl in uDig for an example of how to do this.
>     Jody
> 
>     On Mon, May 25, 2009 at 6:35 PM, Jesse Eichar
>     <[email protected] <mailto:[email protected]>>
>     wrote:
>      > Hi,
>      >
>      > Is WFS 1.1 Datastore implementation still read only on trunk?  If
>     not is
>      > there a way to use the WFS 1.0 implementation instead?  I tried a
>     couple
>      > hacks to force the 1.0 implementation to be used but the
>     Capabilities parser
>      > blew up.  Any ideas how I can access the use WFS 1.0  implementation?
>      >
>      > Thanks,
>      >
>      > Jesse
>      >
>      >
>     
> ------------------------------------------------------------------------------
>      > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
>      > is a gathering of tech-side developers & brand creativity
>     professionals.
>      > Meet
>      > the minds behind Google Creative Lab, Visual Complexity,
>     Processing, &
>      > iPhoneDevCamp asthey present alongside digital heavyweights like
>     Barbarian
>      > Group, R/GA, & Big Spaceship. http://www.creativitycat.com
>      > _______________________________________________
>      > Geotools-devel mailing list
>      > [email protected]
>     <mailto:[email protected]>
>      > https://lists.sourceforge.net/lists/listinfo/geotools-devel
>      >
>      >
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, & 
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel


-- 
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to