sharpkml icon indicating copy to clipboard operation
sharpkml copied to clipboard

Adding SimpleData Fields?

Open avreiche opened this issue 4 years ago • 0 comments

I'm trying to use sharpkml to add simple data forms to my kml doc.

The setup for the kml Schema and SimpleField name:

<Schema name="MySchema" id="MS01">
	<SimpleField type="string" name="Property">
               <displayName>&lt;b&gt;Property&lt;/b&gt;</displayName>
        </SimpleField>
        <SimpleField type="string" name="State">
               <displayName>&lt;b&gt;State&lt;/b&gt;</displayName>
        </SimpleField>
</Schema>

The reference for it under the placemark:

<ExtendedData>
      <SchemaData schemaUrl="#MS01">
	      <SimpleData name="Property">Building 1</SimpleData>
              <SimpleData name="State">AZ</SimpleData>
      </SchemaData>
</ExtendedData>

Any tips on how I could achieve this? Love the tool so far, everything has been incredibly helpful!

avreiche avatar Jul 30 '21 20:07 avreiche