Please, find above a patch in order to support WKT data as lat/long fields.

This patch requires the "gml.inc" parser used on wfs.module with some modifications to convert wkt to multigeometry kml.

Comments

paolomainardi’s picture

Feel free to pull the code from here (forked by tmcw branch): http://github.com/twinbit/kml

tmcw’s picture

Status: Active » Needs work

Could you make a patch that applies with CVS? I think this is good to commit - possibly it would be good if it was purely backwards-compatible - right now it requires one to resave a view, I think, before it works. But that isn't 100% necessary, I think.

paolomainardi’s picture

Sorry for the delay, i will post the patch that apply to CSV as soon as possible.

jeffschuler’s picture

Title: WKT suport » WKT support
Category: bug » feature

Changing to feature request.
I'll take a look at your github fork.

paolomainardi’s picture

Ok, let me know if you need some informations.

langworthy’s picture

I need this for a project. I'll take a look at creating a new patch in the next week or two.

jeffschuler’s picture

@langworthy: awesome; thanks!
A patch would take some chore out of reviewing.

langworthy’s picture

Version: master » 6.x-2.x-dev
Status: Needs work » Needs review
StatusFileSize
new11.83 KB

Attached patch contains the first 3 commits from the fork in #1.

langworthy’s picture

StatusFileSize
new12.43 KB

Last patch didn't work. This one seems to.

langworthy’s picture

StatusFileSize
new12.25 KB

wrong paths in the last patch

langworthy’s picture

Status: Needs review » Needs work

I think this patch should be re-rolled and committed after #1617016: Change placemark template per view makes it in, since that issue re-writes a lot of functionality.

also, patch in #10 contains error_log().