Showing posts with label conversion. Show all posts
Showing posts with label conversion. Show all posts

Thursday, January 24, 2008

Google Earth to ArcGIS: Importing Google Earth into ArcGIS 9.2

This is the first of a series of articles I will be publishing on data interoperability between Google Earth and ArcGIS 9.2 (9.1 and possibly earlier as well)

Bringing Stuff from Google Earth to ArcGIS...

If you have made a placemark or a polygon, or a polyline in Google Earth, it is easy to import them into ArcGIS. All you need to do to bring points/lines/polygons from GE to ArcMap is to do the following:

-Create feature in Google EArth
-Right click on it
-Click Save as....
-Save the KMZ/KML file
-Download ET geowizards (if you haven't already, its an amazing ArcGIS toolset)
-on the in/out tab in ET, select import from Google Earth
-select the parameters

There, you have successfully brought google earth data into ArcView!

Monday, January 21, 2008

Converting AutoCAD blocks/polygons (DWG) to fonts (TTF)

Theoretically, this should be an easy task. AutoCAD is vector based, true type fonts are vector based, so, where is the conversion tool? Unfortunately, there isn't one.

The only way to convert between the two is to do it somewhat manually. I've looked and even tried to program this myself, it just isnt within my capability. Incidentally, if some enterprising young programmer out there was willing to do this, I would be very appreciative!

So, anyhow, this is my methodology for converting AutoCAD polygons/blocks to fonts (in my case, so they can be used as markers in ArcGIS).

1) Save your CAD file as a BMP or a TIF, or some other uncompressed raster image. I would recommend saving it at a scale that you feel you will use the most as a font (even though fonts are scalable).

2) You need a font creation program. There is currently no way around this. If you have the money, there are several programs you can buy for 50-700 USD. If, like me, you dont have this kind of budget for a piece of software you will not be frequently using, then there is a fairly good free software option out there. It has one major drawback, however....

It's not windows software! Which is a drawback when you are clearly using both ESRI ArcGIS and AutoDesk AutoCAD in a Windows environment.

Anyhow, the software is called Font Forge (Google it, it should be at Sourceforge). To even get this program to work and start making your ArcGIS compatible fonts, you need to install Cygwin, which is an application that simulates a UNIX environment.

Once you have gone though the headache of installing that program - there is a very good guide on their website - you are ready to start converting AutoCAD into a font. From within cygwin type:

$ twm &

$ fontforge -new

Read the fontforge guide on how to create fonts. I would highly recommend the autotrace program - if it will work on your system - it will streamline the conversion process somewhat. Once you have created a new .font be sure to import it into your control panel>font folder. Windows will now have a new font that, hopefully, has characters that resemble your original AutoCAD file.

Be sure to read my upcoming article on using these newly created fonts to create ArcGIS markers.

Wednesday, January 16, 2008

Converting ArcGIS to Autocad: the easy way

This is a simple methodology for converting ESRI ArcGIS shapefiles to AutoCAD dxf format. This post will be very brief, because this process is relatively simple. There are two methods of doing this that I use depending on the ArcGIS version:

Method 1: For ArcView and ArcEditor
If you are stuck with either of the lesser licences, use this method. If you have ArcInfo (the top licence), skip to method 2.

1) Open ArcCatalogue
2) Select the shapefile you wish to convert.
3) right click on it and select export... then shapefile to DXF...
4) Select an output path (dont worry about decimals for now)

You can repeat this process in ArcGIS the same way and select batch if you wish to do this to multiple shapefiles at once.

Method 2: For those of us with ArcInfo

1) Open ArcCatalogue
2) Select the shapefile you wish to convert.
3) right click on it and select export... then click Export to CAD
4) Then select DWG. You can export directly to a DWG file with ArcInfo. If you dont have ArcInfo use method 1 and cry.

Reading my additional articles on importing ArcGIS into AutoCAD for more information...

Tuesday, January 15, 2008

Converting AutoCAD blocks to ArcGIS markers: Can it be done?

I've been asked this question a number of times: Can AutoCAD blocks be transformed into ESRI ArcGIS markers and saved in an ESRI style document?

The answer is yes, sort of. It depends on the application and how loosely you define the word 'convert'. Another person might use the word re-create instead. Just to clarify, this guide only applied to point features in ArcGIS, you can search my other posts for a guide on how to convert AutoCAD blocks into polygons or lines in Arc.

There are two methods I currently use to convert from CAD blocks to GIS markers (points):

Method # 1: Saving as a .bmp (windows bitmap)
This method is only useful if you do not ever need to scale the marker to a size larger or smaller than how you create it. If you do need to scale it, but only to one or two other sizes, you can just repeat this process for two additional symbols.

To begin, you need to export the file you want from AutoCAD to a bitmap document. There are a variety of ways to do this, you can read about it elsewhere in my blog. Or elsewhere on the internet for that matter.

Once this is done, you can import the marker to your ESRI ARcGIS styles manager. There is a guide to use your styles manager also in this blog. However, the quick solution is to go to TOOLS>STYLES>STYLE MANAGER is ArcGIS. In there, go to the style file that you are using (either your user name, ESRI, or another file you have created - this is recommended). In this ESRI ArcMap style file, you need to select 'marker symbols'>right click on the right pane> new...

Then select picture marker symbol> select the bmp you exported from AutoCAD and voila. You are done. The reason I say not to scale is more of a guideline than a rule. ArcGIS is terrible at scaling images (think MS Paint, but worse). A scaled symbol from a bitmap will look completely wrong. So, as I mentioned earlier, if you want to import a CAD to ArcGIS symbol into bmp, make one for each point size you would like for the marker.

If you DO need to scale your marker, then a much more complicated methodology is required...

Method # 2: Creating an ArcGIS marker from a custom TTF (True Type Font)... SEE PART 2