You're About to Unleash the Full Potential of Your Lowrance Elite FS 9!ĭon't Miss These Easy Tips to Supercharge Your GPS. Tomorrow: an easier way to convert KML to shapefile format, but which doesn’t preserve any of the attribute data. You can always use a format converter program like the excellent Global Mapper, which can open KML data and export it in shapefile format, but at $279, it’s not cheap. Failing that, it will have to do until somebody comes out with a full-blown KML to shapefile converter. Yeah, this isn’t a very convenient approach, and if you have a better free one that preserves any of the attribute data, I’d love to hear it. You could also convert the entire KML file to GPX in GPS TrackMaker, and then manipulate the polygons in EasyGPS, but TrackMaker has better selection tools for use in deleting shapes. Then open the original KML file in GPS TrackMaker, delete the points and tracks (leaving the polygon perimeters), save the polygons as a separate GPX file, and run through the process for polygons. Delete the polygons in GPS TrackMaker, then save the points and tracks in a separate GPX file, and follow the process described above. The main difference will be that when you open the KML file in GPS TrackMaker, it will have the points, the paths, and the polygons all together. If you can’t separate the points, paths and polygons into separate KML files, you can still follow this basic process. Here’s a screenshot from MapWindow GIS, showing the point, line and polygon shapefiles generated by the above process: The line shapefile with the polygon perimeter tracks will be converted into a polygon shapefile with each track converted into a separate polygon. A radio dialog will pop up, asking you to define the output shape, and you should select “Polygon” and click OK. Then select File => Save To => File, select ArcView shapefile (unprojected) as the file type to save it as, enter a filename and click “Save”. Open the program DNRGarmin (discussed in earlier posts), go to File => Load From => File, and load the “polygon” line shapefile you just created into DNRGarmin. But it’s possible to convert this line shapefile with polygon perimeters into an actual area shapefile with the full polygons themselves. So with polygons, at the end of Step 5 you’ll have a line shapefile describing the polygon perimeters, and not a polygon shapefile with actual polygons. And don’t bother copying the polygon name into the “Label” box in Step 3, since the process to create a polygon shapefile won’t save the polygon name. The procedure is essentially the same for polygons, but in Step 2 GPS TrackMaker converts the polygon perimeters into tracks when it saves them as GPX files. That’s it for points and paths from Google Earth. The “Label” data will be preserved, so that the shapes will have some ID associated with them. Step 5: Use EGPS2shp (described in a previous post) to convert the point and track data into separate point and line shapefiles (in geographic WGS84 coordinates). Step 4: Save the point and line data in EasyGPS as a GPX file. With only a few tracks, this may be practical, but with a lot of tracks, you may find this more trouble than it’s worth. If you want to keep that track name associated with the line when you create a shapefile, you will have to copy the text in the “Name” box into the “Label” box. Although the tracks don’t have their names on-screen, they still have their names associated with them selecting them, right-clicking and choosing “Edit Track” will show that: The waypoints are marked on the screen with their original KML ID. Step 3: Open the point and line GPX file in EasyGPS: I’ll now delete the polygons, and save the point and line data as a GPX file in GPS TrackMaker. The name labels in GPS TrackMaker are those assigned to those shapes in Google Earth. Here’s the same KML file opened up in GPS TrackMaker (I haven’t deleted the polygons yet): Here’s an image of a simple KML file in Google Earth, with two points, lines, and polygons: Step 2: Convert the KML file into GPX using GPS TrackMaker. Step 1: If the KML files consists of points, lines and polygons, it will be helpful if you can save the points and lines in their own KML file, then do the same for the polygons by themselves. But I’ve come up with a mildly painful, multi-step hack that will allow you to convert the point, path and polygon shapes to shapefile format, and which allows you to keep at least the object name associated with points and paths. I haven’t really found a good way to transform KML files to shapefile format, and certainly not one that preserves most of the attribute information or data associated with the shapes in the KML file. Note: See this series of posts for info on converting shapefiles to KML format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |