Author |
Topic  |
|
Antoine

France
31 Posts |
Posted - 18/11/2008 : 20:43:39
|
How can avoid having the white MapMaker background around my map when viewing in Google Earth?
Thanks!
Antoine |
|
Philippe
    
France
295 Posts |
Posted - 18/11/2008 : 21:02:46
|
Bonjour Antoine,
step 1 : export a DRA file to a SHP file with MM step 2 : create a KML file with ogr2ogr ie something like ogr2ogr -s_srs EPSG:27572 -t_srs EPSG:4326 -f "KML" out.kml in.shp should work as expected. Bon courage. |
 |
|
nhopton
  
United Kingdom
102 Posts |
Posted - 18/11/2008 : 23:14:11
|
This definitely works:
ogr2ogr -f "KML" -s_srs "EPSG:27700" -t_srs EPSG:4326 filename.kml filename.shp
You will need to replace '27700' with the EPSG for your projection.
DNR Garmin will do the same job, it's highly accurate and it's much easier to use.
Regards, Nick.
|
 |
|
Antoine

France
31 Posts |
Posted - 19/11/2008 : 10:05:00
|
Thank you both for your answers. However your solution is a bit complicated for me, I think I will keep the white background...
I simply hope it existed a simple option in MM to make this background transparent or unvisible; should be simple, is not it?
Cheers
Antoine |
 |
|
nhopton
  
United Kingdom
102 Posts |
Posted - 23/03/2009 : 10:38:53
|
I thought about this thread the other day, when I was experimenting with using ogr2ogr to convert a shape file to KML. The results of doing this can be quite impressive because ogr2ogr scalps all of the data from the shape file's DBF and includes it in the KML file.
Here's an example of a shape file converted to KML. The original shape file was for a county in North Carolina and it provides details of land parcels in the county. In Google Earth, when you click on a land parcel polygon all of the details of the parcel pop up.
It's a monstrous great KML file I'm afraid and after unzipping it will take some time to load into GE. But Google Earth is good, because almost anyone can use it without specialist GIS or mapping knowledge.
http://confound.me.uk/maps/parcels.zip
Oh, the units are feet, BTW.
Added later: Better yet, turn on GE Street View and look at a picture of a parcel (in the places that are covered by Street View).
Regards, N. |
Edited by - nhopton on 23/03/2009 10:50:45 |
 |
|
Philippe
    
France
295 Posts |
Posted - 25/03/2009 : 18:42:58
|
Bonjour Antoine, Hi Nick,
I'm wondering how the attribute data (from the DBF file) could be sorted in a KML file so that a parcel could more easily be selected in the 'GE layers management window' and then see where it is on the map. Am I clear? Any good idea?
|
 |
|
nhopton
  
United Kingdom
102 Posts |
Posted - 26/03/2009 : 11:16:23
|
quote: Originally posted by Philippe
Bonjour Antoine, Hi Nick,
I'm wondering how the attribute data (from the DBF file) could be sorted in a KML file so that a parcel could more easily be selected in the 'GE layers management window' and then see where it is on the map. Am I clear? Any good idea?
Bonjour Philippe,
All too clear . I think the problem is that the DBF attached to the original shape file didn't have a field called 'Name'. The lesson seems to be that if you wish to export a MM DRA file as a shape file for converting to KML make sure that it has a meaningful 'Name' field. It would probably also make sense to sort the records in the DBF alphabetically on the 'Name' field, so that they would appear in order in the GE layers management window. Just a thought, I haven't tried doing this yet.
Regards, Nick. |
 |
|
Philippe
    
France
295 Posts |
Posted - 26/05/2009 : 10:34:17
|
Glad to tell you that I found a solution to sort my KML files this morning : http://www.nearby.org.uk/sort-kml.php I'd rather use a "-sort fieldname1, fieldname2,.." ogr2ogr option though. |
 |
|
nhopton
  
United Kingdom
102 Posts |
|
winterburn

United Kingdom
29 Posts |
Posted - 27/05/2010 : 21:00:13
|
Has anyone found a simpler way to avoid the MM white background when displaying maps on Google Earth?
John |
 |
|
Steele
United Kingdom
3 Posts |
Posted - 03/06/2010 : 17:23:46
|
An alternative is to load the file that Mapmaker generates (eg C:/Mapmaker/Google.tif) into a graphics program, set white as transparent and then reload into GoogleEarth.
S |
 |
|
Philippe
    
France
295 Posts |
Posted - 04/06/2010 : 10:43:19
|
Well that's a good idea. Far less simple?
1) extract the image from the MM View.kmz file (you'll find it in the MM prog dir) with some unzip prog. (7zip, say) 2) Load the TIF image with the GIMP 3) Then get through : Layer - Transparency - Colour to alpha (ie white to transparency) (Calque - Transparence - Couleur vers alpha) 4) save the modified TIF file (do not change its name, or edit the kml file). 5) Optional : delete all the original files but MM View.kml 6) load MM View.kml in GE Done!
Philippe |
Edited by - Philippe on 04/06/2010 10:45:06 |
 |
|
Andrew Heggie

United Kingdom
23 Posts |
Posted - 04/04/2011 : 23:26:24
|
quote: Originally posted by nhopton
This definitely works:
ogr2ogr -f "KML" -s_srs "EPSG:27700" -t_srs EPSG:4326 filename.kml filename.shp
Yes I can now vouch for that. I had reason to try this to provide a compatible graphic for a presentation. Trouble is I created a simple line with a small section of a different colour. Everything converted fine but when launched in google earth the line had two lines from the different section running back to the line origin and I couldn't see how to display different colours. I guess each segment needs to be saved as a separate kml. Useful tool to get from an OSGB projection into Google Earth quickly though.
AJH |
 |
|
|
Topic  |
|