mac999 / landxml_parser

LandXML parser
2 stars 0 forks source link

cannot read xml file #2

Open novotechsoft opened 9 months ago

novotechsoft commented 9 months ago

Thanks for the great program. I tried to run the program with some example xml files from http://www.landxml.org/webapps/landxmlsamples.aspx but the output is just [ ] with no errors thrown.

I found another landXML file that yielded a JSON file. Is this a GeoJSON format?

mac999 commented 9 months ago

Hi. can you give me the example xml file's name which has error, then, I'll fix it. In addition, this program supports alignment, profile, cross sections only now but I'll plan to develop it under needs.

novotechsoft commented 9 months ago

The example files are on the landxml website from my previous message. Also can you confirm if your output is JSON and not GeoJSON?

Would you be interested in converting the output to GeoJSON format? i.e. just turn the landXML to a GeoJSON file using standard GeoJSON line, polyline, polygon elements (using the same coordinate system used in the input landXML file). We can sponsor you for this work if you are interested.

mac999 commented 9 months ago

Currently, I am developing this project alone as hobby, so I don't have time to test all the example files on the website. There are numerous example files on the website. If you tell us the name of the example file, it will be very helpful in development and saving time. Please note that it is not easy for developers to support all types of LandXML. Moreover, there are many LandXML features that are unnecessary from a user requirements perspective.

GeoJSON output is currently not supported (just JSON format I used). In the future, if people start using GeoJSON a lot, I will develop it (not difficult).