Tag Info

Hot answers tagged

76

Using the open source ogr2ogr from GDAL/OGR: ogr2ogr -f 'ESRI Shapefile' output.shp input.kml


24

They're not published, and you're probably not supposed to reverse engineer them and still expect free cookies at the ESRI UC, but they're basically OLE2 Compound Document format files, like MS Word & Excel documents. With a nice tool for cracking them open (e.g. http://www.gemboxsoftware.com/CompoundFile.htm), you can get to the hacking part pretty ...


22

I would suggest downloading and installing QGIS. You can then open the file that you link to and export the data in variety of formats. The most common format for spatial data of this type is a shapefile which is one of the files that you linked to (TM_WORLD_BORDERS_SIMPL-0.2.zip). The reason that it is a zipfile is that there are several associated files ...


17

The answer is No.


17

Shapefiles are bound to one type of geometry, so you get a bunch of files for a single project. The field names are restricted too due to using an antiquarian database format. In spatialite, you can hold the whole project data in one file; and name the fields how you want (well, almost). The only disadvantage of spatialite is the fast update cycle, making ...


16

ArcGIS 10 has a GP tool which converts KML to a feature class? Search for KML using the new search. I've used this to take the oil spill kml feeds from Google and convert them into SHP. Cheers


16

The idea you're probably thinking of is GeoPackage. Background. The background to the requirement came from the US Army Geospatial Center which is part of the Corps of Engineers, who were looking for a way to put maps and other information (points or interest, routes, photographs and other observations) into a simple "one file has it all" format for mobile ...


16

Shapefiles are the lowest common denominator of GIS vector data file exchange: send an archive of shapefiles, and you can pretty much guarantee that someone will be able to build a basic GIS from it. SpatiaLite's advantages include: everything's in one file; none of the shp/shx/dbf/idx/prj per layer mess. logic as well as data can be included, in the form ...


15

Yes. Inside the .kmz is a file called doc.kml. You can use 7-zip to open the kmz archive.


14

Well, where to start. Although you can divide data by vector/raster etc there are some obvious problems. For example an Oracle database can store vector or raster (as can other databases). I work at Safe Software where we generally prefer to look at Spatial data (rather than just GIS) and so divide into different categories according to use. CAD GIS ...


13

In the Esri world an .asc file usually refers to the output created by the GRIDASCII command (ArcInfo Workstation) or Raster to ASCII tool (ArcGIS for Desktop). In practice it can mean just about any format, usually plain text, meaning one can't assume from the .asc extension what it looks like inside. It's an interchange format, meaning it's not (normally) ...


11

Vector Shapefile (ESRI) Tech Spec PDF 2.5 billion files est MapInfo Tab/MIF (Pitney Bowes Business Insight) Tech Spec 1.5 billion files est AutoCAD DWG (AutoDesk)** has 18 major variants of the DWG "Autodesk estimates that in 1998 there were in excess of two billion DWG files in existence" Fastest adopted format is KML/KMZ Google Earth/Pro est 0.5 ...


11

Back in the dim and distant past, these formats came about from different proprietary software developers. GRID came from ESRI. IMG came from ERDAS and TIFF came from Aldus (are they still on the go?). So that explains why we have the three of them. There are some differences though: Portability - of the three you mention the GeoTiff is probably the ...


11

You're almost there. This is on Windows 7, Python 2.6.5 32bit, and GDAL 1.9.0: >>> from osgeo import ogr >>> driver = ogr.GetDriverByName("FileGDB") >>> ds = driver.Open(r"C:\temp\buildings.gdb", 0) >>> ds <osgeo.ogr.DataSource; proxy of <Swig Object of type 'OGRDataSourceShadow *' at 0x02BB7038> > ...


10

Use ogr2ogr, but if you're not interested in a command line, try ogr2gui - a really simple front end for ogr2ogr.


10

One reason is because spaces carry special meaning in several programming/scripting languages. Making a habit of naming files and folders with underscores is a good practice because then the " " (spaces) will not be treated as a new-line by some languages. Example - A folder called "GIS Data" is a bad folder name. This is because if I try to access it with ...


9

ArcGIS will export a .dbf to .txt. You can then rename it to .csv. First turn off the fields you do not want exported under Properties, Fields. Right-click the table, data, export. Select the browse folder button, change the "save to type" to .txt. Step-by-step instructions to follow comment by @Brandon (ArcMap 10.1) Right Click on .shp in TOC Open ...


9

In addition to scruss' answer, shapefiles has some limitations: max field name length is 10 characters maximum file size (.dbf / .shp) is 2GB numeric attributes are stored as characters (integers/floats), causing potential problems with rounding etc NULL values are interpreted differently between systems


8

You could use gdaltranslate. gdal_translate -of GTiff myFile.jpg myFile.tif This will actually give you a geoTiff, not a tiff with a world file. You could also try renaming your 'TGW' file to a 'TFW'.


8

I like @celenius' answer; however, another option would be to export the the World Borders Dataset to CSV using ogr2ogr. I just downloaded your preferred dataset and ran this command with ogr2ogr --note that your script should be a single string without any line breaks. I find them easiest to write in notepad with wordwrap turned on, then I copy them into my ...


8

There are some geoprocessing tools that will fail if there are spaces in file names. Thus, it's best to avoid them all together.


8

No it's not possible. Like PolyGeo said you could write a conversion script using ArcPy that reads the QGIS project file (which is just XML) and load each layer. There would be a bit of work but you might even be able to match some of the styling. However there would be a lot of effort in this and it might not be worth it for a single project.


8

GDAL supports .img format, both the basic Imagine and the extended Imagine (greater than 2GB), thus any software that utilizes GDAL drivers would support ERDAS Imagine. The most workable and well documented that I have seen is QGIS. It is also open source and therefore free.


8

There is no universal vector format in GIS. However, some formats are proprietary and other are openly specified (like the shapefile) so that they can be read and/or written by other softwares (if they decide to implement). For data sharing, the best solution to date is to use shapefile, which is now the most widespread format. Shapefile is however an old ...


7

If you are interested in command line tools, you can use GDAL/OGR from OSGEO. http://www.gdal.org/ogr/index.html


7

Greetings, FME posted a beta for an online tool that handles many different types of conversion, including this. http://fmeserver.com/userweb/sharper/Portal/EasyTranslator/index.html This converter should really help you. Good luck.


7

Have you tried running the Compact tool on your file geodatabase? Compacting could get your geodatabase size down. I would not recommend deleting any of the files in the file geodatabase structure, as you are likely to kill it doing that. You say the "default" file geodatabase...personally I try to not keep anything in there that is of any importance and ...


7

E00 is a proprietary ESRI file format intended to support the transfer between ESRI systems of different types of geospatial data used in ESRI software ( Old systems anyway, people use the ESRI file geodatabase now ). Usually, people then convert to coverages and work with those, they don't use the E00 file directly (somebody correct me if I'm wrong). I ...


7

The easiest format for external reading/writing would be a pure binary file (BSQ, BIL, or BIP). These have absolutely no header information contained within--only a stream of bits beginning with the first data point and ending with the last data point. The ordering of bits in n dimensions will vary on the interleave method: either band sequential (BSQ), band ...


7

Shapefile format doesn't allow multiple geometry types, so you should use another format, like GeoJSON. See also OGR merge shapefiles of different geom type into a single GeoJSON feature collection, How to Merge/Join GeoJSON and JSON? and https://gist.github.com/migurski/3759608



Only top voted, non community-wiki answers of a minimum length are eligible