Tag Info

New answers tagged

0

You could use gdal/ogr on android to do the conversion. Building gdal/ogr and spatiallite for android is not difficult if you have used the ndk before.


0

Leaflet is certainly a good option, out of the box leaflet does not support kml but if you add a plugin like omnivore you should be able to get things work reasonably simply. Perhaps have a shot and post your code to jsfiddle if you get stuck then someone can provide more assistance. Regards, Rowan


0

Two other things you can try. First, does your shapefile have any attributes that you can drop before converting to kml? Second, you can try to open the kml in Google Earth and save it as a kmz. This should drastically reduce the size of the file, but I'm not sure if it will solve your original problem since the kmz will still have the same amount ...


0

The first step in reducing the file size of a featureclass is to simplify it. This documentation explains the simplify process in ArcGIS. Basically, the more vertices your features have, the more information they are storing, and therefore the larger the file size of the feature. When you convert a shapefile to KML you are converting all of these vertices. ...


0

Thank you for your input Chris W. My question was very similar to this one ( How to convert KML to shapefile without losing attributes? ). If anyone else is having trouble with this here is how I fixed it: download global mapper (you can get a 2 week trial for free), upload the KMZ file (I believe it works with KML too but I haven't tried it) under "File". ...


0

Google changed the layout in early 2015 (February or March, I think, recently at the time of writing anyway). You cannot save the background data (but similar data are freely available from OSM anyway). Your own points, lines and polygons can be saved to KMl/KMZ by clicking on the top-most three vertical ellipses (highlighted in red in the screenshot) in ...


0

I hope this useful to you please try once http://help.arcgis.com/EN/arcgisdesktop/10.0/help/index.html#//00vp0000000t000401.htm


0

To display the image is Google Earth, your CRS has to be EPSG:4326. So re-project your image first if required. Then, you can use gdal2tiles.py script which will create a KML SuperOverlay and you can view it in Google Earth. http://www.gdal.org/gdal2tiles.html


1

I have been developing a personal open source project. I have placed it on GitHub. It works for SketchUp v14 and v15. Please make sure coordinates are in WGS 1984 Geographic Coordinates. You will also need to geo-locate your model. Right now it only supports points and polylines, but other types will be coming soon. It is in beta, and I will place it in the ...


0

You can easily load Shapefiles into dashDB using the user interface. Instructions here: https://www-01.ibm.com/support/knowledgecenter/SS6NHC/com.ibm.swg.im.dashdb.doc/learn_how/loaddata_gsdata.html


0

ogr2ogr will (sort of) do it. Scroll down to "How do I translate a mixed geometry file to shapefile format?" % ogr2ogr out_point.shp mixed.kml -where 'ogr_geometry = "POINT"' % ogr2ogr out_line.shp mixed.kml -where 'ogr_geometry = "LINESTRING"' % ogr2ogr out_poly.shp mixed.kml -where 'ogr_geometry = "POLYGON"' This stack answer covers it as well. ...


1

Directly loading KML data is not yet possible with dashDB. But you can load GML. See e.g. https://www-01.ibm.com/support/knowledgecenter/#!/SS6NHC/com.ibm.db2.luw.spatial.topics.doc/doc/db2sb169.html%23db2sb-gen168__fun-constr-geom If you have Esri ArcGIS tooling you can load KML data and store it into dashDB geometry columns.


1

You probably want to write a script, but starting point could be to take a list of the layers with ogrinfo: ogrinfo kml_samples.kml INFO: Open of `kml_samples.kml' using driver `LIBKML' successful. 1: Placemarks 2: Styles and Markup 3: Highlighted Icon 4: Ground Overlays 5: Screen Overlays 6: Paths 7: Polygons 8: Google Campus 9: Extruded Polygon 10: ...


-1

This appears to be a really old thread but I recently ran into this same issue using ArcMap 10.3 basic. I ran the tool using python within ArcMap and it worked but the tool from the tool box was not working. Here is an arcpy code: arcpy.env.workspace = r'ENTER WORKSPACE PATH' arcpy.LayerToKML_conversion('INPUTFILENAME.lyr', 'OUTPUTFILENAME.kmz')


0

Currently this can't be done natively, as far as I know. The thread here: Converting ArcGIS layer style to Styled Layer Descriptor (SLD) file? has some info on getting the styles from ESRI lyr to a sld, which is basically what you want, but it's not very smooth (or cheap for arc2earth). I think a more elegant solution is waiting to be developed.


2

This is more a comment than an answer.... Converted it with FME workbench (safesoftware) is a 15mb.kmz can add styles to the layers too. the data was a personal geodatabase (.mdb).


2

To export all data within the mdb file, first add them to a mxd (map) and then save the mxd and use "Map to kml" tool. To export only one feature class use "Layer to Kml" tool.


1

If the output parameter is a directory instead of a file name, ogr2ogr will automatically convert all geometry types into separate shapefiles: ogr2ogr out_dir d:\incoming\nhn_09AA001_1_0.gml Unfortunately for the OP this doesn't work for KML, but it does for some of the other multiple geometry type formats like ArcInfo Coverages and GML. Posting here ...


0

Had the same issue. I just changed the extension from KMZ to ZIP, clicking the ZIP file leads me to the KML file, then made the import from the programs (QGIS and ArcGis). Both worked. Only... ArcGis is soooo sloooow...


0

Isn't it possible to right click on the resulting kmz and point it to the layer you want to dub the symbology from?


1

I published Excel to Google Earth KML converter using VBA Macro in the following link with explanatory notes also. [http://mksugumaran.blogspot.com/2013/09/excel-to-google-earth-kml.html][1] http://mksugumaran.blogspot.com/2013/09/excel-to-google-earth-kml.html The Actual Macro code is given below: Sub EXPORTKMLMARK() Dim DATA(10000, 25) sh2 = ...



Top 50 recent answers are included