[Geoserver-devel] gml prefix for features returned by WFS 1.1.0

All,

I’ve created a custom data store plugin for GeoServer 2.5.2. I can add instances of the new data store without issue. I add the instances to the geo workspace (name: geo, uri: http://geo/geo).

WFS 1.0.0 returns the track_point features with a geo prefix as expected, but WFS 1.1.0 returns features with a gml prefix.

1.0.0

<wfs:FeatureCollection xsi:schemaLocation=“http://geo/geo http://localhost:8282/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=geo%3Atrack_point http://www.opengis.net/wfs http://localhost:8282/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd”>

gml:featureMember

<geo:track_point fid=“b150995b-b9c1-44b3-ad7f-a49a88d687ca”>

1.1.0

<wfs:FeatureCollection numberOfFeatures=“1” timeStamp=“2014-11-13T14:30:41.371Z” xsi:schemaLocation=“http://geo/geo http://localhost:8282/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=geo%3Atrack_point http://www.opengis.net/wfs http://localhost:8282/geoserver/schemas/wfs/1.1.0/wfs.xsd”>

gml:featureMembers

<gml:track_point gml:id=“b150995b-b9c1-44b3-ad7f-a49a88d687ca”>

The topp:states feature type is returned with a topp prefix using both 1.0.0 and 1.1.0, so I know it’s not the GeoServer configuration. Anyone know what is wrong with my data store?

Thanks,

Mike

On Thu, Nov 13, 2014 at 4:08 PM, Farwell, Michael D - Exelis <
michael.farwell@anonymised.com> wrote:

The topp:states feature type is returned with a topp prefix using both
1.0.0 and 1.1.0, so I know it’s not the GeoServer configuration. Anyone
know what is wrong with my data store?

Quick guess: the store does not expose/honor the namespace parameter, that
all stores normally have

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

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.

-------------------------------------------------------

No quick answer, however I think GeoServer atomically fills in a “namespace” connection parameter to inject the current workspace details into a DataStore (in case they care). Perhaps this is how shapefile is being told about “topp”.

···

On Thu, Nov 13, 2014 at 7:08 AM, Farwell, Michael D - Exelis <michael.farwell@anonymised.com> wrote:

All,

I’ve created a custom data store plugin for GeoServer 2.5.2. I can add instances of the new data store without issue. I add the instances to the geo workspace (name: geo, uri: http://geo/geo).

WFS 1.0.0 returns the track_point features with a geo prefix as expected, but WFS 1.1.0 returns features with a gml prefix.

1.0.0

<wfs:FeatureCollection xsi:schemaLocation=“http://geo/geo http://localhost:8282/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=geo%3Atrack_point http://www.opengis.net/wfs http://localhost:8282/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd”>

gml:featureMember

<geo:track_point fid=“b150995b-b9c1-44b3-ad7f-a49a88d687ca”>

1.1.0

<wfs:FeatureCollection numberOfFeatures=“1” timeStamp=“2014-11-13T14:30:41.371Z” xsi:schemaLocation=“http://geo/geo http://localhost:8282/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=geo%3Atrack_point http://www.opengis.net/wfs http://localhost:8282/geoserver/schemas/wfs/1.1.0/wfs.xsd”>

gml:featureMembers

<gml:track_point gml:id=“b150995b-b9c1-44b3-ad7f-a49a88d687ca”>

The topp:states feature type is returned with a topp prefix using both 1.0.0 and 1.1.0, so I know it’s not the GeoServer configuration. Anyone know what is wrong with my data store?

Thanks,

Mike


This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail.


Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Jody Garnett

Andrea,

Thanks for the response. Any idea where in the DataStore interface you would “expose/honor” the namespace parameter. Is that something you define in the Schema?

Mike

···

On Thu, Nov 13, 2014 at 4:08 PM, Farwell, Michael D - Exelis <michael.farwell@…4132…> wrote:

The topp:states feature type is returned with a topp prefix using both 1.0.0 and 1.1.0, so I know it’s not the GeoServer configuration. Anyone know what is wrong with my data store?

Quick guess: the store does not expose/honor the namespace parameter, that all stores normally have

Cheers

Andrea

==

GeoServer Professional Services from the experts! Visit

http://goo.gl/NWWaa2 for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

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.


On Thu, Nov 13, 2014 at 8:37 PM, Farwell, Michael D - Exelis <
michael.farwell@anonymised.com> wrote:

Andrea,

Thanks for the response. Any idea where in the DataStore interface you
would “expose/honor” the namespace parameter. Is that something you define
in the Schema?

In the factory, and then you must respect it when creating the feature
types.
Just look at any official store (besides app-schema, which must respect the
namespaces configured
in the target xml schema itself)

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

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.

-------------------------------------------------------

See the ShapefileDataStoreFactory for an example. I think geoserver just checks for a parameter “namespace” and fills in the value as required.

···

On Thu, Nov 13, 2014 at 11:37 AM, Farwell, Michael D - Exelis <michael.farwell@anonymised.com> wrote:

Andrea,

Thanks for the response. Any idea where in the DataStore interface you would “expose/honor” the namespace parameter. Is that something you define in the Schema?

Mike

From: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: Thursday, November 13, 2014 10:14 AM
To: Farwell, Michael D - Exelis
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] gml prefix for features returned by WFS 1.1.0

On Thu, Nov 13, 2014 at 4:08 PM, Farwell, Michael D - Exelis <michael.farwell@anonymised.com> wrote:

The topp:states feature type is returned with a topp prefix using both 1.0.0 and 1.1.0, so I know it’s not the GeoServer configuration. Anyone know what is wrong with my data store?

Quick guess: the store does not expose/honor the namespace parameter, that all stores normally have

Cheers

Andrea

==

GeoServer Professional Services from the experts! Visit

http://goo.gl/NWWaa2 for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

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.



This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail.


Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Jody Garnett

Thanks Jody. Does the namespace URI have to be a legitimate web address?

···

See the ShapefileDataStoreFactory for an example. I think geoserver just checks for a parameter “namespace” and fills in the value as required.

Jody Garnett

On Thu, Nov 13, 2014 at 11:37 AM, Farwell, Michael D - Exelis <michael.farwell@…4132…> wrote:

Andrea,

Thanks for the response. Any idea where in the DataStore interface you would “expose/honor” the namespace parameter. Is that something you define in the Schema?

Mike

From: andrea.aime@…403… [mailto:andrea.aime@…403…] On Behalf Of Andrea Aime
Sent: Thursday, November 13, 2014 10:14 AM
To: Farwell, Michael D - Exelis
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] gml prefix for features returned by WFS 1.1.0

On Thu, Nov 13, 2014 at 4:08 PM, Farwell, Michael D - Exelis <michael.farwell@…4132…> wrote:

The topp:states feature type is returned with a topp prefix using both 1.0.0 and 1.1.0, so I know it’s not the GeoServer configuration. Anyone know what is wrong with my data store?

Quick guess: the store does not expose/honor the namespace parameter, that all stores normally have

Cheers

Andrea

==

GeoServer Professional Services from the experts! Visit

http://goo.gl/NWWaa2 for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

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.



This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail.


Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Depends on the WFS server (it may try parsing that as an XSD right?). You will notice GeoServer uses DescribeFeatureType when describing the namespace for it own feature content.

···

On Thu, Nov 13, 2014 at 1:24 PM, Farwell, Michael D - Exelis <michael.farwell@anonymised.com> wrote:

Thanks Jody. Does the namespace URI have to be a legitimate web address?

From: Jody Garnett [mailto:jody.garnett@anonymised.com]
Sent: Thursday, November 13, 2014 4:10 PM
To: Farwell, Michael D - Exelis
Cc: Andrea Aime; geoserver-devel@lists.sourceforge.net

Subject: Re: [Geoserver-devel] gml prefix for features returned by WFS 1.1.0

See the ShapefileDataStoreFactory for an example. I think geoserver just checks for a parameter “namespace” and fills in the value as required.

Jody Garnett

On Thu, Nov 13, 2014 at 11:37 AM, Farwell, Michael D - Exelis <michael.farwell@anonymised.com> wrote:

Andrea,

Thanks for the response. Any idea where in the DataStore interface you would “expose/honor” the namespace parameter. Is that something you define in the Schema?

Mike

From: andrea.aime@anonymised.com03… [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: Thursday, November 13, 2014 10:14 AM
To: Farwell, Michael D - Exelis
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] gml prefix for features returned by WFS 1.1.0

On Thu, Nov 13, 2014 at 4:08 PM, Farwell, Michael D - Exelis <michael.farwell@anonymised.com> wrote:

The topp:states feature type is returned with a topp prefix using both 1.0.0 and 1.1.0, so I know it’s not the GeoServer configuration. Anyone know what is wrong with my data store?

Quick guess: the store does not expose/honor the namespace parameter, that all stores normally have

Cheers

Andrea

==

GeoServer Professional Services from the experts! Visit

http://goo.gl/NWWaa2 for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

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.



This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail.


Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Jody Garnett