POST
|
Thanks, Luke and John, it works ! I wished I could add one point to both of you, but as I got only one, I gave it to the one who earned less.
... View more
09-27-2013
05:28 AM
|
0
|
0
|
28
|
POST
|
Hi, Instead of using a classic toolbox, I wanted to try to create a .pyt python toolbox. So I Created a .pyt file with Add/New python toolbox. I kept the template and just add added what I thought what was the parameter definition def getParameterInfo(self): """Define parameter definitions""" params = arcpy.Parameter( displayName="Input Features", name="in_features", datatype="DEDatasetType", parameterType="Required", direction="Input") return params But when I run the tool, - I still get "this tool has no parameter" - if I just add a print "test" in the execute method, it doesn't appear. In a .pyt, there is no "parameters" tab, so I don"t understand how to add the widget gui. I went thru documentation and didn't understand what I missed. Thanks for any help. Olivier 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 = "Tool" self.description = "" self.canRunInBackground = False def getParameterInfo(self): """Define parameter definitions""" params = arcpy.Parameter( displayName="Input Features", name="in_features", datatype="DEDatasetType", parameterType="Required", direction="Input") return params 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.""" print "test" return
... View more
09-26-2013
10:16 PM
|
0
|
3
|
1094
|
POST
|
Thanks for this answer Curtis, I'll check that. Perhaps we are going to 10.1 directly... Olivier
... View more
09-13-2013
03:23 AM
|
0
|
0
|
3
|
POST
|
Hi, Using tools "Region group" or "Ascii to raster", I get sometimes the following error : GetOGFWorkspace Unable to cast com object ... to interface IWorkspaceExtensionManager (see joined image). Nevertheless, the operation seems to succeed. Is there an explanation, a way to avoid this message ? Thanks Olivier Arcview/Arcmap 10.0 Build 2414 [ATTACH=CONFIG]27340[/ATTACH]
... View more
09-10-2013
10:06 PM
|
0
|
4
|
1210
|
POST
|
Mark, Curtis, thanks for your kind help, I'll try your ideas, hope it'll work. Olivier
... View more
09-10-2013
08:40 PM
|
0
|
0
|
26
|
POST
|
Hi Mark, Thanks for this answer. It gives me ideas, but I'm not sure I understand the required shift and if it would work in my case as I have plenty of different values (and not 0/6 as in the post) as what I need is to eliminate the orphan pixels which could have any values. Olivier
... View more
09-10-2013
08:25 AM
|
0
|
0
|
26
|
POST
|
Hi, I'm looking for a way to remove isolated pixels in order to speed up vectorization. In other words, I would like to set the value of its 8 neighbours to any pixel having a different value. I tried Majority but I don't get what I want. This will be coded aftr with Arcobjects. I would be grateful to any idea. Thanks, Olivier
... View more
09-10-2013
05:28 AM
|
0
|
5
|
3181
|
POST
|
Got a response from Esri France, use EPSG:3857 instead EPSG:900913 as OpenLayers srsname.
... View more
02-18-2013
07:06 AM
|
0
|
0
|
7
|
POST
|
Hi, I'm trying to display vector features over Google Maps with Open layers. As vectors are stored projected using EPSG: 3949, and Google Maps comes with unprojected EPSG: 900913, on the fly conversion is mandatory but doesn't work. Data are display in Norway instead of France. Using GetCapabilities, I noticed that Arcgis returns <wfs: DefaultSRS>urn: ogc: def:crs:EPSG:6.9: 3949</wfs: DefaultSRS> <wfs:OtherSRS>urn: ogc: def:crs:EPSG:6.9: 4326</wfs: OtherSRS> If I understand well, this means that Arcgis Server WFS is not able to deliver EPSG: 900913 ? In this case, it's useless to set openlayers.protocol.wfs srsname to EPSG:900913 ? Am I right ? Is there a way to set Arcgis Server that it can send data converted in EPSG: 900913 ? Thanks for any idea, Olivier
... View more
02-15-2013
10:52 PM
|
0
|
1
|
450
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|