Easiest and free way to transform bitmap image into geographical map - graphics

I have image that is the map of a country with districts. For example this image http://upload.wikimedia.org/wikipedia/commons/c/ca/POLSKA_mapa_powiaty2.png. I want to trace/convert it to svg format to have each district as separate shape (polygon) - and later I want to use it in http://kartograph.org/. What program I have to use? And how?
I tried so far inkscape/photoshp but those didnt work.
Is there maybe some special tool/program to trace/convert bitmap to vectors?

Related

Is there a way to detect whether the given image contains labeled parts?

I have a use-case to detect whether the given image contains annotated attributes or not?
For example - if I give an input image as:-
The expected output is:
Detection that the image contains attribute annotations
The attribute labels from the image (if possible)
Things tried:
I tried using OCR with the help of pytesseract but I was only able to get the words in haphazard manner. Next I tried to detect arrows/lines in the image, but that also did not work as expected, since it detects all horizontal and vertical lines but cannot differentiate between center image(printer) and arrows(used for attributes)
Any help to will be appreciated. Thank-you.

Geographical Heatmap with state-level granularity in python

I'm follow the tutorial here and able to generate heatmap based on geocode. But I want is the heatmap color the map based on state of the country instead of geocode (Heatmap that based on the state boundary). The sample image like this. Does any python library was able to do this?
Just the information for those who search for this. Here have the tutorial about this. But you need to search the geojson file for your own country.

Getting coordinates for geojson

I have a geotiff that I have been working with in tilemill and I would like to select portions (buildings) in the map and create new layers as geojson objects. My issue is I don't know how to get the coordinates to create the objects!
http://chimera.labs.oreilly.com/books/1230000000345/ch12.html#_choropleth
this is a link to what I'm trying to do with states I just need the step where the coordinates are gotten because it doesn't seem to be in this document, they just give a shout to the guy who defined them. If anyone has done something similar to this, please give me a shout!
Update
I am not looking for the coordinates to the US, I have a fictional map that I am working from.
TileMill is a tool for visualizing data and creating map tiles - it isn't designed for creating or digitizing tasks. You'll want to export your map to Mapbox (or another MBTiles-supporting server), and use a tool like Mapbox's map editor or geojson.io to create GeoJSON overlays on top of it.

WGS84 buildings to Collada tile

I've got building "footprints" in WGS84. Based on a regular grid I've
got to produce Collada "tiles" containing 3D buildings (extruded
footprints). These collada files are finally referenced by KML files
to produce a kmz dataset.
Everything is working quite fine. However my first tests have shown
gaps in GE between the aerial photography layer and my Collada
buildings. What should be the best strategy to convert WGS84 polygon
coordinates to local Collada coordinates ? What is best way to take
into account the ellipsoidic shape of the earth for GE ?
Thanx in advance
Franck
One option would be to import them into Google SketchUp and use SketchUp to do final placement.

Usage of cvMatchTemplate() function in Opncv

Can I match two images which looks same but not 100% same ,Using cvMatchTemplate() function in Opncv.?
As a example there are 5 images on DB which represent no1,no2,no3,no4 and no5 by using my left hand. And you shows no3 by using your left hand. I want to filter My no3 image from DB as the result.
In this scenario your hand size ,your hand color and your representation will not match 100% with me.
Thank you.
With cvMatchTemplate() function you cannot match two similar images. But what this function basically does is matches a template image to the main image and based on this provides the result.
As an example assume face detection technique, wherein you have a face images and out of it you want to detect the location of eyes. Hence you load template images of eyes and try to match it with the face image to detect the position of the eyes.
This is what my understanding is about this function.

Resources