Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I tried to use QGIS to transform shp files in kml and to translate the CRS to use in a google maps application. My problem is that I have a lot of shp files that i can open in a bulk manner by drag and drop but i can only export one layer at a time.

I have used the MMQGIS plugin to merge layers and export one that containes all. This works fine, except that the only way i can keep track of the shp files is by their file name (the objname is truncated to 10 chars), and when i merge the layes the order gets somehow scrambled and i cannot make sense of the what is which.

So, bottom line, how can i convert a lot of shp files (and also to change the CRS) in a more friendly format (kml, csv, json..) ?

Thank you!

share|improve this question

1 Answer 1

up vote 2 down vote accepted

With the command line ogr2ogr, you can bulk convert your shps and change the CRS into many different formats including kml, json, geojson, and csv.

share|improve this answer
    
thank you for your quick reply! I am looking into it and cannot find a way to change CRS , my shp files are in a romanian CRS called Stereo 70. –  vlad Oct 14 '13 at 18:22
    
For the source CRS (SRS in this case or EPSG), I think it should be 3844 for Stereo 70. To transform to GoogleMaps, use -t_srs 4326 in your command. –  Zach Oct 14 '13 at 18:35
    
Perfect, i didn't know that crs = srs , thank you so much ! –  vlad Oct 14 '13 at 18:40
    
No problem! Welcome to GIS Stack Exchange. –  Zach Oct 14 '13 at 18:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.