Hi,

I made a test by renaming layer "poly_landmsrks" into "poly_test". In 
featuretype.xml I have now

<name>poly_test</name>
<nativeName>poly_landmarks</nativeName>

and this request brings me data:
http://localhost:8080/geoserver/wfs?service=wfs&version=1.0.0&request=getfeature&typename=poly_test

The purpose of name and nativeName is to allow renaming published layers 
easily. In the past, if I remember right, layers were always published with the 
default names and especially in case of large databases together with database 
admins who had developed some fine naming traditions  that was leading 
sometimes to very unfriendly layer names. Only workaround I knew was to create 
a view into database only for changing the layer name.

-Jukka Rahkonen-

Feniks wrote:
 
> Hello.
> 
> I was trying to figure out the purpose of "nativeName" in a featuretype.xml, 
> but
> I hit a wall.
> 
> I tried some combinations:
> - If "nativeName" is different from the "name" the featuretype does not work
> - Without "nativeName" it seems to work fine
> - Without "name" it does not work
> 
> By my logic "nativeName" doesn't seem to be of any use.
> 
> So could someone please explain me whats the purpose of "nativeName"?
> 
> Thanks for any help.
> 
> 
> 
> --
> View this message in context: http://osgeo-
> org.1560.x6.nabble.com/nativeName-in-featuretype-tp5156098.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users

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

Reply via email to