2

I'm trying to access a WFS source by using the GeoTools WFS plugin as presented here.

However, the layer I'm trying to fetch is only accessible through a proxy, and the GetCapabilities page has the plain URLs (ie. not the proxy URLs). Thus, my requests fail as the WFS plugin attempts a DescribeFeatureType request to the wrong URL.

Is there any way to just fetch a certain GetFeature-layer, without having to query the feature schema? Could I somehow supply the schema to the plugin so no query is made?

iehrlich
  • 3,572
  • 4
  • 34
  • 43

1 Answers1

0

The WFS-NG module is now the prefered GeoTools wfs module. However, it won't help with this issue either I'm afraid.

The best solution is to fix the server you are using (if it is a GeoServer you can change the base URL). Alternatively may be you can apply an XSLT (or regexp) to the incoming capabilities document?

Finally you can look at modifying the GeoTools code to allow the end user to supply a URL (or to guess it from the getCapababilities URL). Please read the contribution guide lines. It would certainly do no harm to create a feature request in the issue tracker.

Ian Turton
  • 10,018
  • 1
  • 28
  • 47