tag:blogger.com,1999:blog-4442573390356643522.post1877105998484525610..comments2023-08-24T05:14:56.831-04:00Comments on Thunderhead Explorer: Augmented Reality, iPhone and ArcGIS Serverthunderheadhttp://www.blogger.com/profile/09200852299600047243noreply@blogger.comBlogger28125tag:blogger.com,1999:blog-4442573390356643522.post-60011850988752493282012-04-27T16:29:20.050-04:002012-04-27T16:29:20.050-04:00This is a _very_ old app that has not been updated...This is a _very_ old app that has not been updated to the latest api - take the "spirit" of the app !thunderheadhttps://www.blogger.com/profile/09200852299600047243noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-27119104654361791512012-04-27T16:21:48.304-04:002012-04-27T16:21:48.304-04:00Hi Mansour, when I add the agslib swc to this flex...Hi Mansour, when I add the agslib swc to this flex app, I receive an error that the component SimpleMarkerSymbol is defined more than once in the namespace. Apparently, this component is defined within the flexapiutils.swc as well. How do I remove the redundancy without losing the math functions found in the utils.swc? Thanks!gisjameshttps://www.blogger.com/profile/16408467593004094107noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-17597719962466026512012-04-27T16:21:17.768-04:002012-04-27T16:21:17.768-04:00Hi Mansour, when I add the agslib swc to this flex...Hi Mansour, when I add the agslib swc to this flex app, I receive an error that the component SimpleMarkerSymbol is defined more than once in the namespace. Apparently, this component is defined within the flexapiutils.swc as well. How do I remove the redundancy without losing the math functions found in the utils.swc? Thanks!gisjameshttps://www.blogger.com/profile/16408467593004094107noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-79472116388538130382011-02-25T09:07:11.795-05:002011-02-25T09:07:11.795-05:00Sorry but I forgot to tell you that it's an iP...Sorry but I forgot to tell you that it's an iPhone application. I have been using ARkit ( https://github.com/nielswh/iPhone-AR-Toolkit) but it has the frames overlapping issues. Not able to get around it since long. Not sure where and what to modify...!!Paresh Masanihttps://www.blogger.com/profile/02122319061654042358noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-42037671641183490472011-02-25T08:01:27.931-05:002011-02-25T08:01:27.931-05:00Very interesting question - U can cluster the data...Very interesting question - U can cluster the data on the server side based on their distance and proximity and present clustered marker rather than individual markers. Now not sure, if u can do this, but when u tap on the clustered marker, it will list the cluster details.<br />Just an idea.thunderheadhttps://www.blogger.com/profile/09200852299600047243noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-21968330549444640172011-02-25T07:57:05.876-05:002011-02-25T07:57:05.876-05:00My AR application is very simple. Not doing anythi...My AR application is very simple. Not doing anything fency. I have few Map Points with Latitude, Longitude, title, subtitle, and image. I want to display them on AR View such that they don't overlap with each other when couple of MapPoints are close together. I am struggeling with framing a frame with different starting and ending points but not got around so far. Can you thinkg something that can be useful for me in this regards?Paresh Masanihttps://www.blogger.com/profile/02122319061654042358noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-18977567458230359032010-09-28T11:25:31.038-04:002010-09-28T11:25:31.038-04:00Glad u liked the UC preso - as to the GP error, no...Glad u liked the UC preso - as to the GP error, not sure what this error is :-( do u have more details - as to creating a web application, I use IntelliJ and has a web deployment environment - I know there is the same in eclipse - u might have to download the web tools platform (http://www.eclipse.org/webtools/)thunderheadhttps://www.blogger.com/profile/09200852299600047243noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-84175265734585204772010-09-28T09:37:28.843-04:002010-09-28T09:37:28.843-04:00Hi,
Thanks for the great AR application! I think ...Hi,<br /><br />Thanks for the great AR application! I think I also caught your UC2010 flex viewer session in San Diego :-) very motivating!<br /><br />But:<br />* the mapservice works, the py gp script runs, but I keep getting the "attribute strerror", which I think has to do with the in_memory workspace..? Any hints..<br />* Could you elaborate a bit more on the LayarWeb src and what steps (I use Eclips) I need to take to get a webapp running?<br /><br />BTW: I use ArcGIS 9.3.1 SP2.<br /><br />Thanks very much for any info!<br />JohanUnknownhttps://www.blogger.com/profile/16848592773636440140noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-79538479453193234412010-03-13T04:52:44.623-05:002010-03-13T04:52:44.623-05:00Just in case I forget, here are the specific prime...Just in case I forget, here are the specific primers needed to configure the gp task folder files:<br />1) Instead of just tossing all files into one folder <a rel="nofollow">GP Tool Share Folder Structure</a> use tooldata, scripts, doc, and scratch folders.<br />2) The GP task automatically creates, for a short time, any scratch spaces on the web server in the jobs folder; where any data is going to be written. it is a similar structure, but a different url, this image <br /><a rel="nofollow"> compares GP tool share folders to AGS file</a><br />3) The tooldata folder contains either non-sde gdb or <a rel="nofollow">connect.sde files</a> <br />4) I was having trouble with UNC's related to the script and toolbox. what worked for me is, open the toolboxes within arcmap, then test scripts in ArcMap. Copy the toolbox to the mxd location so it is in the web project url, find it in the username/applicationdata/esri/toolboxes folder. <a rel="nofollow">more on GP script tools</a><br />5) However, it is supposed to work as long as the SOC user is on the machine and has access. this is the toughest part so read: <br /><a rel="nofollow">Data access considerations for geoprocessing tasks</a><br /><br />Okay, that wraps it up.CheckMate808https://www.blogger.com/profile/13557076693110308918noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-19069303967001697132010-03-13T00:46:14.156-05:002010-03-13T00:46:14.156-05:00However, the sde file might be needed to point to ...However, the sde file might be needed to point to the path of the non sde gdb! Otherwise to make the sample app work, I placed all the files (gdb, HTML, swf, py) into one folder (layarapp) at the root of the web site. The py file pathing needs to use \\ foreach \ in the UNC format. If the file name root is a drive letter, an option is to replace each \ with / or backslash. <br />The basic poi flex app is now working. Yeah!<br /> I started off with a complex web file structure. Now that I switched to a simple web file structure and the app is working, I can work back to a more secure file structure. Nice, I am a fan of geoprocessing on the web. Thanks for helping me.CheckMate808https://www.blogger.com/profile/13557076693110308918noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-64579715004819215162010-03-12T13:16:10.339-05:002010-03-12T13:16:10.339-05:00if using .mxd to connect, then the .sde file is n...if using .mxd to connect, then the .sde file is not needed, if only the data service is created .sde file is needed and applies to all types of gdb. (note: these are often stored by arc catalog in the users name directory somewhere)<br />Unless someone is well versed in geoprocessing on a server, I found these links useful:<br />1)<a rel="nofollow"> Adding a New Service</a><br />2)<a rel="nofollow"> Using Python for the geoprocessing</a><br />3<a rel="nofollow"> Flex api - geoprocessing tasks</a><br />4)<a rel="nofollow"> All of the server related geoprocessing docs</a>CheckMate808https://www.blogger.com/profile/13557076693110308918noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-4632337346653000492010-03-12T06:09:13.525-05:002010-03-12T06:09:13.525-05:00Correct - and did it work ? BTW - did u setup the ...Correct - and did it work ? BTW - did u setup the correct connection string in the py script ? and added the .sde file ? make sure the grant SOC access to all that - AAAAAH the joys of working with AGS :-)thunderheadhttps://www.blogger.com/profile/09200852299600047243noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-35945944704254593592010-03-11T18:23:02.817-05:002010-03-11T18:23:02.817-05:00aah.. json string:
here is the correct format..tes...aah.. json string:<br />here is the correct format..tested it on your REST GP tool:<br />{"features":<br />[<br /> {<br /> "geometry":<br /> {<br /> "x":-157.8284740447998,<br /> "y":21.277835369110107<br /> },<br /> "attributes":<br /> {<br /> "ImageURL":"",<br /> "Type":0,<br /> "Line2":"",<br /> "Attribution":"",<br /> "Line3":"",<br /> "Line4":"",<br /> "Title":""<br /> }<br /> }<br />]<br />}<br /><br />this i pulled from the debug console using the tracetarget in the flex code.<br /><br />so that is good.CheckMate808https://www.blogger.com/profile/13557076693110308918noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-85987508876930467142010-03-11T17:19:34.088-05:002010-03-11T17:19:34.088-05:00what is the REST service expecting as far as forma...what is the REST service expecting as far as format? there is a text box with featureSet (GPFeatureRecordSetLayer) above it.CheckMate808https://www.blogger.com/profile/13557076693110308918noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-45887864842608135342010-03-11T12:17:10.563-05:002010-03-11T12:17:10.563-05:00Eh....do not recall this question :-( for right no...Eh....do not recall this question :-( for right now, I'm just using it for testing.thunderheadhttps://www.blogger.com/profile/09200852299600047243noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-80358510367738868912010-03-11T12:02:42.315-05:002010-03-11T12:02:42.315-05:00that's the right work flow. will do.
no pain...that's the right work flow. will do. <br /><br />no pain, no gain.<br /><br />the AGS/ GP using modeling or scripts, is a better solution than pure arcobjects... <br /><br />since it limits the people working on a problem to heavy programming and or for flex coding, to solutions like weborb. GP using modeling is more intuitive, and can help get things out of the black box for the clients.<br /><br />AGS/GP, as well as documentation, has matured, this is a great intro back into it... so thanks for the lesson.<br /><br />Layars, sign up ask which layers I am developing... ? testing or publishing is the only layers right, or do they want a description of an application?CheckMate808https://www.blogger.com/profile/13557076693110308918noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-3038801679666690682010-03-11T02:59:14.003-05:002010-03-11T02:59:14.003-05:00To test this - use ArcCatalog to author the Featur...To test this - use ArcCatalog to author the FeatureClass - next, use ArcMap to author the GP - execute the GP in arcmap first and make sure that u can add points to the feature class. Publish the Toolbox - use the REST directory service to navigate to that task and try to execute it from a browser - verify that the result is in the feature class - and now, u can execute it from the flex app without issues. sorry for all the pain - but that is AGS/GP for u :-(thunderheadhttps://www.blogger.com/profile/09200852299600047243noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-62308961749318057002010-03-11T00:55:29.587-05:002010-03-11T00:55:29.587-05:00okay.. I have two servers being used to figure thi...okay.. I have two servers being used to figure this out.. and realized there were more typos in the python script that i thought was the syntax... but now after much reading of python.. it's more obvious.. <br /><br />for this:<br />cursor = gp.searchcursor(rFC,"","","OBJECTID","OBJECTID D")<br /><br />mod to this:<br />cursor = gp.searchcursor(rFC,"","","OBJECTID")<br /><br />but maybe that second argument is needed.<br /><br />i had pointed the path to my gdb but left the r and didn't replace \ with / in my path:<br />rFC = r"C:\MyData\MyGeodatabase.gdb\Layar"<br /><br />as I am using access gdb should be kind a like this:<br />rFC = "C:\MyData\MyGeodatabase.mdb\Layar"<br /><br />But on my first test server i was able to add these and the previous changes... and Success... although my coordinate was stateplane not wgs84..<br /><br />but should be able to resolve this in the morning..<br /><br />cool home work.CheckMate808https://www.blogger.com/profile/13557076693110308918noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-23683354918132361092010-03-10T22:26:46.383-05:002010-03-10T22:26:46.383-05:00okay.. I need to try something else to trouble sho...okay.. I need to try something else to trouble shoot this.<br /><br />I will try and figure out a simple python script and see if i can figure out what is going on... <br /><br />oh, does the Layar feature class need to be in a feature data set? the reference to featureSet for the input is confusing.. but I do see this is required in the documenation.<br /><br />I was able to run the example you provided and add a point to your server... so i must be closeCheckMate808https://www.blogger.com/profile/13557076693110308918noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-43517101658550048482010-03-10T21:15:24.465-05:002010-03-10T21:15:24.465-05:00Good progress - the problem that I had was that th...Good progress - the problem that I had was that the script was not accessible to AGS - so had to grant SOC access to the scriptthunderheadhttps://www.blogger.com/profile/09200852299600047243noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-20713453370480106522010-03-10T21:01:47.690-05:002010-03-10T21:01:47.690-05:00okay.... a few mistakes on the poi creation for ar...okay.... a few mistakes on the poi creation for arcgis:<br />1) might have been a conflict with sdk's I was on 3.2; dropped in 3.5 so no longer was getting the flex error:<br />(TypeError: Error #2007: Parameter blendMode must be non-null....)<br /><br />2) i needed to edit the script to point to my geodatabase.<br /><br />3) had one or two typos on my side so fixed those.<br /><br />4) checked permissions on the arcgis server, however, this is not enabled, so my assumption is they are not needed. is that correct?<br /><br />also, checked permissions on the file system and checked groups and those are good for all users.<br /><br />so the error is: object has no attribute strerror, on the server for the script.. which is good.CheckMate808https://www.blogger.com/profile/13557076693110308918noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-15999219755887661532010-03-10T12:21:41.220-05:002010-03-10T12:21:41.220-05:00Make sure the permission are correct on CP scriptMake sure the permission are correct on CP scriptthunderheadhttps://www.blogger.com/profile/09200852299600047243noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-35252319682788281372010-03-10T12:12:16.838-05:002010-03-10T12:12:16.838-05:00running into an error when trying to "save&qu...running into an error when trying to "save" the point. do you think it matters if the geoprocessing task is accessing a personal geodatabase, a file geodatabase, or sde geodatabase?CheckMate808https://www.blogger.com/profile/13557076693110308918noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-87363510872263707892010-03-09T18:15:17.372-05:002010-03-09T18:15:17.372-05:00Eh...that is my private flex library with some uti...Eh...that is my private flex library with some utils in there ;-)thunderheadhttps://www.blogger.com/profile/09200852299600047243noreply@blogger.comtag:blogger.com,1999:blog-4442573390356643522.post-80764358146083714632010-03-09T18:10:26.072-05:002010-03-09T18:10:26.072-05:00Yes.. but just adding points is a pretty big deal....Yes.. but just adding points is a pretty big deal... have had to use arcobjects. I need to do more python scripting, so thanks for that.<br /><br />what is the flexapiutils.swc?CheckMate808https://www.blogger.com/profile/13557076693110308918noreply@blogger.com