[Liblas-devel] LAS Schema

Robert Coup robert.coup at koordinates.com
Wed Mar 17 16:31:25 EDT 2010


Hi,

On Thu, Mar 18, 2010 at 4:43 AM, Howard Butler <hobu.inc at gmail.com> wrote:
> To that end, I have developed both a sample schema and a sample file that describes the point layout of point format 0 of the 1.0 specification
>
> http://liblas.org/wiki/LASSchema
> http://liblas.org/wiki/LASSchemaExample

Since I've been staring at xml schemas and documents for the last few
days, i have a couple of minor suggestions for the schema:

1. typo: dime[n]sionType.

2. use minOccurs="0" rather than nillable="true". The later requires
<description xsi:nil="true" />, the former makes the whole element
optional, which is probably what you want :)

3. make elementFormDefault=qualified, otherwise you can't really use a
default namespace when creating documents, because the parser will
qualify elements (eg. <dimension>) with the default namespace, and
suddenly it's invalid because it needs to be unqualified according to
the schema...

4. make attributeFormDefault=unqualified so every attribute (eg
units="uint8_t") doesn't need to be namespace-prefixed (there is no
default namespace for attributes).

I've attached an updated schema and example xml file with these changes.

HTH,

Rob :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LAS.xsd
Type: application/octet-stream
Size: 4112 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/liblas-devel/attachments/20100318/2fdb6c42/LAS-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.xml
Type: text/xml
Size: 7861 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/liblas-devel/attachments/20100318/2fdb6c42/example-0001.xml


More information about the Liblas-devel mailing list