[Geoserver-devel] A little question (schemas)

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

I know of no such tool that exists, and I think it would be a great idea.
And I'm positive other users would love it, so if you like we might be
able to add it to the geoserver download page. Let us know if you find
any or build one; we'd love to try it out.

  Chris

On Mon, 12 May 2003, 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

In the simple wfs included with GeoClient there is some PHP code to generate
a basic XML schema description that might be a useful reference. I've
attached the code (XSD.php); see other files in the GeoClient distribution
(available on the Sourceforge GeoServer site) for variables and functions
referenced.

Nedjo Rogers
----- Original Message -----
From: Chris Holmes <cholmes@anonymised.com>
To: W. Steph <>
Cc: <geoserver-devel@lists.sourceforge.net>
Sent: Monday, May 12, 2003 1:16 PM
Subject: Re: [Geoserver-devel] A little question (schemas)

I know of no such tool that exists, and I think it would be a great idea.
And I'm positive other users would love it, so if you like we might be
able to add it to the geoserver download page. Let us know if you find
any or build one; we'd love to try it out.

Chris

On Mon, 12 May 2003, 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
>

-------------------------------------------------------
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)

XSD.php (4.31 KB)

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)