UNOFFICIAL

Hi GeoServer User List,

I have a query regarding the handling of the 1D LineString geometries generated 
using the toLineString CGL 
function<https://docs.geoserver.org/stable/en/user/data/app-schema/cql-functions.html?highlight=app%20schema#tolinestring>
 in app-schema.
I'm using the borehole features linestring shape id as the 'SRS_NAME' parameter 
for the datum of a 1D borehole interval linestring - ToLineString(BH_SHAPE_ID, 
INTERVAL_BEGIN, INTERVAL_END)
But the srsName is getting swapped out for the SRS defined for the borehole 
feature location or featuretype.xml.

<gsmlbh:shape>
<gml:LineString srsDimension="1" 
srsName="http://www.opengis.net/def/crs/EPSG/0/7844";>
<gml:posList>386 393.5</gml:posList>
</gml:LineString>
</gsmlbh:shape>


Which should look like this

<gsmlbh:shape>
<gml:LineString srsDimension="1" srsName="#gsml.borehole.205822.shape">
<gml:posList>386 393.5</gml:posList>
</gml:LineString>
</gsmlbh:shape>


>From reading this test data feature encoding in geoservers github 
>repository<https://github.com/geoserver/geoserver/blob/c98467248a24701611f1d5d0f20fe5ea075e43a0/src/extension/app-schema/app-schema-test/src/test/resources/test-data/Gsml32BoreholeInterval.xml>
> and this OneGeology 
>reference<https://onegeology.org/service_provision/data_preparation/complex.html#boreholeinterval-geometry-shape>,
> I believe this is the correct encoding, but I can't recall if I've seen it 
>working this way.

I'm using app-schema in GeoServer v20.4. Does anyone know if this was 
previously working, or why this functions SRS is getting overridden or ignored 
in the encoding? A bug?

Cheers,
Ursula

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to