Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for custom KML schema #69

Closed
HandyMenny opened this issue Mar 13, 2022 · 1 comment
Closed

Support for custom KML schema #69

HandyMenny opened this issue Mar 13, 2022 · 1 comment

Comments

@HandyMenny
Copy link

In a KML you can extend the "default" elements in this way:

<Schema parent="Placemark" name="S_country">  
    <SimpleField type="wstring" name="CNTRY_NAME">
    </SimpleField> 
    </SimpleField>
    <SimpleField type="wstring" name="CURR_TYPE">
    </SimpleField>
    <SimpleField type="wstring" name="CURR_CODE">
    </SimpleField>
  </Schema>
  <S_country>
	<name>Test</name>
        <Point>
		<coordinates>16.54,40.6</coordinates>
	</Point>
        <CURR_TYPE>Test</CURR_TYPE>
	<CNTRY_NAME>Test</CNTRY_NAME>
	<CURR_CODE>Test</CURR_CODE>
  </S_country>

With such a KML this library returns an empty list of features.

Is there any plan to support KML containing custom KML schema? Is this functionality considered in the scope of this library?

@tmcw
Copy link
Collaborator

tmcw commented Mar 13, 2022

Well, it's in the KML spec and it is useful to data consumers that aren't Google Earth, so it's in scope. I'm in the middle of a pretty large refactor of this project to use TypeScript and support folders, but once that's shipped I'll take a look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants