|
POST
|
Hello, I've got a mxd that only contains ArcGIS MapServices : So I'm like :
for myLyr in arcpy.mapping.ListLayers(mxd):
print ("Is this service layer ? : " + str(myLyr.isServiceLayer))
print ("Does it support service properties ? : " + str(myLyr.supports("SERVICEPROPERTIES")))
Then I get : Is this service layer ? : True Does it support service properties ? : False Is this service layer ? : True Does it support service properties ? : False Is this service layer ? : True Does it support service properties ? : False In ArcGIS help center, from the Layer class, I read : serviceProperties : "Provides access to connection information for ArcSDE and web service layers. etc" isServiceLayer : "Returns True if a layer is a GIS service layer. GIS services are automated geographic information services that are published and accessed over the web using standard technologies and protocols." Can someone highlight me about this flagrant contradiction ? Thank you, Matt
... View more
06-20-2013
12:39 AM
|
0
|
7
|
2808
|
|
POST
|
I just had the same problem, The software authorization has been successfully activated. I re-ran it several times with the same result. Installation on Windows 7. I finally sorted it by restarting the computer. I also used IE instead of Chrome for the site creation but I don't think it matters.
... View more
03-08-2013
03:46 AM
|
0
|
0
|
1495
|
|
POST
|
Hello, I've made some good progress but there is still something going wrong. In python : for featureClass in featureClasses: fields = arcpy.ListFields(featureClass) for f in fields: if f.name == "ARI_ID": f.aliasName = "ArianeID" print f.name print f.aliasName (print) ARI_ID ArianeID The alias has been updated apparently, however I can't see any changes in the "alias" of the field in my geodatabase. When I print my "alias" in another function, the alias hasn't kept the changes: for featureClass in featureClasses: fields = arcpy.ListFields(featureClass) for fieldF in fields: if f.name == "ARI_ID": print fieldF.aliasName (print) ARI_ID Why the new alias hasn't been saved ?
... View more
09-12-2012
05:18 AM
|
0
|
0
|
647
|
|
POST
|
Thank you very much for your help Dasa 🙂 I finally extended the print service with Python, add a "String" parameter called whatEver. When the client call the service and pas a whatEver parameter, python handle it using ListLayoutElements in the mxd : Comments = arcpy.GetParameterAsText(3) if Comments == '#' or not Comments: Comments = ' ' for whatEverString in arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT"): if whatEverString.name == "WhatEver": whatEverString.text = Comments
... View more
09-12-2012
12:12 AM
|
0
|
0
|
438
|
|
POST
|
😞 What is the name of the class ? No any help at all ?
... View more
09-11-2012
11:54 PM
|
0
|
0
|
647
|
|
POST
|
Hello, My knowledge is a little bit limited about sde / oracle and databases management so please forgive me if my question is not accurately defined or if my problem is too easy to solve. I have an oracle database with three schemas. I can connect to these schemas using the ArcCatalog SDE connection (so they are "SDE enabled"). Then I have my sde features classes. One of the schema contains a table referencing aliases for each field of each table and also the schema the table belongs to. SCHEMA TABLE ALIAS SCHEM1 TABL1 BLABLA1 SCHEM2 TABL2 BLABLA2 This as been implemented for something else but I'd like to use this information to automate the Aliases generation for my sde feature classes fields. I don't have a clue how this could work. :confused: Do I need to do it through a Python script from ArcGIS side? Should I use sql developer (Oracle) ? It would be awesome if someone could spend a few minutes to put me on the track. Regards, Matt
... View more
09-11-2012
09:13 AM
|
0
|
3
|
1043
|
|
POST
|
Hello, I have a similar problem. (config: AGS 10.1 - ArcGIS for Flex API 3.0) I extended the Printing Service based on this tutorial : http://resources.arcgis.com/en/help/main/10.1/index.html#//0057000000mq000000 Works great ! However when I want to print a GraphicsLayer from the client, the service returns this kind of error: RuntimeError: Layer "myGraphicLayer": Invalid a value in color: 25500. Layer "myGraphicLayer": Invalid a value in color: 25500. Layer "myGraphicLayer": Field 'OutlineTransparency' not part of schema for this feature collection Then the service fails 😞 SharpGIS, do you think this is related to the limitations you were talking about ? Is there a document somewhere referencing all these limitations ? In python, what would be the best way to prevent the service to fail when this error happens ? Thank you community for your help, Regards, Matt
... View more
08-30-2012
12:17 AM
|
0
|
0
|
2183
|
|
POST
|
Hi, Just reproduce the code from this sample into your project: http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Printing_with_Flex/01nq0000005m000000/ -------------------- These links explain how to publish your own printing service using your own templates: http://resources.arcgis.com/en/help/main/10.1/index.html#//00570000009s000000 http://video.esri.com/watch/1058/arcgis-for-server-10.1-printingtools-service-tutorial -------------------- I've got it working the first time.
... View more
07-17-2012
11:58 PM
|
0
|
0
|
1823
|
|
POST
|
Thank you again for your help but it didn't work. Which name am I suppose to give to the text element ? the name of the parameter I sent "customTextElements" ? Which text then am I supposed to give to my text element as it doesn't accept an empty caption. Does anyone has used "customTextElements" before ? please help !
... View more
07-17-2012
11:43 PM
|
0
|
0
|
1668
|
|
POST
|
Thank you very much for your answer, 😄 I've read the documentation. The only reference to "customTextElements" I can find is in the "Export Web Map Specification" Chapiter: http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004w8000000 It is said : Page layout elements include title, copyright text, scale bar, author name, and custom text elements. customTextElements (optional): This is an array of name-value pairs. You need to use this if you want to update text of a text element (that is not dynamic text) on the page layout. Values must be strings. The JSON looks like this: "customTextElements" : [ {"<textElementName1>" : "<value1>"}, {"<textElementName2>" : "<value2>"} ], However I couldn't find any info about how to handle customTextElements in the mxd itself. :confused: The fact that it is not using "dynamic text" is disturbing, the answer must be really simple but I don't have a clue and I can't find anything on internet. My goal is to get a "Description" text element on the printed map that the user can fill out on the client side. Has anyone used "customTextElements" already ? Cheers
... View more
07-17-2012
02:12 AM
|
0
|
0
|
1668
|
|
POST
|
Hello, I'd like to know how to handle the "customTextElements" property of the LayoutOptions (PrintTask) back in the template.mxd "title" and "author" use standard "dynamic text" - (e.g. <dyn type="document" property="title"/>) What about customTextElements ? Can we send other objects like an overview map to the printing-geoprocessing service ? Can I find somewhere some documentation about how to extend the printing geoprocessing tool ? Cheers,
... View more
07-15-2012
11:52 PM
|
0
|
12
|
8071
|
|
POST
|
Hahahaha !!! I found out by myself, :cool: thank you for not helping me... 😉 private function featureLayer_selectionComplete(event:FeatureLayerEvent):void { for each (var featureo:Graphic in event.features){ for each (var fieldo:Field in event.target.layerDetails.fields){ if (fieldo.name == "X_Coord" && fieldo.type == Field.TYPE_DOUBLE){ if (featureo.geometry.type == "esriGeometryPoint"){ var myPoint:MapPoint = new MapPoint; myPoint = featureo.geometry as MapPoint; featureo.attributes[fieldo.name]=myPoint.x.toFixed(2); event.featureLayer.applyEdits(null, [featureo], null); } } } } (..}..) Cheers, Matt
... View more
03-28-2012
01:05 PM
|
0
|
1
|
1241
|
|
POST
|
Hello, I've made some progress but I'm stuck to the next step: In the Editing Widget, the featureLayer_selectionComplete function is called by a FeatureLayerEvent: I just integrate my function in there: private function featureLayer_selectionComplete(event:FeatureLayerEvent):void { for each (var featureo:Graphic in event.features){ for each (var fieldo:Field in event.target.layerDetails.fields){ if (fieldo.name == "X_Coord" && fieldo.type == Field.TYPE_DOUBLE){ if (featureo.geometry.type == "esriGeometryPoint"){ var myPoint:MapPoint = new MapPoint; myPoint = featureo.geometry as MapPoint; featureo.attributes[fieldo.name]=myPoint.x.toFixed(2).toString(); } } } } This allow me to populate a X_Coord Field (type double) as soon as it exist. When I click on the map, the X coordinate is automatically generated in the "X_Coord" textInput of the AttributeEditor infoWindow. The problem is that the value is not "saved" by the Editor. I think that the editor "save" the value only on the textInput's changeEvent (triggered by the user) so the value added by the function is ignored. A potential solution would be to replace the textInput's changeEvent (in the AttributeEditor infoWindow) by a valueCommitEvent (triggered by either the user or the system). However the source code for the Attribute Editor infoWindow is not accessible. Does anyone have an idea about how I can force the Editor to save my values generated through a function ? Thanks Matt
... View more
03-27-2012
05:17 PM
|
0
|
0
|
1241
|
|
POST
|
Hi ! I need to create a button in the Editing Widget that will automatically populate the Coordinate for Editable Point Feature. I don't thing this should be using a geoprocessing tool because I guess a geoprocessing tool would need a data schema that doesn't change (I can be wrong). I'd like to use this function for many different Point dataset that have different data schema. I'm thinking more about something like this: <Editing Widget> ....... Function on Button Click(event:Event):void{ If (Data is Point){ If (Data.Field[CoordX] && Data.Field[CoordY]){ For Each (Data){ Data.Field[CoordX]=Data.x Data.Field[CoordY]=Data.y } } } } ..... </Editing Widget> Did anyone has done that before ? Can I have a bit of help please ? Thank you, Matt
... View more
03-20-2012
08:45 PM
|
0
|
7
|
3134
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-08-2013 02:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-16-2022
02:19 PM
|