[TinyOWS-users] Fids/GML:ids missing if the table has noprimarykey

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Mon May 16 05:37:36 EST 2011


Olivier Courtin wrote:

> Views are supported with TinyOWS.
> But as PK are not present, i don't think you could publish id 
> through  
> it.

As a reference, this one describes how Geoserver is doing it
http://docs.geoserver.org/stable/en/user/data/primarykey.html

Metadata table is used to handle a couple of more things with PostGIS
and Oracle but the main point with PostGIS and fids is to tell the
table/view name and the column or a list of columns to be used for
generating fids.
Tinyows could perhaps do it in a rather simple way for the user,
something like this for publishing a read-only view with a combined
unique fid

<layer retrievable="1"
         writable="0"
         ns_prefix="tows"
         ns_uri="http://www.tinyows.org/"
         name="france_view"
         pk_field_1="column_1"
         pk_field_2="column_2"
         title="French Administrative Sub Boundaries (IGN - GeoFLA
Departements)" />

-Jukka Rahkonen-


More information about the TinyOWS-users mailing list