POST
|
Thank you so much for providing me this solution! What you taught me: The ready () function is a pattern of requirejs and thus is called when all objects are created (that includes the pageone div so it made no sense to call that on(pageone, "pagecreate", PanelPlace); In the jquery mobile sample I found , it did not use requirejs and thus no call to ready() function and thus their script had logic to trap the pagecreate of that div using $(document).on("pagecreate", "#index", function(e)... Is this correct? Now since my PanelPlacer is called in ready () function [ a pattern of requirejs ] then I am not in a pagecreate event of that particular div object so 'this' is not right to reference here. Just use the div id. great so far. Now I am not 100% clear on the $("#myMapLayers").one("panelbeforeopen", function() particularly the .one - what is the .one( method - guess I'll google that. The calculation logic seems straightforward. Many of us are now in the scramble to rewrite our Silverlight custom ArcGIS application to ArcGIS javascript - I decided to use ArcGIS js with jquery mobile just so I am mobile ready and device independent, even if right now, my main goal is to build our apps for standard laptop devices. Once again, thank you very much for helping.
... View more
05-26-2016
07:58 AM
|
0
|
1
|
452
|
POST
|
this CODE works fine on a page with just Jquery mobile but with my ARCGIS JAVASCRIPT API AND REQUIRE JS, I don't know where to put this function and how to mix Jquery mobile with require js HELP <script> $(document).on("pagecreate", "#index", function(e) { var activePage = this; alert("in page create"); $("#myMapLayers").one("panelbeforeopen", function() { var screen = $.mobile.getScreenHeight(), header = $(".ui-header", activePage).hasClass("ui-header-fixed") ? $(".ui-header", activePage).outerHeight() - 1 : $(".ui-header", activePage).outerHeight(), footer = $(".ui-footer", activePage).hasClass("ui-footer-fixed") ? $(".ui-footer", activePage).outerHeight() - 1 : $(".ui-footer", activePage).outerHeight(), panelheight = screen - header - footer; $('.ui-panel').css({ 'top': header, 'min-height': panelheight }); }); }); </script> how do I write this and where when I have requirejs Sorry, I am a real NEWBY!
... View more
05-25-2016
12:30 PM
|
0
|
3
|
2226
|
POST
|
window server 2008 r2 64 bit. The script has been in place for several years - no issue. It seems that since that KB was installed and server was restarted, we now see these loadlibrary errors BUT the script still runs as you can see from the log messages I issue using the python print command. Plus, the work that needs to get done is being done without issue. Just do not like to see all these weird msgs Seems like I see each line for each Path entry in environment variable (not 100% sure though) Any clues???
... View more
03-21-2016
11:27 AM
|
0
|
0
|
1774
|
POST
|
Hey world! So my scripts have been tried-and-true for years until https://support.microsoft.com/en-us/kb/3126587 was installed on my production server. I re-installed Oracle client, I am able to run the script but now at the first line of my script that calls WCSS_SOURCE = "D:/SpatialAdapters/ArcCatalog/OLE DB ConnectionWCSS.odc/WCSS.DMJOB_EOWR_MV" try: print "now let us do the arcpy.exist function call" if arcpy.Exists(WCSS_SOURCE): print "Source Table Exists" now = datetime.datetime.now() print "Ended: " + str(now) + "\n" except: arcpy.AddError("Python Messages: " + arcpy.GetMessages()) I get these messages: D:\SpatialAdapters\DMJob Attachments>python simple.py GisBuild of DMJOB_EOWR Started: 2016-03-21 12:51:30.914000 now let us do the arcpy.exist function call LoadLibraryFromPath: FQ Dll C:\Windows\system\oci.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Windows\oci.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\PROGRAM FILES (X86)\ARCGIS\DESKTOP10.2\BIN\oci.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll D:\app\wellsgis-a\product\11.1.0\client_1\BIN\bin\oci.dll found LoadLibraryFromPath: FQ Dll C:\Windows\system\SQLLib80.dll is not found, error:0x7e LoadLibraryFromPath: FQ Dll C:\Windows\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\PROGRAM FILES (X86)\ARCGIS\DESKTOP10.2\BIN\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll D:\app\wellsgis-a\product\11.1.0\client_1\BIN\bin\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Program Files\HP\NCU\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Windows\system32\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Windows\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Windows\System32\Wbem\SQLLib80.dll is not found,error: 0x7e LoadLibraryFromPath: FQ Dll C:\Windows\System32\WindowsPowerShell\v1.0\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Windows\idmu\common\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Program Files\Microsoft SQL Server\100\DTS\Binn\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll d:\Python27\ArcGIS10.2\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Program Files\HP\HP BTO Software\lib\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Program Files\HP\HP BTO Software\bin\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Program Files\HP\HP BTO Software\bin\win64\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Program Files\HP\HP BTO Software\bin\win64\OpC\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Program Files\OmniBack\bin\SQLLib80.dll is not found, error: 0x7e LoadLibraryFromPath: FQ Dll C:\Program Files\1E\NomadBranch\SQLLib80.dll is notfound, error: 0x7e Source Table Exists Ended: 2016-03-21 12:51:37.154000
... View more
03-21-2016
11:02 AM
|
0
|
0
|
1774
|
POST
|
I have many python scripts running in windows scheduler. I do it by having a XXX.BAT or xxx.CMD that I call in the windows scheduler. the .bat or the .cmd has entry python mypython.py This works well for me.
... View more
09-25-2014
12:24 PM
|
0
|
2
|
494
|
POST
|
Ooopsy... silly me, I typed in a few extra stats by hand and had syntax errors.. More than one (semicolon) and missing semicolon between stats item... Never mind...
... View more
09-25-2014
11:22 AM
|
0
|
0
|
164
|
POST
|
I have this code: print " start running statistics analysis - task 2 for IHS" IHS_STATS_LIST="PRODUCTION_ID COUNT;OPERATOR COUNT;OIL_CUM SUM;OIL_CUM MAX;OIL_CUM MEAN;GAS_CUM SUM;GAS_CUM MAX;GAS_CUM MEAN;WTR_CUM SUM;WTR_CUM MAX;WTR_CUM MEAN;OIL_LATEST_MO SUM;OIL_LATEST_MO MAX;OIL_LATEST_MO MEAN;GAS_LATEST_MO SUM;GAS_LATEST_MO MAX;GAS_LATEST_MO MEAN;;WTR_LATEST_MO SUM;WTR_LATEST_MO MAX;WTR_LATEST_MO MEANOIL_YTD SUM;OIL_YTD MAX;OIL_YTD MEAN;GAS_YTD SUM;GAS_YTD MAX;GAS_YTD MEAN;WTR_YTD SUM;WTR_YTD MAX;WTR_YTD MEAN;TD MAX;TVD MAX" arcpy.Statistics_analysis(IHS_HM_Task2_In, IHS_HM_Task2_Out, IHS_STATS_LIST, "FID_RP_US_Counties") print " finished Task 2 for IHS at " + str(datetime.datetime.now()) But it fails...
... View more
09-25-2014
11:11 AM
|
0
|
1
|
3661
|
POST
|
I hear you but I just don't mind using DEFAULTS (infact I prefer to use this so I won't have to change all my python scripts) Regardless, here is the blurb about the change in GEOMETRY_STORAGE starting in 10.1... http://resources.arcgis.com/en/help/main/10.1/index.html#/SQL_Server_DBTUNE_configuration_parameters/002q00000019000000/ �?�Microsoft SQL Server Geometry type�??This is Microsoft's spatial type for managing spatial data defined by coordinates on an arbitrary plane and for which the curvature of the Earth is not a consideration. This is the default spatial storage method of geodatabases in SQL Server beginning with ArcGIS 10.1. Keep the GEOMETRY_STORAGE parameter set to GEOMETRY if you want to store your spatial data in this format. If the GEOMETRY_STORAGE parameter is not set, the GEOMETRY type is assumed. So, I am really trying to get some discussion going about performance using this default. I have found that it is much slower than SDEBINARY. Perhaps, I am missing something that must be set or configured so that my performance using GEOMETRY storage is faster.
... View more
02-05-2013
05:43 AM
|
0
|
0
|
539
|
POST
|
Hmm. That seems strange given that (at 10.1) default GEOMETRY_STORAGE is GEOMETRY. Anyway, I was able to get my featureclasses to use SDEBINARY simply by (1) Changing the DEFAULTS GEOMETRY_STORAGE config parameter to SDEBINARY (2) Re-running my Python script that creates the feature class(es) from our 3rd party data providers [In my case, I am lucky because my workflow includes this step to RECREATE all my feature classes]. Note: If what you are saying is true (Not sure why our ESRI technical guy did not alert me when I told him I was planning to run MIGRATE STORAGE to go from GEOMETRY to SDEBINARY) that migrate storage does not support migrating TO SDEBINARY, then folks should (a) Export data to some temporary file geodatabase, (b) Change DEFAULTS GEOMETRY_STORAGTE config param to SDEBINARY, then (c) copy all your data back to your geodatabase from the temporary file geodatabase. Just also thought I should SHARE with this community that I have found performance to improve by about 100% when I moved to SDEBINARY. My performance test was on a point featureclass of > 650,000 points drawn at full extent using the arcgis share as (wizard) to publish a map service, using the PREVIEW tool to indicate how many seconds it takes to load the map with this single feature class. Perhaps some ESRI geodatabase person can reply and tell us why this is the case. Curious why ESRI has decided to make default GEOMETRY_STORAGE = GEOMETRY for SQL SERVER when SDEBINARY is faster. Thanks, Anastasia
... View more
02-05-2013
05:14 AM
|
2
|
0
|
539
|
POST
|
Have you used the arc catalog migrate storage tool (found at data management tool - geodatabase administration) I tried to run in on my featureclass and get error message Messages Executing: MigrateStorage 'Database Connections\Connection to SIIHARDYDEV31.net.smith.com as gismaster.sde\WELLSGIS.GIS_MASTER.WG_BITREC' SDEBINARY Start Time: Wed Jan 30 15:01:20 2013 ERROR 000955: Error encountered migrating the database storage of Database Connections\Connection to SIIHARDYDEV31.net.smith.com as gismaster.sde\WELLSGIS.GIS_MASTER.WG_BITREC.. Function or option not implemented yet [WELLSGIS.GIS_MASTER.WG_BITREC] Failed to execute (MigrateStorage). Failed at Wed Jan 30 15:01:20 2013 (Elapsed Time: 0.00 seconds) Can someone help! PLEASE!!
... View more
01-30-2013
11:02 AM
|
0
|
5
|
3255
|
POST
|
Hi Jennifer, Implemented this PrintTask but it always returns e.Error Unable to complete operation. Details: Error executing tool.: Layer "BaseLayer": Unable to connect to map server at http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task). Can you tell me why? Note: The server that has ArcGIS Server installed has some weird rule that it cannot have INTERNET access. So when I login to that server I cannot hit http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer. Thus, I am suspecting that the Print Tool rest service fails on this layer because it cannot connect to it. Can you confirm that the Print Tool must have INTERNET connections in order for it to print BaseMap layers from arcgisonline. Also, how can I test my Print Task using rest interface: http://wellsgis.slb.com:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute Not sure what Web Map JSON I can paste into the box before clicking Execute Task (Get) I'd like to manual put a web map json from my internal map to at least test it out.
... View more
01-16-2013
01:23 PM
|
0
|
0
|
263
|
POST
|
Okay, I've learned a bit... It is true that FEATUREDATAGRID3, that comes with the arcgis api version 3 does not work with Silverlight 4. [Infact, it stopped working since arcgis api 2.4) Now, when we say Silveright 4, we don't mean the 'runtime' that is an add-on to your browswer. We mean the Silverlight_Developer and Silverlight_Toolkit (and optionally ExpressionBlend stuff) that constitutes the Silverlight controls that you will have as references in your Visual Studio 2010 project. Proof: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureDataGrid (these sampes are using arcgis api 2.4) Look at the FeatureDataGrid sample on Toolkit Controls from above link. It does not work (even if your runtime is Silverlight 5) because the application was built with the wrong combination of arcgis api and silverlight developer api. So if you have featuredatagrid3 in your own custom application You must install (upgrade all the silverlight items) that are required for Arcgsi api 3.0 (see installations page) http://resources.arcgis.com/en/help/silverlight-api/concepts/index.html#/Installation/016600000005000000/ And you MUST target the correct version of Silverlight in your Visual Studio project.
... View more
01-16-2013
01:16 PM
|
0
|
0
|
411
|
POST
|
Exception I get is: at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source) at ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid.SetItemsSource(IEnumerable`1 graphics) at ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid.UpdateItemsSource(Object sender, NotifyCollectionChangedEventArgs e) at ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid.Graphics_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item) at ESRI.ArcGIS.Client.GraphicCollection.InsertItem(Int32 index, Graphic item) at System.Collections.ObjectModel.Collection`1.Add(T item) at WellsGisLocal.MainPage.doSpatialSearch_QueryTask_WELLS_ExecuteCompleted(Object sender, QueryEventArgs args) I get this exception at this code line (when I am adding a Graphic to the GraphicLayer 'MyGraphicsLayer', which is a special layer that holds search results in my application. graphicsLayer.Graphics.Add(selectedFeature); My XAML has this: <esriToolkit:FeatureDataGrid x:Name="resultFeatureDataGrid" MinHeight="200" MaxHeight="400" Margin="5" GridLinesVisibility="All" HeadersVisibility="All" ClipboardCopyMode="IncludeHeader" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" AutoGenerateColumns="True" Map="{Binding ElementName=Map}" BindingValidationError="resultFeatureDataGrid_BindingValidationError" GraphicsLayer="{Binding ElementName=Map, Path=Layers.[MyGraphicsLayer]}" RowStyle="{StaticResource DataGridRowStyle1}" /> It used to work that when I populate MyGraphicsLayer with results from a QueryTask (looping through featureSet) FeatureDataGrid that is bound to Map for Layers.[MyGraphicsLayer] would automatically populate, and since upgrading to FeatureDataGrid3 (via the new ArcGIS Silverlight API) it no longer works.
... View more
01-14-2013
02:26 PM
|
0
|
0
|
411
|
POST
|
Dominque, Can you confirm if this is the case. I really don't want to change the API source so do you have another solution or can you tell me if a patch is coming shortly. Thanks,aa
... View more
01-14-2013
01:19 PM
|
0
|
0
|
411
|
POST
|
I too am having problems since upgrading to FeatureDataGrid 3.0. I'm not quite clear on what you are doing: I have this in my xaml: <esriToolkit:FeatureDataGrid x:Name="resultFeatureDataGrid" MinHeight="200" MaxHeight="400" Margin="5" GridLinesVisibility="All" HeadersVisibility="All" ClipboardCopyMode="IncludeHeader" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" AutoGenerateColumns="True" Map="{Binding ElementName=Map}" GraphicsLayer="{Binding Layers.[MyGraphicsLayer], ElementName=Map}" RowStyle="{StaticResource DataGridRowStyle1}" /> MyGraphicsLayer gets filled with a QueryExecuteTaskComplete from the args.FeatureSet.. I would clear the MyGraphicsLayer and then loop through Features in Featureset and do graphicsLayer.Graphics.Add(graphic) But this does not work any longer.
... View more
01-07-2013
02:02 PM
|
0
|
0
|
411
|
Title | Kudos | Posted |
---|---|---|
2 | 02-05-2013 05:14 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|