Non-georeferenced image + KML overlay in OpenLayers

373 views
Skip to first unread message

jvh_geologist

unread,
Dec 1, 2010, 11:40:00 PM12/1/10
to MapTiler User Group
Hi all -

I'm currently trying to take a panorama image and parse it through
MapTiler to produce an interface where I can overlay a KML file on the
image. MapTiler produces a stand alone image viewer no problem, it
tiles my huge panorama and OpenLayers works just fine. I'm stuck on
the next step, I tried bringing the image into a GIS package (both
QuantumGIS and ArcGIS), loading the image and creating polygon 'hot
spots' on the image. I then exported the image as a KML file but it
doesn't match up with the image because KML requires a coordinate
systems and defaults to WGS1984. So when I try to overlay my vector
polygons, they obviously don't line up.

Just wondering if anyone has any thoughts about how I might use
MapTiler to achieve my goal of a KML overlay on top of an image
without a CRS? I've tried giving the image a CRS but that didn't work
either, running out of ideas and hoping someone has some thoughts.
Thanks in advance.

cheers
John

Klokan Petr Přidal

unread,
Dec 2, 2010, 2:54:20 AM12/2/10
to mapt...@googlegroups.com
John,

I would not use KML in such case, but better JSON.

You can paint the vectors directly in OpenLayers - just merge your
viewer with functionality from:
http://www.openlayers.org/dev/examples/vector-formats.html.
This gives you on the right side of the page the JSON code for
individual features, which you can copy&paste and display later on as
a merged overlay layer.

Alternative workflow using HTML Image Map was described here:
http://groups.google.com/group/maptiler/browse_frm/thread/06ef448fc8a4ab46/14917e0653cf945f

There is plenty of tools which allows you to prepare image map,
including PhotoShop or Gimp.
You can specify the areas even online with a tool like:
http://www.maschek.hu/imagemap/imgmap

Once you have imagemap you convert it to JSON via script from:
http://goo.gl/GEg09

The JSON format displays fast in OpenLayers.
Here is an example code:

http://ligamen.org/work/test/openlayers.html

Visual part can be modified with OpenLayers.

Regards,

Klokan

> --
> You received this message because you are subscribed to the Google Groups "MapTiler User Group" group.
> To post to this group, send email to mapt...@googlegroups.com.
> To unsubscribe from this group, send email to maptiler+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/maptiler?hl=en.
>
>

--
http://blog.klokan.cz/
http://www.maptiler.org/
http://www.oldmapsonline.org/

Reply all
Reply to author
Forward
0 new messages