|
POST
|
Does the BUILDERR table contain records to identify the problem features? From ArcGIS Desktop help:
Features with invalid geometries are identified during the network building process and recorded in the network build errors table. The table is identified as the geometric network's name appended with _BUILDERR
... View more
10-07-2014
03:00 PM
|
0
|
4
|
1644
|
|
POST
|
Check out the answer to this post for the arcpy code: You use arcpy functions in C#: Leveraging ArcPy in .NET The following are the ways you can leverage ArcPy: You can call any Python script (*.py) from .NET. This includes code that uses Python packages designed for analytical and mathematical purposes, such as R statistics, complex matrix algebra, SciPy, or any other script. Similarly, you can use simplified ArcPy functions as well. The following are several modules that you can take advantage of: Mapping module—For more information see, Geoprocessing scripts for map document management and output in the ArcGIS Desktop User Help system. Geostatistical Analyst module—For more information, see A quick tour of the Geostatistical Analyst ArcPy classes in the ArcGIS Desktop User Help system. Spatial Analyst module—For more information, see An overview of Spatial Analyst classes in the ArcGIS Desktop User Help system. There are many classes in an ArcPy package that you can integrate in your code. You can use the .NET geoprocessor to execute a script tool that is implemented with Python. This is the way GIS analysts use it. I would probably go with the last option of using the geoprocessor object. Also, there are ways to access transformations directly in ArcObjects using C# - see the ISpatialReferenceFactory2 Interface
... View more
10-05-2014
03:00 PM
|
1
|
1
|
2615
|
|
POST
|
It seems you are overwriting your point symbol with your polygon symbol:
var graphic = result.feature;
graphic.setSymbol(markerSymbol);
graphic.setSymbol(polygonSymbol); // this will replace the previous symbol
map.graphics.add(graphic);
You should test the geometry type before setting the appropriate symbol.
... View more
10-01-2014
03:24 AM
|
0
|
5
|
2056
|
|
POST
|
This is often the cause of these kind of problems. However, it seems odd that the problem persists with the ESRI.ArcGIS.Desktop.AddIns.Button boilerplate code and no user code.
... View more
09-30-2014
03:16 PM
|
1
|
1
|
1722
|
|
POST
|
Geodatabase Class Extensions can do this sort of thing but they require ArcObjects code to implement. An example is the Timestamper Extension. I would strongly suggest Xander's solution if the data is not time critical, as Class Extensions are powerful but a pain to implement.
... View more
09-29-2014
03:20 PM
|
1
|
0
|
746
|
|
POST
|
Also - avoid using 'long' as a variable name (line 57) as it is a reserved word in JavaScript.
... View more
09-29-2014
03:09 PM
|
1
|
1
|
2584
|
|
POST
|
Have you added the Geocoder function parameter as well? require(["esri/Color", "esri/map", "esri/dijit/Geocoder" "esri/graphic", "esri/graphicsUtils", "esri/tasks/Geoprocessor", "esri/tasks/FeatureSet", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", "dojo/domReady!" ], function (Color, Map, Geocoder, Graphic, etc)
... View more
09-28-2014
05:03 PM
|
1
|
0
|
854
|
|
POST
|
I am not aware of any legitimate public downloads for ArcMap. The software is generally available from: Your local ESRI distributor (dvd) The ESRI Developer Network site (download) - requires EDN subscription.
... View more
09-26-2014
12:49 AM
|
0
|
0
|
713
|
|
POST
|
I haven't tried this with scale levels but check out the Map Caching on demand section of the help. You may be able to develop a caching strategy that uses on demand creation of tiles beyond a specific scale. Check out this blog post where the author did something similar.
... View more
09-26-2014
12:42 AM
|
1
|
0
|
3015
|
|
POST
|
Most GPS units capture and store data internally using WGS84 geographic coordinates. Changing the coordinate system and datum on the unit will only changed the way the coordinates are displayed on the GPS - not the way they are stored. I would try assigning a WGS84 geographic projection to your GPS data shapefile and then try projecting it to NAD_1983_StatePlane_Georgia_East_FIPS_1001.
... View more
09-19-2014
01:54 AM
|
0
|
0
|
2898
|
|
POST
|
The Understanding message types and severity section in the help has some good tips. Depending on the severity of the issue you can use: arcpy.AddError arcpy.AddWarning
... View more
09-19-2014
01:45 AM
|
2
|
1
|
1048
|
|
POST
|
After running a similar test I am getting the expected results - they match what the documentation says should be happening:
cursor = arcpy.da.InsertCursor(outCentroids, ["SHAPE@",'ORIG_ID'])
for row in arcpy.da.SearchCursor(polyFC, ["SHAPE@",'OID@']):
cursor.insertRow((row[0].centroid, row[1]))
del row
Is the spatial reference defined on your input data?
... View more
09-17-2014
03:42 PM
|
1
|
2
|
9088
|
|
POST
|
Have you tried using the polygon labelPoint? - this is supposed to be within the polygon: The point at which the label is located. The labelPoint is always located within or on a feature. The documentation suggests that the labelPoint should be returned by centroid if the true centroid is not within the feature but this does not seem to be the case in your example.
... View more
09-17-2014
02:16 PM
|
1
|
0
|
9088
|
|
POST
|
This example from the API documentation shows adding a graphic when the map loads:
require([
"esri/map", "esri/geometry/Point", "esri/SpatialReference",
"esri/symbols/SimpleMarkerSymbol", "esri/graphic", ...
], function(Map, Point, SpatialReference, SimpleMarkerSymbol, Graphic, ... ) {
var map = new Map( ... );
map.on("load", function() { ShowLocation(-81.3765, 28.54175); });
function ShowLocation(x, y) {
var point = new Point(x, y, new SpatialReference({wkid:4326}));
var simpleMarkerSymbol = new SimpleMarkerSymbol();
var graphic = new Graphic(point, simpleMarkerSymbol);
map.graphics.add(graphic);
};
...
});
It is hard to determine why other statements are working without viewing the your source code.
... View more
09-16-2014
04:35 PM
|
0
|
0
|
1987
|
|
POST
|
If you just want to copy the shape of selected features in the ArcMap Python window then: Add your two shapefiles to ArcMap and open the Python window. Select the features you want to copy and enter the following python code - make sure to change the layer names to match your input and output:
inscursor = arcpy.da.InsertCursor("OutputShapes",("SHAPE@"))
with arcpy.da.SearchCursor("InputData", ["SHAPE@"]) as cursor:
for row in cursor:
inscursor.insertRow((row[0],))
For example: This will copy just the geometry into the output shapefile. Hope this helps. Owen Spatial XP
... View more
09-15-2014
05:18 PM
|
0
|
2
|
1256
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-07-2014 06:13 PM | |
| 1 | 08-25-2015 02:04 AM | |
| 1 | 10-07-2014 03:54 PM | |
| 1 | 08-07-2014 09:19 PM | |
| 1 | 03-04-2015 02:02 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-21-2021
06:32 PM
|