Convert GeoTIFF to AAIGrid

In this post we are going to discuss that how can we convert GeoTIFF to AAIGrid data format. GeoTIFF data is used in  software like BEAM and ER Mapper and  AAIGrid is a file format which is  mainly used in software like ESRI.

GeoTIFF is a public domain standard which allows georeferencing information to be embedded within a TIFF file. GeoTIFF files also includes map projection, coordinate systems and datums data to establish the exact spatial reference for the file.

AAIGrid or Arc/Info ASCII Grid is supported for read and write access, including reading of georeferencing transform and some projections. The projections support is quite limited. It is normally produced with the Arc/Info ASCIIGRID command.

Conversion Of GIS data like GeoTIFF to AAIGrid can be so easy with the help of online conversion tool like IGIS Map Converter.

Convert GeoTIFF to AAIGrid

With IGIS Map Converter GeoTIFF to AAIGrid  conversion can be done in only with few clicks. This converter also supports more other vectors and rasters GIS/CAD formats. IGIS Map Converter makes it possible to transform your data to any other coordinate reference system.

Here are some of the main process in converting GeoTIFF to AAIGrid using IGIS Map Converter.

geotiff to aaigrid-1

  • Once the file upload is complete, select the output file format we want to convert it into i.e. AAIGrid. and for setting up the conversion process set the Coordinate Reference System accordingly and Convert the file.

geotiff to aaigrid-2

  • Now we have successfully converted GeoTIFF to AAIGrid, IGIS map converter allows you to download or delete your new AAIGrid file format.

geotiff to aaigrid-3

  • We can publish the AAIGrid file as map to see the content in the file or to check the conversion.
  • You can also search locations, add new datasets, edit layers and style the map according to your choice and requirements. As IGIS Map Converter Tool provides many benefits other then just conversion of data. This tool provides us to generate this published map in PDF or as image format.

If you face any problem during implementing this tutorial, please let us know. Feel free to comment in given comment box.

You can also check-

 

Convert KMZ to GPX

GPX is a common GPS data format for software applications supported by major GPS devices and KMZ is a file format used to display geographic data in Google Earth and Google Maps. Converting GIS data file from KMZ to GPX format  is just  a few click process with Info GIS Map Converter Online.

IGIS Map Converter

IGIS Map converter is an incredible tool for data file conversions. It will translate KMZ data used by Google Earth and GPS devices and convert them by one click to GPX or GPS format which is also used in software like OziExplorer, Google Earth and GPS devices.

IGIS Map Converter also supports more other vectors and rasters GIS/CAD formats and more than 4000 coordinate reference systems. If the coordinate system of your input data is not present or not recognized correctly, it is possible to assign the correct one. IGIS Map Converter makes it possible to transform your data to any other coordinate reference system.

KMZ to GPX- Convert

Here are some of the main process in converting KML to Shapefile using IGIS Map Converter.

  • Go to IGIS Map Tool login if already registered otherwise sign up.
  • Tap on switch to button on top right side, drop down list will open then choose converter shown in below screen.

KMZ to GPX - Conversion

  • After clicked on converter you will see the home page of IGIS map converter.

KMZ to GPX - Conversion

  • Now just drag or upload your KMZ file from your system or access the file from Google Drive or Dropbox.

KMZ to GPX - Conversion

 

  • Once the file upload is completed, select the output file format we want to convert it into i.e. GPX.

KMZ to GPX - Conversion

  • Now We have successfully converted KMZ to GPX. Now you can download the file and converted file will publish on map to see the content in the file or to check the conversion. You can also search locations, add new datasets, edit layers and style the map according to your choice and requirements.

KMZ to GPX - Conversion

Check video for steps for conversion KMZ to GPX –

  • IGIS Map Converter Tool provides many benefits other then just conversion of data. This tool provides us to generate this published map in PDF or as image format.

Info GIS Map supports most of the commonly used GIS or AutoCAD files like Shapefile SHP, KML, KMZ, CSV, TopoJSON, GeoJSON, GML, DXF, GeoTIFF, NetCDF, GRIB, HDF5, OSM, PBF, and many more raster and vector files.

Subscribe IGIS MAP channel on youtube

If you face any problem during implementing this tutorial, please let us know. Feel free to comment in given comment box.

More on Conversion:

KML to Shapefile – Conversion

In this post we are going to discuss that how KML to Shapefile conversion can be done. KML is the file extensions used in Google applications, specifically Google Earth and Google Maps and  Shapefile is a file format which is  mainly used in software like ESRI ArcGIS and ArcView.

Conversion Of GIS data like KML to Shapefile can be so easy with the help of online conversion tool, as We have already talked about the data conversion with the offline ogr2ogr conversion and we know how much time consuming process it is.

KML to Shapefile – Conversion

A .KML file is a text based file composed of Tags similar to .XML or .HTML. KML data which is used in software like Google Earth and GPS devices can be converted with one click to Esri Shapefile format used in software like  like ESRI ArcGIS and ArcView, With the help of IGIS Map Converter.

IGIS Map Converter also supports more other vectors and rasters GIS/CAD formats and more than 4000 coordinate reference systems. If the coordinate system of your input data is not present or not recognized correctly, it is possible to assign the correct one. IGIS Map Converter makes it possible to transform your data to any other coordinate reference system.

Here are some of the main process in converting KML to Shapefile using IGIS Map Converter.

  • Go to IGIS Map Tool login if already registered otherwise sign up.
  • Tap on switch to button on top right side, drop down list will open then choose converter shown in below screen.

KML to Shapefile - Conversion

  • After clicked on convertor , GIS Convertor page will open then just drag or upload your KML file from your system or access the file from Google Drive or Dropbox.

KML to Shapefile - Conversion

  • Once the file upload is completed, select the output file format we want to convert it into i.e. Esri Shapefile. and for setting up the conversion process set the Coordinate Reference System accordingly and Convert the file.

KML to Shapefile - Conversion

  • Now we have successfully converted KML to Shapefile, Now you can download the file and shapefile will publish on map to see the content in the file or to check the conversion.

KML to Shapefile - Conversion

 

  • You can also search locations, add new datasets, edit layers and style the map according to your choice and requirements. As IGIS Map Converter Tool provides many benefits other then just conversion of data. This tool provides us to generate this published map in PDF or as image format.

Furthermore:

If you face any problem during implementing this tutorial, please let us know. Feel free to comment in given comment box.

Convert KMZ to CSV

Do you want to read and write your GIS data easily in excel sheets? Have you extracted and downloaded kml file from Google Earth or Google map and want to Edit or read your data normally in CSV format?. So today  we are discussing on How to convert KMZ to CSV.

KMZ is a zipped version of KML that contains a KML file in it. It is a file format used to display geographic data in Google Earth and Google Maps and CSV is a simple file format used to store tabular data, such as a spreadsheet or database. Files in the CSV format can be imported to and exported from programs that store data in tables, such as Microsoft Excel or OpenOffice Calc.  Converting GIS data file from KMZ to CSV format  is just  a few click process with Info GIS Map Converter Online.

Convert KMZ to CSV

With the help of IGIS Map Converter , We can easily convert the GIS data file  (both vector and raster data formats) from KMZ to CSV format with these simple steps.

convert KMZ to CSV

  • Once the file upload is completed, select the output file format we want to convert it into i.e. CSV. convert KMZ to CSV
  • And for setting up the conversion process set the Coordinate Reference System accordingly and Convert the file.

convert KMZ to CSV

 

  • Converted file is published directly on canvas. You can now style and download the file.

convert KMZ to CSV

 

  • You can also search locations, add new datasets, edit layers and style the map according to your choice and requirements. As IGIS Map Converter Tool provides many benefits other then just conversion of data. This tool provides us to generate this published map in PDF or as image format. You can also share the map on social media and you are able to embed on your website very easily.

Need Sample data for research and study – Download Shapefile of Coountries

If you face any problem during implementing this tutorial, please let us know. Feel free to comment in given comment box.

KML to GeoJSON – Convert

KML to GeoJSON – Convert. Have you extracted and downloaded kml file from Google Earth or Google map and want to render it with libraries supporting Geojson file format? Are you tired of downloading the same data in different formats? We are going to use a simplest method that is Conversion Of GIS data from one data format to another online with IGIS Map Converter without installing any GIS Software. So here is an article on How to convert KML to GeoJSON format widely used in software like MongoDB, GeoServer, CartoWeb and FeatureServer.

Online GIS Data conversion Tool – KML to GeoJSON

IGIS Map converter is an incredible tool for data file conversions. It will translate KML data which is widely used in software like Google Earth, Fusion Tables, Maps and GPS devices and convert them by one click to GeoJSON (JSON) format which is widely used in software like MongoDB, GeoServer, CartoWeb and FeatureServer. It Convert GIS / CAD files online without using complex and Enterprise Software like ArcGIS, QGIS, AutoCAD etc. IGIS Map converter is much easier to use then any other conversion software or tool. 

Along with conversion from KML to GeoJson, you can also check following conversions like KML to Shp, KML to KMZ, KMZ to KML, KML to DXF, KML to Topojson, KML to GML etc.

IGIS Map Converter also supports more other vectors and rasters GIS/CAD formats and more than 4000 coordinate reference systems. If the coordinate system of your input data is not present or not recognized correctly, it is possible to assign the correct one. IGIS Map Converter makes it possible to transform your data to any other coordinate reference system.

KML to GeoJSON – Conversion

  • Go to http://www.igismap.com   then login and you will see the home page of IGIS map converter.On right side click on switch to button, drop down list will open then choose converter shown in below screen
KML to GeoJSON - Conversion
  • After clicked on converter GIS Converter page will open, Now just drag or upload your KML file from your system or access the file from Google Drive or Dropbox.

KML to GeoJSON - Conversion

 

  • Once the file upload is completed, select the output file format we want to convert it into i.e. GeoJSON.

KML to GeoJSON - Conversion

 

  • Now for setting up the conversion process we have to set the Coordinate Reference System accordingly.KML to GeoJSON - Conversion
  • Now We have successfully converted KML to GeoJSON, IGIS map converter allows you to download or delete your new GeoJSON file format.
  • Now GeoJSON file will publish on map to the content in the file or to check the conversion.
  • You can also search locations, add new datasets, edit layers and style the map according to your choice and requirements.

KML to GeoJSON - ConversionIGIS Map Converter Tool provides many benefits other then just conversion of data. This tool provides us to generate this published map in PDF or as image format.

Info GIS Map supports most of the commonly used GIS or AutoCAD files like Shapefile SHP, KML, KMZ, CSV, TopoJSON, GeoJSON, GML, DXF, GeoTIFF, NetCDF, GRIB, HDF5, OSM, PBF, and many more raster and vector files, along with that it support more than 4000 Coordinate Reference System.

If you face any problem during implementing this tutorial, please let us know. Feel free to comment in given comment box.

Convert KMZ to KML

In this post we are going to discuss that how can we convert KMZ to KML data format. Both KML and KMZ are file extensions used in Google applications, specifically Google Earth and Google Maps. A person using these two Google applications can encounter a lot of file formats, including KML and KMZ.

Conversion Of GIS data like KMZ to KML can be so easy with the help of online conversion IGIS Map tool. You can also check Convert KML to DXF. KML to KMZ, KML to SHP, KML to CSV, KML to GML, KML to GeoJSON, KML to Topojson etc.

KMZ to KML – Convert

A .KML file is a text based file composed of Tags similar to .XML or .HTML. KML files can also be converted to a .KMZ file. The differences between .KML and .KMZ is that a .KMZ has been compressed using an application.

KMZ data which is used in software like Google Earth and GPS devices can be converted with one click to KML format used in software like Google Earth, Fusion Tables, Maps and GPS devices With the help of IGIS Map Converter.

IGIS Map Converter also supports more other vectors and rasters GIS/CAD formats and more than 4000 coordinate reference systems. If the coordinate system of your input data is not present or not recognized correctly, it is possible to assign the correct one. IGIS Map Converter makes it possible to transform your data to any other coordinate reference system.

Here are some of the main process in converting KMZ to KML using IGIS Map Converter.

Convert KMZ to KML

  • Once the file upload is completed, select the output file format we want to convert it into i.e. KML. and for setting up the conversion process set the Coordinate Reference System accordingly and Convert the file.

Convert KMZ to KML

  • Now We have successfully converted KMZ to KML, IGIS map converter allows you to download or delete your new KML file format.

Convert KMZ to KML

Output of KMZ to KML Conversion online

  • We can publish the KML file as map to see the content in the file or to check the conversion.

Convert KMZ to KML

  • You can also search locations, add new datasets, edit layers and style the map according to your choice and requirements. As IGIS Map Converter Tool provides many benefits other then just conversion of data. This tool provides us to generate this published map in PDF or as image format.

If you face any problem during implementing this tutorial, please let us know. Feel free to comment in given comment box.

KML to DXF Convert

Are you looking for converting your KML data file into DXF format for using it in your GIS project or it into CAD system? Have you extracted and downloaded kml file from Google Earth or Google map and want to render it with your geo library which support dxf format?  If so, here is an article to convert KML to DXF format using this amazing online conversion tool. 

You can use any of the tools to convert your kml data file to any other format available in market, but If you don’t want to spend so much time just on conversions and want an easy way for conversions. Here is an amazing tool for converting your data files within a minute, i.e. IGIS Map Converter.

IGIS Map Converter

IGIS Map converter is an incredible tool for data file conversions. It will translate an AutoCAD file (in DXF format) to a shapefile or KML format. It can also convert from KML format to shapefile, or KML to DXF, or Shapefile to DXF.  It Convert GIS / CAD files online without using complex and Enterprise Software like ArcGIS, QGIS, AutoCAD etc. IGIS Map converter is much easier to use then any other conversion software or tool.

How to convert KML to DXF format

KML to DXF Convert
KML to DXF Convert
  • Now just drag or upload your KML file from your system or access the file from Google Drive or Dropbox. 

KML to DXF Convert

  • Your KML file will start uploading in seconds and ready to be converted.

KML to DXF Convert

  • Once the file is upload is completed, select the output file format that we want to convert it into i.e. DXF.

KML to DXF Convert

  • Now for setting up the conversion process we have to set the CRS (Coordinate reference system), if we want to or otherwise default commonly used CRS is already selected. We can select or change the CRS according to our needs from the change CRS button.

KML to DXF Convert

  • Now click the Convert file button to convert the data file formats.KML to DXF Convert
  •  And you see a new dashboard with two partition, One for downloading or deleting your new DXF file format. and other one which shows the file content area i.e bounding box area of kml file.

KML to DXF Convert

  • You can Download your converted file here or delete it whatever you want, When you scroll down you can see My drive section where all of your converted data files stored. You can publish or delete them according to your requirement.

KML to DXF Convert

  • You can also publish your DXF file as map to see the content in the file or to check the conversion.
  • You can also search locations, add new datasets, edit layers and style the map according to your choice and requirements.

KML to DXF Convert

  • IGIS Map Converter Tool provides many benefits other then just conversion of data. This tool provides us to generate this published map in PDF or as image format.

Info GIS Map supports most of the commonly used GIS or AutoCAD files like Shapefile SHP, KML, KMZ, CSV, TopoJSON, GeoJSON, GML, DXF, GeoTIFF, NetCDF, GRIB, HDF5, OSM, PBF, and many more raster and vector files, along with that it support more than 4000 Coordinate Reference System.

IGIS Map Converter is a online tool for converting GIS data files from one format to another. which helps you in easy data conversion and beautiful and incredible map creation in no time. IGIS Map converter online tool is recommended for better and easy conversions.  If you want you can also use ogr2ogr offline conversion tool for convert KML to DXF format.

If you face any problem during implementing this tutorial, please let us know. Feel free to comment in given comment box.

KML to SHP Shapefile – Convert

Convert kml to shp shapefile. Have you extracted and downloaded kml file from Google Earth or Google map and want to render it with your geo library which support shapefile? Do you have KML data given from third party and want to give a proper representation of data over map by converting the same in shapefile? If so, here is an article to convert kml to shp using command line tool ogr2ogr or using php code. While if you use QGIS tool, you can look over kml to shp convert using QGIS or else continue using this article.

KML (Keyhole Markup Language) is very popular GIS format. It is available in text format containing tags such as Placemark, SimpleField, SimpleData and ExtendedData etc. It contains whole information in tag. But when you need to see the geometry you may require Shapefile. This conversion can be done using Ogr2ogr utility from GDAL (Geospatial Data Abstraction Library) and other GIS software such as QGIS, ArcGIS etc.

Convert kml to shp – Look Details For KML (Keyhole Markup Language) structure with Line feature-

<Schema name="India_roads" id="India_roads">
 <SimpleField name="MED_DESCRI" type="string"></SimpleField>
 <SimpleField name="RTT_DESCRI" type="string"></SimpleField>
 <SimpleField name="F_CODE_DES" type="string"></SimpleField>
 <SimpleField name="ISO" type="string"></SimpleField>
 <SimpleField name="ISOCOUNTRY" type="string"></SimpleField>
 <SimpleField name="Length_km" type="float"></SimpleField>
 <SimpleField name="Latitude" type="string"></SimpleField>
 </Schema>
 <Folder><name>India_roads</name>
 <Placemark>
 <Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style>
 <ExtendedData><SchemaData schemaUrl="#India_raods">
 <SimpleData name="MED_DESCRI">Without Median</SimpleData>
 <SimpleData name="RTT_DESCRI">Secondary Route</SimpleData>
 <SimpleData name="F_CODE_DES">Road</SimpleData>
 <SimpleData name="ISO">IND</SimpleData>
 <SimpleData name="ISOCOUNTRY">INDIA</SimpleData>
 <SimpleData name="Length_km">0.3</SimpleData>
 </SchemaData></ExtendedData>
 <LineString><coordinates>77.8277403975188,35.5012774951028 77.8257523065223,35.4995003281062</coordinates></LineString>
 </Placemark>
 <Placemark>

In the above given example, attribute fields are given with their data type. In style tag geometry style shown with color. Extended Data encloses attribute field name with values. In the last coordinates are given for particular line string. In similar way other lines, point and polygon are given in KML.

You may also look over converting Shapefile to kml using QGIS or shp to kml using ogr2ogr tool.

KML to SHP Shapefile – Convert

    • Go to IGIS Map Tool  and login with email id or if you are new user then register with a valid email id.
    • After login next step is to  Tap on Switch To and select Converter.
    • Next screen will be opened. Upload your data from system or drag & drop.
    • After uploading your data select the output data. For KML to Shapefile select SHP.
    • If you want your output in different coordinate reference system then click on change CRS.
    • Your converted file is directly published on the map. Download your converted file by clicking download icon.

For step by step approach check the video given below:

Convert from Keyhole Markup Language KML to SHP Shapefile using ogr2ogr utility-

For using this utility you need to install it in your system. To install this utility you can follow given commands,

KML to SHP Shapefile - Convert
KML to SHP Shapefile – Convert

If you already have install this utility or you want to check availability of this utility you can type ogr2ogr in terminal.

KML to SHP Shapefile - Convert

For conversion the given command need to be executed on terminal-

--- ogr2ogr -f 'ESRI Shapefile' Output_sahpefile.shp Input_KML.kml

Here -f defines the output file format and ‘ESRI shapefile’ is driver available.

PHP code for converting KML to SHP shapefile-

If you want the conversion using programing or don’t want to use terminal then this can also be done using PHP. You can create a function that defined this command as string and can give this string in shell_exec() method to execute. Shell_exec() actually execute the command and returns output as string.

public function KML_to_shp($KMLfilepath,$output){
 $query="ogr2ogr -f 'ESRI Shapefile'  $output.gml  $KMLfilepath";
 shell_exec($query);
 }

Generated output in QGIS software-

KML to SHP Shapefile - Convert
KML to SHP Shapefile – Convert

Change Coordinate System of shapefile generated from kml-

Changing coordinate system of output file can be done with this same ogr2ogr utility. It has various option for SRS (Spatial reference system), given below

-a_srs srs_def:

Assign an output SRS

-t_srs srs_def:

Reproject/transform to this SRS on output

-s_srs srs_def:

Override source SRS

These option can be used in command as-

— ogr2ogr -f ‘ESRI Shapefile’ -t_srs EPSG:32643 (new EPSG) -s_srs EPSG:4326 (old EPSG) shpchange.shp output1.kml

Generated shapefile from kml after changing coordinate system in QGIS software-

Convert- KML to Shapefile - Keyhole Markup Language

Hence, we get our shapefile. Furthermore, try our tool IGIS MAP Tool if you want to conversion in single click.

You also can visit Shapefile to GeoJSON, Shapefile to TopoJSON, Shapfile to geopackage, KML to shapefile conversion using QGIS etc.

If you face any problem during implementing this tutorial, please let us know. Feel free to comment in given comment box.

Even more try your hands on our Conversion Tool

Shp to KML KMZ – Convert Shapefile to Keyhole Markup Language

Shapefile Shp to KML KMZ Convert. Many times you may want to render your shapefile directly in Google Map and check the view. Or you may want to convert the shapefile shp to KML so that it becomes easy to program with Google Map API. You can also check the file with Google Earth by loading KML converted from Shapefile.

KML is keyhole markup language file format, used to display geographic data on earth browser such as google earth and ArcGIS Explorer etc. This is XML tag-based structure. It is a highly portable single file that can contain all of a layer or map’s elements, such as feature geometry, imagery, symbology, descriptions, attributes, imagery, and other related content. Similarly .kmz  is spatial format, which is a compressed or zipped file of KML extension. In GIS vector and raster data formats are saved differently where as KML composed of including elements as line point polygon and imagery. While shapefile is a Vector file, comprised of three files i.e .shp, .shx and .dbf extension.

KML File Format To Know Before Converting from Shapefile or SHP

Before taking a look on Converting Shapefile to KML or KMZ file, lets first look over how KML file look like. This is essential as if kml file is corrupted then conversion is not possible. And if you know file format, you can correct the same as we can edit the kml in text editor. If you already know the file format of KML, you may skip this step and look directly for Convert Shapefile shp to KML using ogr2ogr tool. Every geographic element such as point line or polygon is specified by different tags.

SHP to KML Conversion IGIS Map Tool

  • Go to IGIS Map Tool
  • Login to the tool if you are already have a account on IGIS Map Tool  otherwise Sign up.
  • Click on Converter

shp to kml

  • You can directly upload from your database or from Google drive or else from dropbox.

shp to kml

  • We are using google drive.  Once file upload is complete, select the output format. We tap on KML for output.

shp to kml

  • Click on Convert file button.

shp to kml

  • Here is your Converted Shp to Kml file. Tap on published button.

Download World Shapefile for project

Point Data KML file format – shp to kml

It contains geographic location, title and description as latitude and longitude.

<Placemark>
 <name>Simple placemark</name>
 <description>Attached to the ground. Intelligently places itself
 at the height of the underlying terrain.</description>
 <Point>
 <coordinates>-122.0822035425683,37.42228990140251,0</coordinates>
 </Point>
 </Placemark>

Line Data KML file format – shp to kml

Using style tag you can specify the color and width for lines.

<Style id="yellowLineGreenPoly">
 <LineStyle>
 <color>7f00ffff</color>
 <width>4</width>
 </LineStyle>
 <PolyStyle>
 <color>7f00ff00</color>
 </PolyStyle>
 </Style>
 <Placemark>
 <name>Absolute Extruded</name>
 <description>Transparent green wall with yellow outlines</description>
 <styleUrl>#yellowLineGreenPoly</styleUrl>
 <LineString>
 <extrude>1</extrude>
 <tessellate>1</tessellate>
 <altitudeMode>absolute</altitudeMode>
 <coordinates> -112.2550785337791,36.07954952145647,2357
 -112.2549277039738,36.08117083492122,2357
 -112.2552505069063,36.08260761307279,2357
 -112.2564540158376,36.08395660588506,2357
 -112.2580238976449,36.08511401044813,2357
 -112.2595218489022,36.08584355239394,2357
 -112.2608216347552,36.08612634548589,2357
 -112.262073428656,36.08626019085147,2357
 -112.2633204928495,36.08621519860091,2357
 -112.2644963846444,36.08627897945274,2357
 -112.2656969554589,36.08649599090644,2357
 </coordinates>
 </LineString>
 </Placemark>

The <tessellate> tag breaks the line up into smaller chunks, and the <extrude> tag extends the line down to the ground.

Polygon Data KML file format – shp to kml

<Placemark>
 <name>The Pentagon</name>
 <Polygon>
 <extrude>1</extrude>
 <altitudeMode>relativeToGround</altitudeMode>
 <outerBoundaryIs>
 <LinearRing>
 <coordinates>
 -77.05788457660967,38.87253259892824,100
 -77.05465973756702,38.87291016281703,100
 -77.05315536854791,38.87053267794386,100
 -77.05552622493516,38.868757801256,100
 -77.05844056290393,38.86996206506943,100
 -77.05788457660967,38.87253259892824,100
 </coordinates>
 </LinearRing>
 </outerBoundaryIs>
 <innerBoundaryIs>
 <LinearRing>
 <coordinates>
 -77.05668055019126,38.87154239798456,100
 -77.05542625960818,38.87167890344077,100
 -77.05485125901024,38.87076535397792,100
 -77.05577677433152,38.87008686581446,100
 -77.05691162017543,38.87054446963351,100
 -77.05668055019126,38.87154239798456,100
 </coordinates>
 </LinearRing>
 </innerBoundaryIs>
 </Polygon>
 </Placemark>

There are many option tags in KML.

Convert Shapefile SHP to KML KMZ

In this article we will have a look on how shapefile can be converted in KML. For conversion ogr2ogr command has used which should be written on terminal (command promt). You need to install ogr2ogr tool, which is open source tool and can be installed in Windows, Ubuntu, Mac or any other linux system.

Note that for converting shapefile to KML you must have shp along with shx file and dbf file. As shx file contains the positional index of the feature geometry whereas shp format contains geometry itself and dbf contains the data associated with the feature.

Command Format for using ogr2ogr tool to convert to kml :

---- ogr2ogr -f KML outputfilename.kml inputfilename.shp

Here is an example command line, to show how i had use ogr2ogr tool to convert the shp to kml file.

convert-shapefile to kml/kmz

Similarly you can convert shapefile to KML using QGIS tool.

Convert SHP to KML or KMZ using coding-

To convert in KMZ format you can just change the extension of output file from .kml to .kmz format. The option -f (output file format) remain same for both.

In PHP you can use this command using shell_exec() method. Here a function is created in which shapefile and Output file name is taken from user.

public function shptokml($shpfilepath,$output){
 $query= "ogr2ogr -f KML $output.kml $shpfilepath ";
 shell_exec($query);
 }

Similarly for KMZ, you can have a function as given below-

public function shptokmz($shpfilepath,$output) {
 $query="ogr2ogr -f KML output.kmz $shpfilepath";
 shell_exec($query);
 }

The converted output will contain all attribute details with their geographic location in latitude longitude form.

convert-shapefile to kml/kmz

Note-

KML only supports EPSG: 4326 i.e. +proj=longlat +datum=WGS84 . So you can not change the coordinate system of KML. But you can change the coordinate system of shapefile before converting it in KML.

Similarly you may also look for converting shapefile to GeoJSON, Shapefile to Topojson, Shapefile to Geopackage, Shapefile to Postgresql, shapefile to CSV etc. Also you can look for reverse convert the same i.e from KML to shapefile using QGIS or ogr2ogr tool.

Hope you enjoyed this article and successfully converted shapefile into KML. If you find any difficulty during execution of this article please let us know by commenting below in the box provided.

Convert Shapefile to kml by QGIS

Convert Shapefile to kml by QGIS. Shapefile is ESRI based Vector file, While KML or Keyhole Markup Language is file which models and stores geographic features for display in Google Earth or Google maps. Many times you may require to convert the required shapefile to KML file, so that you can deploy the same over Google Earth for some reason. QGIS (Quantum GIS) is an open source GIS (Geographic Information System) tool, which let you upload the Shapefile and convert the same to KML file. Similarly ogr2ogr is also an open source tool, which let you to convert between GIS data formats. Look over shp to kml convert using ogr2ogr tool which can be marked as an alternative to this article. You can also see to convert Kml to Shapefile and also Shapefile to GeoJSON in QGIS.

You can also go through other tutorial in QGIS.

Free SHP to KML conversion using GIS Converter Tool in one click.

Here are the steps to convert shapefile to kml:

Convert Shapefile to kml in QGIS

Convert Shapefile to kml by QGIS
Convert Shapefile to kml by QGIS

Convert Shapefile to kml in QGIS:

1.) Open up the installed QGIS.
2.) In the menu bar, select Layer and press Add Vector Layer. Now select the source type in the pop up window opened as File and browse the source Shapefile(Note:Your shapefile .shp, .dbf and .shx file should be in same folder). Press open.

Convert Shapefile to kml by QGIS
Convert Shapefile to kml by QGIS

Select the coordinate reference type system if coordinate reference window appears and press ok.

3.) Right click on the name of Shapefile layer Appearing in the Left upper side and select save as:
or
You can select layer from the menu, and click on save as. (Image below provide demonstrate both the options with the indicator displayed)

Convert Shapefile to kml by QGIS
Convert Shapefile to kml by QGIS

4.) In the Save vector layer as window, Select the format from the drop down box as Keyhole Markup Language(KML) and browse the folder in which you want to save the KML file . Name it and Press OK.

Convert Shapefile to kml by QGIS
Convert Shapefile to kml by QGIS

Your KML file will be Exported in the directed folder. You can Verify the generated KML file for its validity by uploading the generated KML file to QGIS or uploading KML file in Google map. You may soon find the tool and the coding for the same on this site.

You may check in converting Geojson to Topojson and Shapefile to TopoJSON file. Hope this may help you in converting Shapefile to KML file easily. If you still find problem in converting the file, do let me know by commenting below.

Introduction of QGIS 3.2.1