Hi I am facing problem, that my XML data have coordinates in system S-JTSK (used a lot for area of Czech Republic) and resulting data must be in WGS84, as they will be used by Google Maps. Be sure, that the conversion is not trivial task (the other way is simpler, but S-JTSK to WGS84 is well known complexity) - so I am not sure, if writing complete conversion code by XQuery function itself is feasible.
I can try do some conversion by other tools before I insert the XML or after I create resulting data - but elegant solution would accomplish this by XQuery.
I know, that there are Java libs available for this (like GeoTools - http://geotools.org/).
My question is:
- is there any option to add more XQuery methods/functions written in Java to BaseX? Like the conversion function for coordinates? - It would go: add some JAR into class path - register it somehow and then be able to use it. - optionally writing some interface, which would make the jar available to BaseX XQuery processing.
Any ideas what to do with my crazy wishes?
With best regards
Jan