POST
|
Hi Zachlui: I think I understand the problem. The following statement is from here (https://developers.arcgis.com/en/javascript/jsapi/kmllayer.html) To add a KML file(.kml or .kmz) to a map, the KML must be available via a publicly accessible URL. Locally hosted or KML files inside a firewall are not supported. thanks, Thanh
... View more
08-29-2013
07:19 AM
|
0
|
0
|
349
|
POST
|
Hi ZachLiu At beginning I cannot access the file from Google Earth either so I add MIME type: Extension: .kml MIME type: application/vnd.google-earth.kml+xml Extension: .kmz MIME type: application/vnd.google-earth.kmz Then Google Earth see it. But I still got the error from the Java Script above. Thanks, Thanh
... View more
08-29-2013
06:05 AM
|
0
|
0
|
349
|
POST
|
Hi All: I have a Python Toolbox that generate a KML (filename.kmz) and store it in the webserver directory. I can access the file from Google Earth. However, when I use this example (https://developers.arcgis.com/en/javascript/jssamples/layers_kml.html) from JavaScript resources I changed this line --> //var kmlUrl = "http://dl.dropbox.com/u/2654618/kml/Wyoming.kml"; to this --> var kmlUrl = "http://machine.test.com/filename.kml"; or to this --> var kmlUrl = "http://machine.test.com/filename.kmz"; and got this error: dojo.io.script error Error: File not found. Wrong url or out of memory. Note: In Google Earth I can display the two files above. What I am doing wrong? Thanks, Thanh
... View more
08-29-2013
04:46 AM
|
0
|
3
|
1490
|
POST
|
Hi Ahmed: Thank you. I found out several thing that is wrong. Note: I am using version 10.1 1. Parameter Data Types: I used "datatype keyword" it failed on the "Server" but it worked on the "Desktop- ArcMap". I found that with Desktop I can use both "data type" or "datatype keyword" but on the Server it only take "Data Type". Example I used ("Long" instead of "GPLong" or "String" instead of "GPString") 2. GDAL - is not working on ArcGIS Server: Installed GDAL both on Server and Desktop. I also installed the Python bindings for GDAL 1.8 (I think this is only for the desktop). This work fine on the Desktop but failed on the Server. It will failed on the sever with this statement "import osgeo". Thanks, Thanh
... View more
07-19-2013
07:17 AM
|
0
|
0
|
230
|
POST
|
Hi All: I am new to ArcGIS any help is appreciate. 🙂 I used ArcMap 10.1 to create Python Toolbox without any parameter. It ran successfully on desktop. I then published and ran successfully on Desktop using "GIS Server" and from the Web browser via REST service. I then add one parameter with type "GPString". Ran successfully on desktop but fail on desktop if using "GIS Server". It also failed on REST Service. Fail message is "Error executing tool: ERROR 000816: The tool is not valid". I then copy the sample "Calculate Sinousity" from the help page ran successfully on the Desktop but failed the same way. Thanks, Thanh
... View more
07-09-2013
07:22 PM
|
0
|
2
|
2257
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|