Tag Info

New answers tagged

1

Use xmltodict, a pure Python module, much easier. It is easy to install (even in ArcPy, one file). The module converts XML files to Python dictionaries (standard OrderedDict, dictionary that remembers the order that keys were inserted): you process the XML tree with only lists and dictionaries Also, urllib is deprecated, use urllib2 or better, the ...


2

It is not possible with version 5.6.8 but if you update to version 6.4 you can use the SIA shape smoothing algorithm. The RFC of the feature is in http://mapserver.org/development/rfc/ms-rfc-94.html and current documentation about the usage in http://mapserver.org/output/shape_smoothing.html#shape-smoothing. If you must to stay with the old 5.6.8 the only ...


0

It seems you are not aware Openlayers 2 is already able to write your features to XML based formats, so I'm not sure using x2js is useful (but I don't know your use case) It can be KML, GPX, GML v2, GML v3. Those are all subsets of XML. Read the API docs for more. You can see a sample using your code to create GML (you can also look at Vector Formats ...


0

You can create .xsd schema file by rewriting your GML with ogr2ogr. Writing schema into .xsd file is the default in GML driver http://www.gdal.org/drv_gml.html so you can simply use this command: ogr2ogr -f GML output.gml input.gml You do not need the output.gml file for anything so you can delete it and use the .xsd. If your source GML is big you can ...


0

My previous account is somehow not reachable anymore, because I used the same emailadres for this account. But on topic: The XML contains metadata for the GML, so there is extra information in the XML. We need the XSD for the ETL, is a self build ETL tool. The XSD makes the conditions for the acceptation of the data in the ETL.



Top 50 recent answers are included