Hello all,
Has anyone had luck getting app-schema to encode a geometry with multiple 
segments?  I'm trying to map a single geometry entry in the DB to a gml:Curve 
with multiple LineStringSegments, but instead of multiple segments the 
app-schema appears to be concatenating them into a single segment with no 
breaks.  I have tried persisting the geometry as both MultiLineString and 
GeometryCollection(LineString, LineString) using PostGIS 2.2.2, but both 
experience the same incorrect output translation.  For example, this is the 
output I'm expecting:

        <gml:Curve gml:id="id44" srsName=" 
http://www.opengis.net/gml/srs/epsg.xml#4052"; srsDimension="2" 
axisLabels="latitude longitude">
                  <gml:segments>
                    <gml:LineStringSegment>
                      <gml:posList count="7">42.1062 -82.4293 42.0936 -82.4319 
42.0803 -82.4344 42.0809 -82.4349 42.0670 -82.4381 42.0415 -82.4498 42.0297 
-82.4560</gml:posList>
                    </gml:LineStringSegment>
                    <gml:LineStringSegment>
                      <gml:posList count="12">42.3323 -82.4765 42.3232 -82.4714 
42.3113 -82.4643 42.3071 -82.4622 42.2936 -82.4569 42.2657 -82.4473 42.2515 
-82.4431 42.2431 -82.4404 42.2301 -82.4359 42.2179 -82.4331 42.2044 -82.4317 
42.1921 -82.4300</gml:posList>
                    </gml:LineStringSegment>
                  </gml:segments>
                </gml:Curve>

However, this is output from app-schema:

        <gml:Curve axisLabels="latitude longitude" gml:id="id44" 
srsName="http://www.opengis.net/gml/srs/epsg.xml#4052";>
          <gml:segments>
            <gml:LineStringSegment interpolation="linear">
                <gml:posList>
42.1062 -82.4293 42.0936 -82.4319 42.0803 -82.4344 42.0809 -82.4349 42.067 
-82.4381 42.0415 -82.4498 42.0297 -82.456 42.3323 -82.4765 42.3232 -82.4714 
42.3113 -82.4643 42.3071 -82.4622 42.2936 -82.4569 42.2657 -82.4473 42.2515 
-82.4431 42.2431 -82.4404 42.2301 -82.4359 42.2179 -82.4331 42.2044 -82.4317 
42.1921 -82.43
                </gml:posList>
            </gml:LineStringSegment>
          </gml:segments>
        </gml:Curve>

As you can see the two geometries are joined in a contiguous fashion which is 
undesirable.

If anyone has any ideas on how to achieve the desired result I would greatly 
appreciate it.

Thanks,

Kevin M. Weiss
Software Engineer
CRITICAL NETWORKS / HARRIS CORPORATION
harris.comĀ  / [email protected]



------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to