Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all 2565 articles
Browse latest View live

Summary Statistics of Points with User Defined Polygon

$
0
0
Hello,

What I am trying to do is build a web app with the JavaScript API that will show tree inventory point data of a city and allow the user to draw a polygon to select trees and return back a sum of CO2 sequester amounts (the numbers I have in one column of the data) for the selected points in the polygon.

I have tried using model builder to replicate this and got it to work in ArcMap with the Summary Statistics tool but when I navigated back to the tool after closing ArcMap my polygon would no longer complete and all the model returned was the sum of all the values for all the points in the layer.

I also tried using Select by Location and that will select the points, but I can't figure out how to get a summary of those points selected, and now since I've closed and opened that tool I have the same problem with the polygon not allowing the user to complete/finish it.

Can anyone tell me if this is the correct approach at all if my goal is to put the model on a server as a geoprocessing tool and use it with the JavaScript API? Is there a way to do this just in JavaScript by calling on the layer copied to the server?

I am new to JavaScript and somewhat new to ArcGIS in general.

Any help is appreciated.


Thanks.

Moving points already in a geodatabase

$
0
0
Hello all,

I have a map that has lots of points in and I have had a request to move a few of these points.

I would use this method: http://blogs.esri.com/esri/supportce...its-xy-fields/

However, a lot of the points are in the same location so when I right click "Edit Vertices", I can't tell which one is being selected. I would assume it is the selected point but it doesn't seem to work!

Anyone got any other way to do this?

Thanks
Holly

Theory: Feature class to coverage

$
0
0
Hi all,

I am trying to wrap my head around a situation that I have and what the output would be. I have been running tests to see what the answer is but don't want to make sweeping assumptions on them.

I have a feature class, let's say "FIRE". In this Fire feature class there are burns across a landscape and some of these burns occur on top of other burns. I am trying to confirm which value comes through to the end product of my feature class to coverage. As in a coverage only 1 feature can contain any 1 space, I need to ensure that it is the most recent fire coming through. What I am seeing in my tests is that if a large area encompasses a smaller one, the smaller feature's linework comes through and its values are retained, effectively deleting the same area within the larger (LG=100ha, SM = 10ha: LG = 90, SM=10 in final output). I need to ensure that in instances where the small area is "younger" then the larger area, that the larger area comes through.

Thoughts?

Changing Central Meridien for Map of Newfoundland and Labrador

$
0
0
Hello,

I am attempting to display some data over the entire province of Newfoundland and Labrador, and the Lambert Conformal Projection would be perfect, if only I could alter the central meridien.

I began by following this thread: http://forums.arcgis.com/threads/935...gth-into-miles

by using the tool Calculate Central Meridian And Parallels (Cartography), however, I am consistently getting "Warning 001027: Coordinate system field must be at least <455> characters long to contain the results for these features."

I have created fields of text over 600, 700, and finally 800 characters long, yet the same problem and Warning 001027 is arising.

Is anyone able to help and tell me what's going on?

Thanks
Donald

Field values are not visible in attribute table, show up in Select By Attribute dialo

$
0
0
Hi All,

I have a strange issue I can't seem to figure out (but seems like it should have a simple fix). I have a script that creates a table from XMLs containing metadata. The table is created fine/the script runs without error, but one field is being weird. The field appears blank when looked at in the attribute table, but if I look at it via the Select By Attributes Dialog's get unique values, the text string values show up just fine. (I attached a screenshot of the phenomenon below.

I've tried modifying the script in various ways, thinking that perhaps the the field length was too big but to no avail (although the table is in a file gdb, so there shouldn't be an issue). I've tried the code with a field length of 10-1500 and adjusted the string slice accordingly, but it still leads to the same problem of the values not being visible. I've also tried using this problematic field to calculate another, but the new field has the same problem (not visible when viewed in the attribute table but the strings are visible via the select by attributes dialog).

In case it has something to do with my script, here are a few bits of the code. Any help/suggestions would be greatly appreciated:

Code:

import arcpy, sys, os
import xml.etree.ElementTree as ET
from os import path, chdir
from arcpy import env

env.overwriteOutput=1
env.workspace=arcpy.GetParameterAsText(0)

outputtable=arcpy.GetParameterAsText(1)

dir=os.path.dirname(outputtable)
file=os.path.basename(outputtable)
tableWS=os.path.join('in_memory',"table")
arcpy.management.CreateTable(*os.path.split(tableWS))
rcpy.AddField_management(tableWS,"XMLfile","TEXT","","",40)

arcpy.AddField_management(tableWS,"Title","TEXT","","",200)
arcpy.AddField_management(tableWS, "PCSName","TEXT","","",80)
arcpy.AddField_management(tableWS, "ProjAbstract","TEXT","","",1000)

abstracttag=arcpy.GetParameterAsText(8)
import glob #import glob module, used for finding pathnames matching a certain pattern

os.chdir(env.workspace) #set the operating system directory
print "Reading XMLs..."
arcpy.AddMessage("Reading XMLs...")
XMLS=[] #create an empty list

for files in glob.glob("*.xml"): #read the file with xml extensions.here, glob.glob returns a list of pathnames ending in .xml
    XMLS.extend(glob.glob(files)) #add xml files to the empty list

for xml in XMLS: #Iterate through the list of xmls
    path = xml
    tree = ET.parse(path) #parses the xml into a hierarchical element tree based on the xml tags
    cursor=arcpy.InsertCursor(tableWS) # create an insert cursor on the table
    row=cursor.newRow() #set up the new row function
    for node in tree.findall(abstracttag):
        abstract=node.text     
        row.ProjAbstract=abstract[0:999]
        cursor.insertRow(row) #this command commits the value to the rows
tableWS2=arcpy.CreateTable_management(dir,file)
arcpy.CopyRows_management(tableWS,tableWS2)

Attached Thumbnails
Click image for larger version

Name:	InvisibleAttributeValues.jpg‎
Views:	N/A
Size:	153.1 KB
ID:	33492  

MPS MAP ATLAS where'd it go @ 10.2.2 ????

$
0
0
I just upgraded my machine to 10.2.2 and the mapping charting extension for 10.2.2. When my machine came back up MPS Map Atlas seems to be missing?

How do I select sub-set of fishnet grid using points?

$
0
0
Greetings. I am a brand new user of GIS tools. I believe that my problem is caused by inability to use the correct terms to search for a solution. I'm hoping I can give my problem to you guys in plain English and you can tell me what to do in ESRI-speak.

1) I have a study site that I have divided up into 15km cells using the fishnet tool.
2) I have a shape file with a bunch of points where information was collected within the study area.
3) I need to separate the cells with a point in them from the cells without a point in them. I have tried using spatial join, join, split, merge, and who knows how many tools trying to figure this out. All I can ever get is another shape file with my sites. What I would like is a shape file with a bunch of squares representing the cells where data were collected.

To help clarify things, I have attached an image where I drew yellow squares representing what I am looking for. I have to do this a lot so I don't want to draw them every time.

Can someone point me in the right direction? Thank you.

Attachment 33498
Attached Thumbnails
Click image for larger version

Name:	DikeSites.jpg‎
Views:	N/A
Size:	97.2 KB
ID:	33498  

for loop using GME doesn't recognize lists?

$
0
0
Has anyone successfully run a "for loop" using the Geospatial Modeling Environment (gme) where the variable is from a list of rasters?

The help file indicates that you can create a list of rasters using 'list.raster' and that the resulting variable is called rasterlist. When I try to access that list my script chokes. Unfortunately, the help pdf never gives an example of how to actually access this resulting list.For example calling rasterlist[i] in a for loop.

I've also tried creating a defined variable list like:
ids <- c(”M01.tif”,”F01.tif”,”M02.tif”);


But when I run this as part of a a loop:
for(i in 1:3){
setwd(in="V:\Project\future", out="V:\Project\birds");
isectpolyrst(in="V:\Project\my.shp",raster=ids[i], thematic=TRUE, allowpartialoverlap=TRUE);
}

I get:
"The specified raster dataset does not exist: V:\Project\future\ids[1]"

It looks like it is iterating through the numbers but is simply not recognizing the list I just created.

I've tried this about 10 different ways but simply put, GME does not seem to recognize the [i] variable in a "for loop" even though the help file seems to clearly state that this should work. Anyone out there able to figure this out?

I'm using gme v0.7.2.1
and ArcGIS v10.1

Thanks much,

DJ

Importing data to argcis 9.3.1

$
0
0
'm trying to imports bus routes from the City of Houston data portal. I am able to download and import the file. However, no routes are showing up on my map. This is the same for bus stops as as well. I tried changing the coordinate system to NAD_1983_UTM_Zone_15N but that doesn't help either. the properties of a file that is working in my application is

Code:

Data Type:  Shapefile Feature Class
Shapefile:  D:\Cloud Apps\Google Drive\...\tgr48201trt00.shp
Geometry Type:  Polygon

Projected Coordinate System:    NAD_1983_UTM_Zone_15N
Projection: Transverse_Mercator
False_Easting:  500000.00000000
False_Northing: 0.00000000
Central_Meridian:  -93.00000000
Scale_Factor:  0.99960000
Latitude_Of_Origin: 0.00000000
Linear Unit:    Meter

Geographic Coordinate System:  GCS_North_American_1983
Datum:  D_North_American_1983
Prime Meridian:    Greenwich
Angular Unit:  Degree

The link to the data is http://data.ohouston.org/dataset/metro-bus-routes/resource/d50bb467-41d4-473e-a0b6-fd8cbd8eab08

ArcGIS Map 10.1, .style file not loading.

$
0
0
I'm somewhat new to ArcGIS Map, however I have some spatial data from my county with a .style file and a .ttf file. I installed the fonts and imported the .style file through the style manager, however no icons from the .style file appear in the manager. What could I be doing wrong?

Labeling Issue - Field has Pipe Delimiter

$
0
0
I have a text field that has 100 characters by it is delimited by a pipe character.

I need to generate a field labeling expression that will stack the names but create a new line
after a pipe character is found.

Here's an example firstname lastname|firstname lastname|firstname lastname|firstname lastname|firstname lastname

Any help would be appreciated.

Walter

Masking WMS (Esri Oceans Basemap) layer in ArcGIS for Desktop?

$
0
0
I would like to display ESRI's Oceans basemap web map service (WMS) in one of my maps, but not the whole layer, just the landmass depicting Canada as I find it a nice fit for the look I'm trying to achieve. Is there any way to mask the features around Canada's landmass in that layer? I tried using the Advanced Drawing feature, but the Oceans basemap layer is not listed, probably because it's a WMS. I am working with ArcGIS for Desktop 10.2. Are there any suggestions as to how I could do this?

Otherwise, if anyone can suggest a symbolized layer of Canada's landmass (and only containing Canada's landmass) ressembling that depicted on the ESRI Oceans Basemap that I could download or connect to somewhere, I would be grateful.

I could make my own. I tried with a few DEM's and hillshades but didn't get good results.

Relate Table Grayed-Out

$
0
0
Hi All,
I'm running ArcGIS 10.1 SP1 Advanced. I have an mxd using a point feature class that contains hunting blind locations from a SDSFIE 2.6 gdb (file geodatabase). I've been given hunting data results in an Excel spreadsheet (2007). Each has a "Blind ID" field thay I'm using for the relate. Both are "text" fields. I'm relating the Excel spreadsheet to the feature class (M:1 - more than 1 deer harvested at a given blind). I set up the relate in ArcMap, no problems encountered, but when I open the table of either the feature class or the spreadsheet & select "Related Tables" - the related table name is grayed-out. Any ideas of what kinda brain cramp I'm suffering from?
Thnx
Attached Thumbnails
Click image for larger version

Name:	relate_grayed.jpg‎
Views:	N/A
Size:	122.2 KB
ID:	33534  

Error opening feature class- Number of shapes does not match the number of table...

$
0
0
Error opening feature class- Number of shapes does not match the number of table records.

I've been editing this shapefile for a couple of weeks on and off, it has 157.000 features. Yesterday when i was editing ArcMap crashed and now when i try and open the file i get this error. I realize that what probably happened is that a entry got added to the dbf table but the line didnt save which is why i'm getting this error. I need some advise on how to fix this. I know that you used to be able to use Microsoft access and Excel to edit the dbf but in 2013 they took away that option. Also i can't really download any third party software so i am limited in my options.

any help is appreciated,
Ben

How to add Data with different projection in one map?

$
0
0
Hello,
my task/challenge :) is to get together different Data (wind turbine positions) from different german areas (Bundesländer-counties). I got them in different formats and don t know really with which I should start, which coordinate system (or projection?) my data frame should have?
Which data do I have to transform in what? I am a bit confused where to start, what makes the most sense?

It is important, that they are in the very correct position in my arcMap, as I have to do calculation later on (make calculations with them,f.e. distance from peoples adress from a survey to renewable energys and so on...).


Basic data:

zip code Data:
-in the coordinate system WGS84 (EPSG:4326)
Bundesland data:
-WGS84 Format
-the survey adress data which are generated with a geocodetool which is based on googlemaps --> (EPSG 3857)
WGS84 Web Mercator (Auxiliary Sphere)

Wind turbine data:

Data in excel with coordinates
- SRID=31468 (EPSG-Code), d.h. in DHDN, Gauß-Krüger, Zone 4 (rechtswert/hochwert)
-ETRS 1989 UTM Zone 32N
-WGS_1984_UTM_Zone_32N
-GPS Data

shape files including following .prj-files:
-DHDN_3_Degree_Gauss_Zone_4 (.prj)
-ETRS89_UTM_Zone33_BB_7 (.prj)
-DHDN_3_Degree_Gauss_Zone_3 (.prj)

-KMZ Data – google earth: wgs84 datum. (EPSG: 4326)



Where to start Where to end?
I am very happy for any advise!!!

Cheers!

New Install 10.2.2

$
0
0
I'm currently running ArcMap 10.2.0 and I would like to upgrade to 10.2.2 can anyone tell me how it is running. ArcMap 10.2.0 is not running great on my computer it is crashing a lot. So I was thinking that maybe they have fixed the crashing issues (I've talked to Tech support many times on this issue with no resolve). Or should I just keep to the standard of waiting a couple of months to download and upgrade the new version so that more bugs could be fixed. Thanks for any advice.

ArcMap 10.1 broke several kinds of Join behaviors

$
0
0
I just confirmed with tech support yet another behavior related to joins that worked at 10.0 and prior, but that broke with ArcMap 10.1 and later releases. You cannot join two data sources and then use simple Math in an SQL statement anymore. ArcMap crashes. So, for example, if you join a summary table on a field you cannot do the following selection anymore without crashing ArcMap:

JoinedTable.Frequency > 1 AND JoinedTable.Sum_Shape_Area < OriginalTable.Shape_Area + .001

The workaround I am using for the above selection is to create a new double field on the original table and use the Field Calculator to calculate [Shape_Area] + .001 into it and then changing the selection to JoinedTable.Frequency > 1 AND JoinedTable.Sum_Shape_Area < OriginalTable.Shape_Area. The math must be done by the field calculator, because using the above math in SQL crashes ArcMap on a duplicate of the Shape_Area values in a double field as much as it crashes when using the Shape_Area field. This behavior applies to all math operators.

I was a little frustrated that I had to explicitly ask for a NIM to be logged rather than just letting this be dismissed as an undocumented "known limitation". If replacing working behaviors with ArcMap crashes doesn't constitute a bug, I don't know what does. If they won't restore the behavior they at least need to stop it from crashing ArcMap and document that these SQL expressions are only supported for unjoined data sources.

Other less dramatic, but nonetheless very annoying broken behaviors related to joins that appeared at 10.1 include:

1. Feature selections and highlights in a joined table view no longer refreshes on a map without explicitly using the Refresh command, and once that behavior starts it cannot be stopped even after the join is broken. ArcMap must be closed and reopened to make selections and highlights appear correctly for the original unjoined data source.

2. The CAST SQL operator throws an error while tables are joined, forcing me to use the Field Calculator again to transfer data from the joined table to the original table in order to do the SQL on an unjoined table.

These behaviors are known to occur with file geodatabase data sources, which is virtually all I use, but they may apply to other data sources as well.

Anyway there may be other join behaviors that broke with the release of 10.1 that still are not fixed. If I recall any others I will add them to this post. Feel free to use this thread to list other broken behaviors related to joins that you are encountering in the latest releases. I would like to hear about them, since I use joins a lot.

Importing tables from Microsoft Access

$
0
0
I was trying to import tables from Microsoft Access 2010 into my geodatabase, but it would not recognize any tables. I then tested an Access 2003 project, and those come in fine. Is there a reason why the newer version of Access is not recognized? Is there any workarounds?

Thanks
Bryan

Is it possible to select or export specific points from LAS Dataset?

$
0
0
I've recently run into some functionality issues with ArcGIS and LAS (LiDAR) data and wondered if anyone else who is working with LAS data might have some advice.

When using the LAS Dataset toolbar, one can use the "LAS Dataset Profile View" button, which allows the user to draw a line across points in the LAS Dataset and create an area of interest in which to look at the point cloud profile.

Is there a way to export the points that end up in this profile? If not, are there any other programs that offer a functionality like this? I feel like this functionality would be extremely helpful in future iterations of ArcGIS 10.2.x or 10.x in general, especially since these points are already being filtered for the user to see in both profile and oblique view buttons on the LAS Dataset toolbar.

Any suggestions of workarounds in ArcGIS, add-ins, or other programs that might offer this functionality would be greatly appreciated!

need to convert Qatar Data

$
0
0
Hi !
So i have a excel list of QND95 coordinates, so the datum for Qatar, and i need to transform their in WGS84, do you know how can i do ?

thanks
Viewing all 2565 articles
Browse latest View live