Tag Info

Hot answers tagged

21

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 ...


10

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 ...


10

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

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 ...


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

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)


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 ...


6

You can use the DBManager core plugin


5

You could probably migrate your data out of the Personal Geodatabase and directly into PostGIS using ogr2ogr, which supports both Personal Geodatabase and PostGIS file formats.


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

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" ...


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

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

This link will give you the ge.kml file. Open it with Google Earth and you can then export subset POI's to kml. http://wikimapia.org/ge.kml


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

Why not something like this: import arcpy from arcpy import env import csv import os env.workspace = ("WORKSPACE") fcList = arcpy.ListFeatureClasses() with open('codes.csv', 'wb') as f: writer = csv.writer(f) writer.writerows(fcList)


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

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

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: ...


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 ...


5

You mention that you computed a list of values in a Python script, so the easiest way to dump that to a csv would be to use the csv module! import csv res = [x, y, z, ....] csvfile = "<path to output csv or txt>" #Assuming res is a flat list with open(csvfile, "w") as output: writer = csv.writer(output, lineterminator='\n') for val in res: ...


5

If you open the attribute table, open an empty excel spreadsheet, Select all or some of the records in the attribute table. to select all the button in upper left gives this pulldown to accomplish that. right click on the left edge (on a box). copy selected. Switch to the spreadsheet. right click in the upper left cell (just one cell) ctrl+V ...


5

What about the Export Feature Attribute to ASCII Tool in the Spatial Stats Toolbox? It's available at all license levels.


5

I suggest swapping your search terms to look for tutorials on loading a shapefile into R, rather than exporting a shapefile from ArcGIS into R. This link should get you started.


5

Yes, as long as the input is a Feature Layer or Table View, selections will be honored by most geoprocessing tools including those within models.


5

You will not find the forest in the ways list because it is build as a multipolygon relation: http://www.openstreetmap.org/relation/403306 Full text of the xml: <relation id='403306' timestamp='2012-01-17T23:33:35Z' uid='302852' user='be-ju' visible='true' version='26' changeset='10423448'> <member type='way' ref='132144354' role='outer' ...


5

Choose Layer > Save As... with format as CSV. Make sure 'Layer Option', 'GEOMETRY' is set to AS_WKT in the 'Save vector layer as...' window. The first column of the CSV file will now include polygon coordinates.



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