Hi,

I give it a try with GeoServer 2.12.2 and everything seems to work as expected:

   (...) <wfs:member>

      <st:Station gml:id="porto">

        <st:name>Porto</st:name>

        <st:location>

          <gml:Point *gml:id="location.porto"* srsDimension="2"
   srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>

            <gml:pos>30.0 10.0</gml:pos>

          </gml:Point>

        </st:location>

        <st:shape>

          <gml:MultiSurface *gml:id="shape.porto"* srsDimension="2"
   srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>

            <gml:surfaceMember>

              <gml:Polygon *gml:id="shape.porto.1"* srsDimension="2">

                <gml:exterior>

                  <gml:LinearRing>

                    <gml:posList>30.0 20.0 45.0 40.0 10.0 40.0 30.0 
20.0</gml:posList>

                  </gml:LinearRing>

                </gml:exterior>

              </gml:Polygon>

            </gml:surfaceMember>

            <gml:surfaceMember>

              <gml:Polygon *gml:id="shape.porto.2"* srsDimension="2">

                <gml:exterior>

                  <gml:LinearRing>

                    <gml:posList>15.0 5.0 40.0 10.0 10.0 20.0 5.0 10.0 15.0 
5.0</gml:posList>

                  </gml:LinearRing>

                </gml:exterior>

              </gml:Polygon>

            </gml:surfaceMember>

          </gml:MultiSurface>

        </st:shape>

      </st:Station>

   </wfs:member> (...)

The data store, mappings and schema I used for my tests are attached to this 
mail.

That say, not sure what its happening in your case:

old GeoServer version ?
issue with the mappings ?
issue with the schema ?

... you may also be hitting some corner case.

If you share your mappings and target schema with the mailing list we may be able to give you a more concrete feedback.

Regards,

Nuno Oliveira


On 02/20/2018 09:01 AM, Verbeeck Bart wrote:
Hello

I have two questions

1)

The documentation says

http://docs.geoserver.org/maintain/en/user/data/app-schema/supported-gml-versions.html#gml-3-2-1-geometries-require-gml-id

"If a multigeometry (such as a MultiPoint or MultiSurface) is assigned a gml:id of 
(for example)  parentid, to permit GML 3.2.1 schema-validity, each geometry that the 
multigeometry contains will be automatically assigned a gml:id of the form parentid.1, 
parentid.2, ... in order."

We notice that the contained geometries don't get a gml:id. Is this a known bug?

2)

The srsName of the contained geometry or when the geometry is an 
"'AbstractGeometricPrimitive'" is not in URI-form

Is this a known bug? Is there a solution?

Examples:

<hy-p:ShorelineConstruction gml:id="kustlijnkunstwerk_108051">
<gml:identifier 
codeSpace="http://inspire.ec.europa.eu/ids";>http://data.vlaanderen.be/id/kustlijnkunstwerk/108051</gml:identifier>
<hy-p:geometry>
<gml:Polygon srsDimension="2" srsName="http://www.opengis.net/gml/srs/epsg.xml#4258";> 
<!-- 'gml:id' ontbreekt -->
<gml:exterior>
<gml:LinearRing>
<gml:posList>

<hy-p:Shore gml:id="kustvlak_1327">
<gml:identifier 
codeSpace="http://inspire.ec.europa.eu/ids";>http://data.vlaanderen.be/id/kustvlak/1327</gml:identifier>
<hy-p:geometry>
<gml:MultiSurface gml:id="geometry.shore.7c3b658b-5a1f-4c3e-8e57-c4b9e0b0626e" 
srsDimension="2" srsName="http://www.opengis.net/def/crs/EPSG/0/4258";>
<gml:surfaceMember>
<gml:Polygon srsDimension="2" srsName="http://www.opengis.net/gml/srs/epsg.xml#4258";> 
<!-- 'gml:id' ontbreekt -->
<gml:exterior>
<gml:LinearRing>
<gml:posList>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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


--
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
for more information.
==

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo 
è consentito esclusivamente al destinatario del messaggio, per le finalità 
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne 
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di 
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro 
sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

<?xml version="1.0" encoding="UTF-8"?>
<as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd">
  <namespaces>
    <Namespace>
      <prefix>st</prefix>
      <uri>http://www.stations.org/1.0</uri>
    </Namespace>
  </namespaces>
  <sourceDataStores>
    <DataStore>
      <id>stations</id>
      <parameters>
        <Parameter>
          <name>directory</name>
          <value>file:./</value>
        </Parameter>
      </parameters>
    </DataStore>
    <DataStore>
      <id>measurements</id>
      <parameters>
        <Parameter>
          <name>directory</name>
          <value>file:./</value>
        </Parameter>
      </parameters>
    </DataStore>
  </sourceDataStores>
  <targetTypes>
    <FeatureType>
      <schemaUri>stations.xsd</schemaUri>
    </FeatureType>
  </targetTypes>
  <typeMappings>
    <FeatureTypeMapping>
      <mappingName>stations_multi</mappingName>
      <sourceDataStore>stations</sourceDataStore>
      <sourceType>stations</sourceType>
      <targetElement>st:Station</targetElement>
      <attributeMappings>
        <AttributeMapping>
          <targetAttribute>st:Station</targetAttribute>
          <idExpression>
            <OCQL>ID</OCQL>
          </idExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>st:name</targetAttribute>
          <sourceExpression>
            <OCQL>NAME</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>st:location</targetAttribute>
          <idExpression>
            <OCQL>strConcat('location.', getId())</OCQL>
          </idExpression>
          <sourceExpression>
            <OCQL>LOCATION</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <idExpression>
            <OCQL>strConcat('shape.', getId())</OCQL>
          </idExpression>
          <targetAttribute>st:shape</targetAttribute>
          <sourceExpression>
            <OCQL>SHAPE</OCQL>
          </sourceExpression>
        </AttributeMapping>
      </attributeMappings>
    </FeatureTypeMapping>
  </typeMappings>
</as:AppSchemaDataAccess>
_=ID:String,NAME:String,SHAPE:Geometry:srid=4326,LOCATION:Geometry:srid=4326
porto=porto|Porto|MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 
10 20, 5 10, 15 5)))|POINT (30 10)

Attachment: stations.xsd
Description: XML document

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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