Hi
I did this shell script to help me generate the schema.xml based on the tables
in the postgis database. (the programname is maby not that correct, but it was
ment to create both info.xml & schema.xml, but atm. it only do the schema)
You have to change the two variables in the program:
DBUSER=THE_USER_THAT_HAVE_DBACCESS
DB=_NAME_OF_POSTGIS_TABLE
you can ether use it directly 'createInfoXML' and it will create subdirectories
with schema.xml, for all layers in the database, or with an layer as an parameter
name 'createInfoXML layername' and it will only create this one subdir/schma.
Atm. it does only the POINT(pointPropertyType) & MULTIPOINT(polygonPropertyType)
correct, but is prepared for the types boundedByType, lineStringPropertyType,
geometryPropertyType, multiPointPropertyType, mulitLineStringPropertyType,
multiPolygonPropertyType, multiGeometryPropertyType, but I didn't know the
the corresponding postgis value for them.
Regards
Niels Svennekjær
W. Steph wrote:
Hello !
I just need a little tool able to build my xml schemas.
For example, this tool could get the data needed by a schema file from a shapefile, or a sql file (with a create table request and addGeometryColumn requests), or directly from a PostiGIS DataBase ...
I don't know if such a tool exists, but if I can't find any... I will build one myself (let me know if you're interested)
Regards,
sw
_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/worldwide.asp
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
(attachments)
createInfoXML (4.13 KB)