|
POST
|
I fully agree with the sentiment in the posts. It is like they are trying to do something like stack overflow, but in doing so they have broken the old (working) system. I wish that they would at lest keep the old forum up for a time....
... View more
07-09-2014
09:59 AM
|
2
|
3
|
1103
|
|
POST
|
It looks like I can call getExtent() to get a polygon of the extent of the layer. Next I would like to have the point that is the center of the extent so that I can pan to it with my map view? I have looked around and can not find a method that will do this (probably looking right past it in the API). Any help would be much apprenticed. Thanks, Forest
... View more
07-01-2014
12:11 PM
|
0
|
1
|
2602
|
|
POST
|
OK looks like there is nothing wrong with the code (whether it is the best way to do the job is a different question) but with my geodatabase. When it was made it looks like 2 of the 9 features in it were omitted somehow, because when I call geodatabaseFeatureTable.getNumberOfFeatures(); only 7 is returned. Also, when I pass 3 to getFeature() the expected polygon is returned. Is there a good why to look inside of a runtime geodatabase after it has been made, just to confirm that it is what one thinks it is? Thanks, Forest
... View more
06-17-2014
11:40 AM
|
0
|
0
|
413
|
|
POST
|
I know the object ID of (OBJECTID) of the feature I want from a local geodatabase on the sd card. I wish to pick it out and display I have this in my on click for my search button... try {
searchFeature = geodatabaseFeatureTable.getFeature(2);
} catch (TableException e1) {
// TODO Auto-generated catch block e1.printStackTrace(); }
Geometry searchFeatureGeometry = searchFeature.getGeometry();
Graphic searchGraphic = new Graphic(searchFeatureGeometry, sfs);
GraphicsLayer searchGraphicLayer = new GraphicsLayer();
searchGraphicLayer.addGraphic(searchGraphic);
mMapView.addLayer(searchGraphicLayer);
} when I pass getFeature(1) it works fine but when I pass getFeature(2) the output is null. What is wrong here? Thanks so much for any help, Forest
... View more
06-17-2014
09:26 AM
|
0
|
1
|
2163
|
|
POST
|
I am not sure really how big of a problem this is or if it is a problem at all in the long run, but??? I have a main activity that shows a map view and some buttons/company logo etc. in relative layouts. The parent relative layout has two children, a map view and a relative layout for the buttons, logo, and app title - appearing like an action bar. Some of the buttons open up fragments taking up 1/6 of the screen for user input. So what is weird is that I can drag the map around (and use all other gestures) in the empty space (no buttons or edit text views) of the fragment and the ???action bar.??? This feels a little unnatural to me as logic suggests that the user should not be able to interact with the map where they cannot see it. Is there a way to control this behavior? Like I said, I am not sure it is worth it to fix???. Thanks so much for any input! Forest
... View more
06-13-2014
09:14 AM
|
0
|
0
|
1291
|
|
POST
|
just installed sp1 on my home machine and it fixed the problem.
... View more
04-16-2014
05:09 PM
|
0
|
0
|
475
|
|
POST
|
This tool works good on my workstation, but it does not work on some other machines It looks like the data type is wrong for the parameter. However the data type is set to GPFeatureLayer which is a legal data type. I do not understand why this tool is not working on all machines..... Traceback (most recent call last): File "<string>", line 36, in getParameterInfo File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\arcobjects\mixins.py", line 286, in __init__ setattr(self, attrib, attribvalue) File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\arcobjects\_base.py", line 87, in _set return setattr(self._arc_object, attr_name, cval(val))ValueError: ParameterObject: Invalid input value for DataType property
#adds field to input polygon layer and populates it with an unique identifier made from the x, y coordinates of the centroid
import arcpy
class Toolbox(object):
def __init__(self):
"""Define the toolbox (the name of the toolbox is the name of the
.pyt file)."""
self.label = "Toolbox"
self.alias = ""
# List of tool classes associated with this toolbox
self.tools = [Tool]
class Tool(object):
def __init__(self):
"""Define the tool (tool name is the name of the class)."""
self.label = "BSSN_unique_identifier"
self.description = "Adds field to input polygon layer and populates it with an unique idntifier made from the x, y coordinates of the centroid"
self.canRunInBackground = False
def getParameterInfo(self):
"""Define parameter definitions"""
p0 = arcpy.Parameter(
displayName="Input Polygon Feature",
name="in_features",
datatype="GPFeatureLayer",
parameterType="Required",
direction="Input")
return [p0]
def isLicensed(self):
"""Set whether tool is licensed to execute."""
return True
def updateParameters(self, parameters):
"""Modify the values and properties of parameters before internal
validation is performed. This method is called whenever a parameter
has been changed."""
return
def updateMessages(self, parameters):
"""Modify the messages created by internal validation for each tool
parameter. This method is called after internal validation."""
return
def execute(self, parameters, messages):
"""The source code of the tool."""
in_fc = parameters[0].valueAsText
ar_x = []
ar_y = []
arcpy.FeatureToPoint_management (in_fc,"in_memory\\temp",)
arcpy.AddField_management(in_fc, "COMBI", "TEXT", "", "", 50)
desc = arcpy.Describe("in_memory\\temp")
shapefieldname = desc.ShapeFieldName
rows = arcpy.SearchCursor("in_memory\\temp")
for row in rows:
feat = row.getValue(shapefieldname)
pnt = feat.getPart()
x_point = pnt.X
y_point = pnt.Y
ar_x.append(x_point)
ar_y.append(y_point)
del row, rows
rows = arcpy.UpdateCursor(in_fc)
i =0
for row in rows:
row.COMBI = str(ar_x) + str(ar_y)
rows.updateRow(row)
i = i + 1
del row, rows
arcpy.Delete_management("in_memory")
return Thanks for any help, Forest
... View more
04-16-2014
01:43 PM
|
0
|
1
|
632
|
|
POST
|
When I pick a symbol out of the contents right click menu they look nice and professional. But when they display on the map they are very poor looking. Please see attached images. Is this a bug? Is there a workaround? Any help would be much appreciated, Forest
... View more
08-02-2013
12:48 PM
|
0
|
0
|
590
|
|
POST
|
I posted best way to do custom symbols for Explorer Desktop right above you. I also seem to be having the same sort of problems.
... View more
07-26-2013
11:55 AM
|
0
|
0
|
599
|
|
POST
|
I have some custom png symbols made up for my data set. I have applied them to a layer in arcgis desktop using the picture marker symbol type. Then I have been saving layer packages and then adding them into arcgis explorer. All is well, but the alpha channel is lost. Also the symbols are not the same point size as they were in the original mxd. Next I tried setting them up as bmp files and setting a transparent RGB value. This worked but I would much rather have the soft edges that one can obtain with an RGBA image. Additionally I would like to not have to rework the symbols. Lastly, the symbols seem to re-size oddly with zooming. Some times they are displaying much to large, making them look pixelated. Any input would be much appreciated, thanks.
... View more
07-25-2013
11:21 AM
|
0
|
0
|
803
|
|
POST
|
I may be missing some thing simple, but when I create a feature service hosted on ArcGIS Online it's features are all lost. However, the tiled service works as expected. I would like to ultimately have a tiled service for labels and a feature service to support pop-ups. rest endpoint for feature service http://services1.arcgis.com/i6Ak8tKmIYWZR75o/arcgis/rest/services/27/FeatureServer rest endpoint for tiled service http://tiles.arcgis.com/tiles/i6Ak8tKmIYWZR75o/arcgis/rest/services/27_tile/MapServer I have attached a mpk of the original test data. Thanks
... View more
06-14-2013
10:44 AM
|
0
|
1
|
543
|
|
POST
|
yes, changing the symbols in arcgis online to one of the generic ones stops the problem from occurring. I can not share the map as it has some confidential info in it. I tried to reproduce the problem by making a mock layer, but of course it worked perfectly. Thanks
... View more
06-07-2013
12:06 PM
|
0
|
0
|
1146
|
|
POST
|
yes, it all works in arc online. When one look at the attribute table of the layer in arcgis desktop it is empty. So it's not just that the symbology is not applied but rather the features are destroyed. I think that when arcgis online makes the pkinfo is having a problem with the images causing it to gut whole layers of their features. But it very strange because this is not occurring uniformly for all the point layers. Some come out fine. All of the point layers have the same symbology set with the same urls.
... View more
06-06-2013
02:31 PM
|
0
|
0
|
1146
|
|
POST
|
The point layers show up in the TOC in arcgis desktop, but they contain no features. However, some of the the point layers are fine (all or nothing). I'm sorry but I can not share the map as some of the information is confidential. But all I did was open the map in arcgis desktop 10.1 from arcgis online. The point features were created from uploaded zipped shp files. I would think that this problem is independent from the browser used, however I have tried Firefox, internet explorer, and google chrome. I think that the problem is with the symbology. The points have links to images for the symbology. When this is changed to a generic cross, for example, the problem seams be gone. I would like in the end to be able to have the complete map, with correct symbology, open in arcgis desktop. Thanks for the feedback.
... View more
06-06-2013
01:34 PM
|
0
|
0
|
1146
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-04-2024 05:39 PM | |
| 1 | 07-30-2024 09:05 AM | |
| 1 | 07-08-2024 05:32 PM | |
| 1 | 03-20-2024 10:27 AM | |
| 6 | 03-13-2024 03:38 PM |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|