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
|
762
|
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
|
1828
|
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
|
310
|
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
|
1517
|
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
|
1080
|
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
|
1080
|
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
|
4235
|
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
|
284
|
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
|
727
|
POST
|
Hi, I'm trying to publish a vector map as a WFS service to arcgis server. Analysis returns no error but when I try to publish, I get the error "one or more arguments are invalid". I can't find from where does this error come. I published another layer and didn't get any problem. Both layers are in Oracle, the faulty one comes from a shp+mdb join and copy features to the geodatabase, the other was just the shp. I tried to convert crs to wgs84, no change. Thanks for any help, Olivier
... View more
02-05-2013
12:57 AM
|
0
|
2
|
2837
|
POST
|
Hi Jeff, Thanks very much, that was it ! There were in fact two mistakes, Oracle path was faulty and tnsnames.ora wasn't set with appropriate rights. Olivier
... View more
11-14-2012
07:27 AM
|
0
|
0
|
1444
|
POST
|
Hi, I'm trying to add a new remote internet linux Oracle 11gR2 datastore to an arcgis 10.1 server and get the error "Data item is inaccessible". Error is precisely the one described in http://support.esri.com/en/knowledgebase/techarticles/detail/40409 (but linux is not quoted there) Linux Admin told me that he did install x64 client, got a connection with sqlplus (see below) and he doesn't know what else could he check as he's not a GIS administrator. machine is Linux-amd64-2.6.32-279.14.1.el6.x86_64 Error occurs using Windows/Arcatalog 10.1 or Arcgis manager. So it must be a connection problem between Arcgis and Oracle on the linux server but I don't see which one it could be. Rights ? Arcatalog add database connection is ok save usr/pwd is checked I was able to create my enterprise geodatabase, add spatial type, copy a feature class to oracle. add arcgis server is ok I use sys connection when trying to add datastore from arcgis server. I just set "orcl" and database authentication with "sys/pwd", click ok, no message (which means user/pwd is ok), but it's when I select ok to close datastore register that I get the message. I tried to add the same os account to oracle, grant all privileges to it, no change. Thanks very much to any help as I found several threads about it but none with a working answer. Olivier SQLPLUS log screen : [oracle@kj ~]$ sqlplus64 sys@ORCL as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Sat Nov 10 18:20:12 2012 Copyright (c) 1982, 2009, Oracle. All rights reserved. Enter password: Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL>
... View more
11-11-2012
12:38 AM
|
0
|
2
|
3966
|
POST
|
Hi, This works partially for me : arcpy.AddMessage("Making feature layer....") lay = arcpy.MakeFeatureLayer_management(lyr, "lyr") qry = "CODE like 'COD%'" res=arcpy.SelectLayerByAttribute_management (lay, "NEW_SELECTION",qry) curs = arcpy.SearchCursor(res,"","","CODE") for row in curs: arcpy.AddMessage(str(row.CODE)) but as I'm not very skilled with arcpy, I don't understand why the filter doesn't work, res contains all objects (so SelectLayerByAttribute) is useless. Thanks for any help. Olivier Edit : But it works if I use qry in MakeFeatureLayer_Management, forgetting about SelectLayerByAttribute. If someone can explain me my mistake, I would appreciate.
... View more
09-24-2012
09:35 AM
|
0
|
0
|
626
|
POST
|
Hi, It seems to work if you add makefeaturelayer arcpy.AddMessage("Making feature layer....") lay = arcpy.MakeFeatureLayer_management(lyr, "lyr") qry = "NAME = 'TEST'" arcpy.SelectLayerByAttribute_management (lay, "NEW_SELECTION", qry) Olivier
... View more
09-24-2012
08:07 AM
|
0
|
0
|
626
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|