[Liblas-devel] LAS Schema
Howard Butler
hobu.inc at gmail.com
Wed Mar 17 16:43:44 EDT 2010
On Mar 17, 2010, at 3:31 PM, Robert Coup wrote:
> 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.
Excellent. Thanks for the feedback. Changes made and I have placed these files in the repository as well.
More information about the Liblas-devel
mailing list