Quantcast
Channel: Forums - Geoprocessing
Viewing all 1751 articles
Browse latest View live

spatial adjustment Z data

$
0
0
I have two shapefiles positioned with X,Y & Z data of the same object from two sides with 4 common points.

The problem comes when I try a spatial adjustment on the data to fit them together it only connects the points on the X and Y planes and not the Z,

Is there a way to adjust the data in 3d to combine the two surveys?

Thanks for your time


Tom

Raster Pixel Type

$
0
0
Hey there folks,
Does anyone know how to define the pixel type when creating a raster image from a polygon shapefile?
I would like to have a 16 Bit [unsigned] integer but I keep getting a 32 Bit floating point pixel type....granted, I have not noticed any options to define the pixel info. while going through the conversion.

The reason for this is because I need to perform a "MAJORITY" statistic, which is not available for floating point types.

Programming ArcObject with VBA

$
0
0
Hi all
Everyone can explain this code for me clearly :
I'm trying to select records from the attribute table of a FeatureClass but I get this error when I run this code.
" The Database was not found"
The error point to this line of code : Set pTable = pName.Open
Why I get error at this line?

' Part 1: Define the table.
Dim pWSName As IWorkspaceName
Dim pDatasetName As IDatasetName
Dim pName As IName
Dim pTable As ITable

' Get the dbf file.
Set pWSName = New WorkspaceName
pWSName.WorkspaceFactoryProgID = "esriCore.ShapefileWorkspaceFactory.1"
pWSName.PathName = "d:\LaptrinhGis\Phuhoa\nen\nha_25750"

Set pDatasetName = New TableName
pDatasetName.Name = "phong.dbf"
Set pDatasetName.WorkspaceName = pWSName
Set pName = pDatasetName

' Open the dbf table.
Set pTable = pName.Open

Weighted Overlay Tool - Is this correct?

$
0
0
I have used the weighted overlay tool to produce a suitability raster.

I have reclassified all of my datasets to a suitability scale of 1 - 5 (1 being least suitable, and 5 being most suitable). However, when I run the weighted overlay tool, my suitability image only shows values for 2 - 5. Is this because there just are no areas with suitability value of 1, or have I made a mistake somewhere? When I run another image through the model, I get values for 2 and 3, but not 1, 4 and 5.

I have input all of my reclassified rasters, given each a scale value of 1 - 5 (matching my suitability values) and used the evaluation scale of "1 to 5 by 1". Is this correct?

Thanks

Extract by mask or clip tool?

$
0
0
Hello,

I need to "punch out" a series of polygons from a raster dataset. A suitable analogy would be cutting out cookies of various shapes from a sheet of cookie dough.

The polygons are feature classes. The raster type is a "file system raster".

I have tried the "clip" and "extract by mask" tools but have had no success as of yet.

Any troubleshooting tips are appreciated! Thanks!

Source: Graduate student in Geology/Geophysics.

Outer join using Make Table Query?

$
0
0
I have tried creating an outer join using the "Make Table Query" geoprocessing tool, along with "Copy Features", in Modelbuilder to join a table to a feature class (within the same PGDB), but am getting mixed results each time. Additionally, records are being dropped somehow, for no apparent reason. I followed the suggestion from an old thread here, but using ArcGIS Desktop 10.0. Can anyone advise how to correctly use the "Make Table Query" tool?

Iterate Feature Selection Value Unusable for Input In-line Variable Substitution

$
0
0
I've built a model in which I'd like to use an in-line variable substitution from the 'Group by' variable from a Feature Selection iterator. However, Model Builder doesn't appear to pull the value from the input table while editing which invalidates the input parameter for one of my tools. Please see the attached image; note that the indicated value is '1' when the first value from the input features should be '07EE001'. I have also repeatedly verified that valid inputs exist as per: "Z:\Joe_C\BULK_Catchment_Delineation\Stream_Lines\07EE001_PrimaryDirectedNLFlow.shp"

At run-time, the value is extracted and used properly in the output paths of other tools but obviously the invalid tools fail to run at all. I have used this technique successfully with 'Iterate Raster', but no matter what I do this value is unavailable for the validation of my 'Project' tool. Any help would be greatly appreciated!

Attachment 26840

Open and Close Arc Map from within a Geoprocessing Tool

$
0
0
Hi,

I want to make a GP tool which will open an existing feature layer\mxd, do some buffer processing, zoom to the particular buffer created and export it in pdf or image format. I will be calling this GP from web and want to send the exported pdf\image back . I have some idea for doing the same through a C# based windows application( by opening arcmap,create buffer,zoom, export using activeview.exportframe).

So my doubt here is
1.can we open arcmap through GP and perform the operation as mentioned above?
2.if not then what will be the best way to achieve the same functionality?

advance thanks & appreciation for any help\guidance

regards
Biju

Automated attribute population based on connectivity?

$
0
0
Hi all,

I am hoping someone can help me out.

I have a Geometric Network of a storm water system containing two feature classes of points and lines. (All data is topologically sound with pits and pipes snapped and linework captured in direction of flow.)

The point feature class contains an attribute "ASSET TYPE", the line feature class has two attribute fields which hold this value as well (ASSET_US and ASSET_DS) referring to the attached asset of the upstream and downstream pits.

My question is, could anyone suggest a way to automate updates (through ModelBuilder or Python) to the ASSET_US and ASSET_DS fields in the pipe layer when the ASSET TYPE field has been changed in the pit layer?

thanks!

Custom GP Tool paths

$
0
0
I've written a custom tool executable and I've added it to ArcGIS as a script tool using the method discussed here:
http://resources.arcgis.com/en/help/...000003t6000000

The tool reads from a config file located in the same directory as the executable. When ran manually from the command line this application works fine. However, once I run it as a script tool it fails because it can't find the config file, which it thinks is located in the same directory as ArcGIS in c:\Program Files.

What do I need to do to make it so that it reads the config file relative to where the executable resides and not relative to the host environment of the application housing the script process?

Many Thanks.

Chuck

scatter graph of raster data

$
0
0
Does anyone know if it's possible to create a scatter graph of data from two separate raster files.
I have a tiff file whose data I would like to plot against data from various other GRID files; one at a time though..... so I just need to know if it is possible to plot data from a .tif on the x-axis for instance, and a GRID file on the y-axis.
Thanks folks.

Find best locations

$
0
0
I am looking for a tool or workflow to find the best location for, say, an advertising column.
My input is simply a data set with a lot of addresses. For now only distances counts, infrasctructure is at this moment not relevant.
It should be build in modelbuilder so I can play with the number of mean centers i.e. advertising columns.

Example: 1000 points scattered all over the place: I want to know the two mean centers of those 1000 points. Then the modelbuilder will calculate those two mean centers out of the 1000 points.

I have found this, but it does not work for me, I think:
> Exercise 3: Finding a site for a new school
- http://resources.arcgis.com/en/help/...0008000000.htm
There is probably more with Network Analyst and Business Analyst. But I need just plain GIS tools without the need to use extensions.

Thanks in advance for your tips!
Best,
Harmen

Model Builder does not Always Save edits 10.1

$
0
0
We are creating several models that will need to be run by many different people. We have made these as simple as we can and placed many parameters within the model defaulting to a workspace.

We are having a problem saving our models in 10.1 and the models KEEPING the saved changes. We have tried recreating the model in a new tool box and eventually one of our edits will not save. I have searched for others having this issue and have found the older forum below, but that was never answered.

Is anyone having this issue now, with 10.1?


http://forums.esri.com/Thread.asp?c=93&f=1728&t=268572

Subject Re: Error in saving a developed modelbuilder.
Author Richard Brodeur
Date Nov 20, 2008
Message I would like to add myself to this list. I don't know if this is related or not because I have not had any error messages but certain edits I've made to models since migrating to 9.3 have been lost after a save. I can reopen the model after a save and see the changes but at some unknown point, the models revert back to their pre-save state.

Spatial Join Between Raster and Vector Datasets:

$
0
0
Hello:
I am required to assign elevation values to an existing point dataset. I would like to use a DEM to acheive this goal. Is there a method of conducting a process similar to a spatial join between the point dataset (vector) and the DEM (Raster)? Thanks in advance for any assitance.
M-

EXTRACT AREA FROM RASTER CELLS

$
0
0
Hi,

As a previous step for calculating grid cell volume, I'm trying to calculate area for each cell in sq meters for global raster data sets which are in decimal degrees.
I've been searching the forums but I don't get a clear idea on how to do this.
Is there a straight forward way of doing this in Raster Calculator?

Any help would be greatly appreciated.

Thanks a lot

Identify the reference scale of an annotation class with ArcPy ?

$
0
0
Hi Everyone,

I would like to retrieve the value of an annotation feature class reference scale using ArcPy (under ArcGIS 10.1). I cannot find where this property is stored (tried to access using the describe object, but it doesn't seem to be there).

Many thanks for your help!!

cheers,

Helene

geoprocessing tool for Clip under the Editor menu

$
0
0
Note this is not for Clip Analysis.

I was wondering if there was a geoprocessing tool for Editor > Clip. I have a boundary shapefile which extends outside my parish border and was able to use the Clip tool under Editor to Clip off the areas that extended outside the border. Now that I have figured out this Clip tool does what I want, I would like to know if there is a geoprocessing tool which would allow me to automate this process? Any responses would be appreciated.

Setting Metadata for a Geoprocessing Service Task

$
0
0
For ArcGIS Server 10.1 sp1 on Windows

I'm having trouble setting the all of the available metadata for a GeoProcessing service task. I want to emphasize that I'm referring to the task that is run within a GP service, rather than the GP service as a whole.

For a GP Service task, the available metadata are Summary, Usage, Parameter Explanations, Code Samples, Tags, Credits, and Use Limitations. During the process of publishing a GP service in ArcDesktop, I can provide metadata for the Task Summary, and parameter explanations, but that seems to be it. I cannot find a way to provide metadata for the task Usage, Tags, Credits, or Use Limitations (even with digging into the arcgissystem folders or editing the service via REST API).

Once the service has been published, ArcCatalog does not provide a way to edit the GP Task metadata description (as there is no edit button when looking at the task).

Is there a way to provide this metadata?

Again, I'm not talking about the GP service as a whole, as I am able to edit all of the metadata for the overall service using ArcCatalog. It's the particular task that seems to lack full metadata editing.

I've reviewed the documentation for "Documenting geoprocessing services and task" ( http://resources.arcgis.com/en/help/...000054s000000/ ), but doesn't help.


Thanks.

Buffer raises error on any unit except decimal degree

$
0
0
Hello dear kind GIS Users,

i recently have trouble with the Buffer UPDATE: EVERYtool, when I want to buffer/erase/anything based on Units a Shape File Feature Class by 1000 Meters the Buffer Tool raises the error 999999. It is raised with any Unit Setting except Decimal Degrees.
Its the same when i try to do it via the python console. I think it has something to do with the values beeing processed as Strings, since i think there was some kind of string error raised, but now
Code:

import arcpy
arcpy.analysis.Buffer("landuse","landuse1000","1000 Meters")

does raise the error 999999

if i type it with no "" as a number
Code:

import arcpy
arcpy.analysis.Buffer("landuse","landuse1000",1)

The Buffer is processed but obviously with a way to huge radius.
Same goes with the Toolbox, nothing works except Decimal Degrees.

As I found out recently it the same with any Tool based on Units...

I don't know whats going on, I mean I get the hint with the string vs. integer, but I can't imagine that the buffer script is somehow corrupted. I would gladly appreciate if anyone can give me a suggestion what to do or a hint where the error is produced :)

Thanks in advance

Automate count of Polygons within certain range

$
0
0
Ok what I'm trying to do for my new mapping project is:

I have one feature class with 30.000 polygons.

- I want to count for every single polygon how many other polygons are within the range of 500 m.
- The results of the count should be noted in the table for each polygon.

First I've tried to solve this by simple select by location, but I can't find a way to automate for all.
Second I've tried the "spaghetti and meatball method" but it was more or less inaccurate due to very small polygons and mulitple intersections.

What do you think should I do?
Viewing all 1751 articles
Browse latest View live