[postgis] GML generation scripts and question: attachments
Nedjo Rogers
nedjo at miningwatch.org
Wed Jan 9 12:03:52 PST 2002
[this time with attachments!]
Attached is a preliminary script for generating Geography Markup Language
(GML) 2.0 content from well-known text (WKT) representations of the sort
generated by PostGIS (i.e., that of the OpenGIS Simple Features
Specification for SQL).
The script is called "convertgeom.php"; "example.php" is an example file.
To use, save both in a php-enabled web directory and open example.php.
For maximum portability (and, perhaps, lower server overhead), I've chosen
to convert the raw WKT instead of using a series of queries to extract
sub-geometries (e.g., rings of polygons or elements of MULTI geometries).
But the GML polygon format requires a distinction between the "outer" and
any "inner" rings. In this script, I've assumed the first ring given in the
WKT is the outer one.
Is this a valid assumption--or is the order of the rings arbitrary? (If the
latter, a test would be necessary to determine order.)
Nedjo Rogers
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/vCuuSA/UdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convertgeom.php
Type: application/octet-stream
Size: 5065 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20020109/c87ba2cb/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.php
Type: application/octet-stream
Size: 859 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20020109/c87ba2cb/attachment-0001.obj>
More information about the postgis-users
mailing list