Hi,
I was meaning that <ogc:PropertyName>addr:housename</ogc:PropertyName>
is not valid in the layer / feature type schema. See discussion in
http://lists.openstreetmap.org/pipermail/dev/2011-November/023664.html
I do not know if addr:streetname works with Geoserver and WMS but with WFS it
is for sure invalid.
Osm2pgsql does not have an option for renaming attributes. You can use "alter
table" in the database after the import or you can create a view as "select
addr:streetname AS addr_streetname". Or then you can use the new GDAL/OGR OSM
driver for the import, it applies "launder" by default. And ogr2ogr supports
also the -sql parameter which can also be used for renaming columns and doing
other stuff you can do with SQL.
-Jukka-
________________________________________
Ákos Maróy wrote:
> Jukka,
>> Attribute names containing colons are not valid in XML.
> I'm not using them as attribute names in XML - they are text nodes
within an element, for example:
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>addr:housename</ogc:PropertyName>
<ogc:Literal>foo</ogc:Literal>
</ogc:PropertyIsEqualTo>
which is valid XML
> Only right solution is to rename them to addr_housename or something.
I thought of this, but I didn't find a way to make osm2pgsql rename
these attributes names to different column names. maybe you know how to
achieve this?
Akos
------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users