Hi,
Indeed your mapping for the geometry element looks correct to me.
I don't think this is specific to the SQL server database, but I may be wrong.
I check the schema
and it seems to me that issue comes probably from the usage of
gml:GeometricPrimitivePropertyType:
<element name="geometry" nillable="true"
type="gml:GeometricPrimitivePropertyType">
<annotation>
<documentation>-- Definition --
The geometry of the hydro point of interest, as a point, curve or
surface.</documentation>
</annotation>
</element>
I tried to use gml:GeometricPrimitivePropertyType instead of
gml:GeometryPropertyType in my
example and my geometries didn't even get encoded ...
On 02/23/2018 12:46 PM, Verbeeck Bart wrote:
Hi all (and Nuno)
I checked the issue further, and indeed everything works as expected with
* A data source like you sent
* Shapefiles
But is doesnot work with a sqlserver datasource.
Any idea or help would be appreciated.
Bart Verbeeck
*From:*Nuno Oliveira [mailto:[email protected]]
*Sent:* woensdag 21 februari 2018 13:38
*To:* [email protected]
*Subject:* Re: [Geoserver-users] app scheme gml:id and srsname
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"
<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"
<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://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"
<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://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"
<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"
<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
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the experts! Visithttp://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.
------------------------------------------------------------------------------
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
[email protected]
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.
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users