New answers tagged

0

A way of converting an attribute table to a comma separated text file is to run the Table to Table tool. The location would be a folder such as c:\temp\mydata and the output table would be test.txt. If you set the field mappings then you can choose which fields get exported. But you may get yourself into trouble, what happens if a text value contains a ...


0

I am assuming that data frame boundaries in layout view coincide with page. This can be done manually, because you truly need just 3 values to create world file: cell size and coordinates of upper left corner of exported image. Export layout to raster file and note it's height in pixels, e.g. 842. To find 3 magic numbers activate python window from layout ...


0

Given that start with RasterStack you might consider writeRaster. Example data: library(raster) r <- raster(crs="+proj=utm +zone=32 +datum=WGS84", xmn=0, xmx=10, ymn=0, ymx=10) values(r) <- 1:ncell(r) s <- stack(r, r/2) This will write your RasterStack to a ncdf file: x <- writeRaster(s, filename="test.nc") It includes the CRS info. But ...


0

The time output is in UTC which is the time the database is in. UTC is the basis for local times worldwide and is the default used in geodatabases and in the databases hosted data from ArcGIS Online is in. And this post in quora can help you convert the time to your timezone in excel https://www.quora.com/In-Excel-how-do-I-convert-data-into-a-different-...


2

This arcpy example will loop through features and coordinates to output to screen. Could be modified to suit your output requirements. import arcpy, os workspace = r'N:\GISSE\PtCoords' arcpy.env.workspace = os.path.join(workspace, r'test.gdb') # Location of feature class inputFeatureClass = r'mymultipoint' # Name of feature class to inspect fields = ['...


0

You can the this link too. Here CSV files are being converted to either KML or Shapefile using js2shapefile. You can check the source code how it works. This is a working example.


0

To anyone who stumbles on this issue: I was receiving this error, but I'm having trouble reproducing it. My mxd file was on a network and used shp files on a network. I quit ArcMap, reopened it, and then tried ExportToPDF from an mxd on my C drive that referenced one shp file, also on my C drive. I was able to export a pdf to my C drive. From there, I added ...


0

I'll try to expand PolyGeo's answer in order for you to understand more easily: The script lines arcpy.GetParameterAsText() show that these code lines are normally run similarly to a tool from the ArcGIS toolbox. The script requires an "interface" where you enter the required parameters. You could substitute these lines with a path to your data, as in: ...


1

This script includes the following lines: allLayers = arcpy.GetParameterAsText(0) # Must be a multivalue in script tool params lyrList = allLayers.split(";") PNGPath = arcpy.GetParameterAsText(1) The arcpy.GetParameterAsText() functions are asking for two parameters from a tool dialog that you need to configure separately. They indicate that the script ...



Top 50 recent answers are included