# Tag Info

## Hot answers tagged export

15

You can do this using a cursor to grab the data from your table and write to a comma-delimited text file. EDIT: I'm adding a more concise block of code to accomplish the task using the csv module of Python New Answer using arcpy.da cursor: import arcpy,csv table =r'c:\path\to\table' outfile = r'c:\path\to\output\ascii\text\file' #--first lets make a ...

9

You can do this using the Calculate Value (Data Management) tool and some Python magic. See also this related question: Add arbitrary code to Arcgis model builder? A multivalue variable is just a semicolon-delimited string of values, so what the multivaluesToCsv function below does is split the multivalue variables into lists and transpose them into rows ...

8

Yet another option, this is more of a theory and programmatic one, using arcpy. A polygon can consist not only of a single outer ring with a single inner donut hole -- they can be nested to an arbitrary number of levels. Consider the following: A topologically correct polygon's rings are ordered according to their containment relationship (source). ...

8

You can use the Feature Class To Feature Class python snippet. Here is the general syntax. FeatureClassToFeatureClass_conversion (in_features, out_path, out_name, {where_clause}, {field_mapping}, {config_keyword}) To output to a shapefile, make sure that your out_path is a folder (and not pointing within a file geodatabase), and that out_name has a ...

7

A very simple solution is as follows: Open the attribute table and enable editting (yellow pencil button at the bottom of the dialog box) Click the calculate fields button (calculator icon at the bottom) and create a new field for firstX (possibly changing the output field type to decimal and setting the width and precision) and select 'xat' from the ...

6

There is a little bit of information which might help you in your task. First you may need to download FWTools inorder to use geotifcp and listgeo. Create a TIFF File(You already did it..) Let us call it initialtif.tif find the image width and height(from where you saved it). imageWidth = 1016 imageHeight = 551 Create a World File for our ...

6

Jakup: Here's a link to an ESRI page that has links to both the 9x sample and the 10x code: http://support.esri.com/en/knowledgebase/techarticles/detail/29935 9x had a Detect Complex Output sample that could alert one to the presence of a symbol, setting, etc. that was causing rasterization. I can't find a similar sample made for 10x and haven't tried ...

6

If you really want a text-based raster.. whuber is quite right about a text-representation of raster data being inefficient. But at the same time, it can help to "see the data" when it's represented in text, especially while you're cutting your teeth on some concepts So in the spirit of endorsing text-based-raster for some purposes, you might want to check ...

5

I think you were missing closing your output text file - until you do that, you won't get anything written to the text file. Below code tested and works: import arcpy arcpy.env.workspace = r"C:\Users\chad\Documents\ArcGIS\Default.gdb" arcpy.BuildRasterAttributeTable_management("raster17", "Overwrite") outfile = open(r"D:\temp\raster17.txt", "w") rows = ...

5

I think what you want to do is create a custom Toolbox tool and setup your parameters there. Then you would ship others your code along with the .tbx Toolbox file. See this section of the ArcGIS help.

5

if they are drawing in just autocad, you will be relegated (restricted) to planar equal area coordinate systems as the output. if they are drawing using autocad map3d then there is at least a chance that the drawing is in an actual crs to start with. if 1 then you wil need to move, rotate, scale the dwg using a known point as "base point". I ussually do ...

5

you can use the export (multiple). In ArcCatalog... Just right click on the database and choose "export to shapefile (multiple)" If you do it at the database level you will see everything in the database in the tool listed (there is a remove button if there are a few you don't want). If you do it at the feature dataset level you see everything in ...

5

I am not certain that I understand your question but it may be that you could use Batch Processing for which I would recommend its online help. UPDATE Now that I have more details of your question I think Batch Processing is the simplest way to go. Locate the Clip tool in the ArcToolbox window (Analysis Tools toolbox, Extract toolset) where you can ...

5

PostGIS 2.0 doesn't have the function zmflag(geometry). It is now known as st_zmflag(geometry). I'm betting that the version of pgsql2shp is from a prior version of PostGIS. You can check with pgsql2shp -? At the top of the output, it should list the release version. Something like... RELEASE: 2.1.0SVN (r10420)

5

Bap, right clicking on a QGIS composer map item only locks its position, not the layers displayed within the map item. To lock the layers displayed, you must enable the "Lock layers for map item" check box in the map item properties panel:

5

Did you try Qgis? I think wil cover you. You wil find a lot of help on Internet. It is very easy to manipulate the data. If you want to change their style or icons it is very easy. And of course Tiff export is a standard. Is open source and cross platform, that mean you can install it in any Opereting System. More info: From here Download: From here ...

5

The OGC WKT and WKB specifications never explicitly addressed how to encode higher dimensionality, so it would not be surprising if Oracle either (a) did not encode those dimensions at all or (b) did so in a way that is not consistent with formats PostGIS can ingest. Absent any examples of Oracle output, I'm just guessing. You might find that a ...

4

GDAL 1.8 (or later) can convert DEM files to XYZ ASCII file formats. On a system where GDAL is installed (from source, FWTools, OSGeo4W, etc.), go to the shell and try the following command on your file.dem (or whatever): gdal_translate -of XYZ file.dem file.xyz I haven't tested out a raster of this size, but my guess is your xyz file will be close to 2 ...

4

You may want the "Export Feature Attribute to ASCII", cleverly named arcpy.ExportXYv_stats http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005p0000003v000000 import arcpy feature = "path to feature here" # fieldnames must be explicitly provided. Note that you will get additional fields based on the feature type (e.g., "XCoord" and "YCoord" ...

4

Yes. You need to purchase a separate Data Interoperability extension. ($2,500 USD, about$4,000 CAD) Free 60-day trial is available. http://www.esri.com/software/arcgis/extensions/datainteroperability/pricing.html

4

The API can return KML, so you just need to do queries such as: Search queries (this one is probably the most relevant to what you need): http://api.wikimapia.org/?function=search&q=bus&key=YOUR_API_KEY&format=kml BBox queries: ...

4

Two options here: 1) When you do Save As in QGIS right click menu, add .tab to the export filename and it will save as a TAB file. 2) In MapInfo, Import the MID/MIF using the menu options: Table > Import. You can then choose the MID/MIF to import and then choose a place to save the TAB file.

4

You need to include empty quotes for parameters you aren't changing. Since resolution is the 6th parameter, you shouldn't place it directly after parameter 2 (out_jpeg). The empty quotes are place markers. Example: arcpy.mapping.ExportToJPEG(mxd, project, "", "", "", resolution = 200) You don't need to put quotes in for parameters after the last one you ...

4

First you have to be sure such data importing into OSM would be legal. Judging from this thread, I would say no: http://forum.openstreetmap.org/viewtopic.php?id=7076 Wikimapia is essentially derived from Google aerial imagery, so steer clear. Furthermore the license terms stipulate non-commercial use.

4

Given that your autocad version is 12+ years old it may be an issue with autocad dwg or dxf file format version (major format version: http://en.wikipedia.org/wiki/.dwg#Version_history). You should try to open it in a newer version of ACAD, or try saving it into an older format.

4

What you want to do is called a Spatial Join. A common GIS task is to join the attributes from one spatial data layer to another. In this example we will join the attribute table from a polygon layer to a points layer, based on which polygon contains the points. In QGIS, you can do that by using the JOIN ATTRIBUTES BY LOCATION TOOL. You can ...

4

Instead of getting the dataset: // Retrieve the first feature dataset from the workspace. IEnumDatasetName enumDatasetName = workspace.get_DatasetNames (esriDatasetType.esriDTFeatureDataset); You can get the feature class by: IEnumDatasetName enumDatasetName = workspace.get_DatasetNames(esriDatasetType.esriDTFeatureClass); See this thread: ...

4

You can export a two-band raster to a space-delimited text file using gdal2xyz. gdal2xyz.py -band 1 -band 2 filename.tif filename.txt The raster doesn't have to be a TIFF. I think QGIS still comes with gdal2xyz as part of the package. Just to add, you have a DEM TIFF and a slope TIFF. It will possible to stack these together in one raster using ...

4

I have had issues with exports running very slowly when I'm using very large dataset, like a PLSS survey grid for an entire state. You might try clipping any extra data out to minimize the amount of geometry that arcmap has to deal with. If you clip any very large or complex layers that you have to be as small as possible it will likely help arcmap ...

4

ExportMap() was only a prototype feature demonstrating support for HTML5, which won't be implemented until v3 comes out. The above example was referenced on this page, part of a "Future Features" writeup.

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