Hi ThinkGeo team,
We need to display and query adv:AX_Strasse from the public
Bayern ATKIS WFS.
It is a composite object: the street’s id and attributes belong to AX_Strasse,
while its geometry belongs to the objects referenced by bestehtAus.
Live response evidence (2026-10-09). Compare these two requests:
The first response has numberReturned="1", numberMatched="unknown", and
AX_Strasse id DEBYBDLMFV00000G, with bezeichnung=ST2179, widmung=1305
and seven bestehtAus references, but no geometry. The second response keeps that
same parent and adds seven AX_Strassenachse objects under
wfs:additionalObjects/wfs:SimpleFeatureCollection/wfs:member. Each has a
gml:LineString in EPSG:25832. All seven gml:id values match the parent’s
urn:adv:oid:... references. numberReturned still counts only the one parent.
The service advertises support for resolve=local in GetCapabilities.
Spatial requests fail at the service. The user also sees this exception when
connecting the layer:
InvalidParameterValue: at FILTER: Request rejected due to errors.
InternalExceptionCode: iiOperationParsingFailed.
The PropertyName "adv:position" (for FeatureType adv:AX_Strasse) is in step
"adv:position" not compliant with the Application schema (GML 3.2.1).
This is reproducible without the SDK and without an explicit FILTER or
PROPERTYNAME parameter:
curl --get 'https://geoservices.bayern.de/wfs/v1/ogc_atkis_basisdlm.cgi' \
--data-urlencode 'SERVICE=WFS' \
--data-urlencode 'VERSION=2.0.0' \
--data-urlencode 'REQUEST=GetFeature' \
--data-urlencode 'TYPENAMES=adv:AX_Strasse' \
--data-urlencode 'NAMESPACES=xmlns(adv,http://www.adv-online.de/namespaces/adv/gid/7.1)' \
--data-urlencode 'BBOX=725800,5566300,726300,5567200,urn:ogc:def:crs:EPSG::25832' \
--data-urlencode 'COUNT=1'
Live checks on 2026-10-09:
| Type / extra parameters | Response |
|---|---|
adv:AX_Strasse, BBOX above |
HTTP 200 OWS exception with the exact error above |
adv:AX_Strasse, same BBOX plus RESOLVE=local&RESOLVEDEPTH=1
|
Same exception |
adv:AX_Strassenachse, same BBOX |
One feature with a LineString |
The installed SDK’s spatial request builder sends BBOX=...; it does not insert
adv:position into a spatial FILTER. The field name in this error originates
from the service’s handling of BBOX. Propagating the service error is correct.
AGK’s metadata connection and sampled preview do not request a BBOX; rendering
and spatial selection do. Without the user’s call stack, the exact UI trigger
is not established, but the service failure is independently reproduced.
Installed SDK inspection. In ThinkGeo.Core.dll version 15.0.0-beta208,
WfsV2AsyncFeatureSource.GetFeaturesAsync searches wfs:member descendants but
only parses objects whose local name equals the requested TypeName. It therefore
skips the additional AX_Strassenachse objects when requesting AX_Strasse.
The feature parser returns null for the parent because it finds no inline geometry;
it does not follow bestehtAus to the additional objects. Adding RESOLVE=local
to the request alone cannot produce a drawable parent feature through this reader.
The following uses only public SDK APIs to reproduce the read on Windows:
using System;
using System.Threading;
using System.Xml.Linq;
using ThinkGeo.Core;
using var timeout = new CancellationTokenSource(TimeSpan.FromSeconds(30));
var source = new WfsV2AsyncFeatureSource(
"https://geoservices.bayern.de/wfs/v1/ogc_atkis_basisdlm.cgi", "adv:AX_Strasse")
{
WfsAxisOrder = WfsAxisOrder.XY
};
try
{
await source.OpenAsync(timeout.Token);
string request = source.GetRequestUrl(null, 1, 0)
+ "&RESOLVE=local&RESOLVEDEPTH=1";
var page = await source.GetFeaturesAsync(request, timeout.Token);
var response = XDocument.Parse(source.LastXmlResponse);
Console.WriteLine(response);
Console.WriteLine($"SDK features: {page.Features.Count}");
}
finally
{
await source.CloseAsync(CancellationToken.None);
}
Could the SDK support an explicit composite-geometry mapping, or expose resolved
objects and their reference associations for that purpose? For this type we need
the geometry of all bestehtAus components together with the parent’s id
and attributes. Treating the components as independent street records would lose
the keys used by AGK links. Arbitrary references must not automatically become
geometry: the relationship to compose needs to be explicit.
Please cover preview reads, BBOX reads used by classic/GPU rendering, attribute
queries and id lookups. Paging must continue to count top-level parent records,
not the additional component objects. Spatial support also needs a supported
component-based query strategy or a change at the service: simply adding
RESOLVE=local to the existing BBOX request still fails. Please keep the
service-side spatial-query limitation distinct from the SDK’s missing reference
association support.