POST
|
Hi David, Thank you for responding to the Python error I posted on the Geonet forum. Please note that the code written in your book worked well when I rerun it. But I later discovered the cause of the error which was due to inappropriate use of the code indentation. For example, if you do not use the appropriate number of spaces as you have written in the book it will result into error. if you checked the error that I posted you will understand what I meant. Regards, Jeremiah.
... View more
09-23-2014
07:04 PM
|
0
|
5
|
642
|
POST
|
No I do not think so. This code was copied from the GIS tutorial for Python Scripting tutorial 1 example. Please note that the code is to be run ArcGIS 10.2. But I ran the code on ArcGIS 10.1 and it gave me error that I sent to the GeoNet forum site.
... View more
09-18-2014
03:18 PM
|
0
|
1
|
642
|
POST
|
Please let me know if the below code is right or not. if it is wrong can you please correct it for me. I changed the below code from the above titled book during learning Tutorial 1, which was titled "Use Python in the Label Expression dialog box". I am using ArcGIS 10.1 but the tutorial used ArcGIS 10.2. This is the original code from the text book. def FindLabel ( [OwnerName] 😞 rawName = [OwnerName] commaNum = rawName.find(",") formatName = rawName[commaNum+2:] + " " + rawName[:commaNum] return formatName When I run this above code I have this error "SyntaxError: invalid syntax (<string> , line 4" Can you please let me know the right code to use. I modify it to below code but still experience another error. def FindLabel ( [OwnerName] 😞 rawName = [OwnerName] commaNum = rawName.find(",") formatName = rawName(commaNum[2:]) + " " + rawName(commaNum[0:] return formatName Regards, Jeremiah.
... View more
09-17-2014
06:05 PM
|
0
|
12
|
3570
|
POST
|
Hi, Please I would like to know why HTML5 has not been applied with the ArcGIS API for JavaScript. For example the below HTML code is not HTML5. <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <title></title> </head> </html> I am expecting to see the new HTML5 structure. Although, I can see the "DOCTYPE html" which is the first statement of the HTML5. I am also expecting the "head" element to be "HEADER" Can you please explain why it was not implemented here. Best regards, Jeremiah.
... View more
06-01-2014
11:14 PM
|
0
|
1
|
517
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|