UNOFFICIAL Hi All,
This is fixed in v2.21.0 <gsmlbh:shape> <gml:LineString srsDimension="1" srsName="#gsml.borehole.205822.shape"> <gml:posList>653.4 653.4</gml:posList> </gml:LineString> </gsmlbh:shape> Thanks Geoserver dev team! Cheers, Ursula From: Michael, Ursula (DEM) <ursula.mich...@sa.gov.au> Sent: Tuesday, 24 May 2022 2:21 PM To: geoserver-users@lists.sourceforge.net Subject: [Geoserver-users] cql-function toLineString 1D linestring custom SRS UNOFFICIAL Hi GeoServer User List, I have a query regarding the handling of the 1D LineString geometries generated using the toLineString CGL function<https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.geoserver.org%2Fstable%2Fen%2Fuser%2Fdata%2Fapp-schema%2Fcql-functions.html%3Fhighlight%3Dapp%2520schema%23tolinestring&data=05%7C01%7Cursula.michael%40sa.gov.au%7Cab5fe83f12524e0d433f08da3d41ac68%7Cbda528f7fca9432fbc98bd7e90d40906%7C1%7C0%7C637889649535173337%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tAwfnxA6pkmmu9WBg8NFLynedtNKg4q7tkQVTa%2FyCk4%3D&reserved=0> 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<https://aus01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opengis.net%2Fdef%2Fcrs%2FEPSG%2F0%2F7844&data=05%7C01%7Cursula.michael%40sa.gov.au%7Cab5fe83f12524e0d433f08da3d41ac68%7Cbda528f7fca9432fbc98bd7e90d40906%7C1%7C0%7C637889649535173337%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nHNtJbLru671eHMd55gIfTTdDrzvQJqiruGTF%2FwWQmI%3D&reserved=0>"> <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://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgeoserver%2Fgeoserver%2Fblob%2Fc98467248a24701611f1d5d0f20fe5ea075e43a0%2Fsrc%2Fextension%2Fapp-schema%2Fapp-schema-test%2Fsrc%2Ftest%2Fresources%2Ftest-data%2FGsml32BoreholeInterval.xml&data=05%7C01%7Cursula.michael%40sa.gov.au%7Cab5fe83f12524e0d433f08da3d41ac68%7Cbda528f7fca9432fbc98bd7e90d40906%7C1%7C0%7C637889649535173337%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VkRJ3sQT08q2GFyqj9F%2FtMaJcgQDXu9%2BTaG5Fe2aerM%3D&reserved=0> > and this OneGeology >reference<https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fonegeology.org%2Fservice_provision%2Fdata_preparation%2Fcomplex.html%23boreholeinterval-geometry-shape&data=05%7C01%7Cursula.michael%40sa.gov.au%7Cab5fe83f12524e0d433f08da3d41ac68%7Cbda528f7fca9432fbc98bd7e90d40906%7C1%7C0%7C637889649535173337%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4eSQwEIPXiTcI7jZYVWQc1RtJQ28JsLDSWgVyxzgim4%3D&reserved=0>, > 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