|
POST
|
I feel your pain. This was a large hassle. Don't know about flex but this was helpful for me in js: Date.prototype.toFormattedDateString = function () { return isNaN(this) ? 'NaN' : [ _addLeadingZero(this.getUTCMonth() + 1), _addLeadingZero(this.getUTCDate()), this.getUTCFullYear() ].join('/'); }; Date.prototype.toFormattedDateTimeString = function () { return isNaN(this) ? 'NaN' : [ _addLeadingZero(this.getUTCMonth() + 1), _addLeadingZero(this.getUTCDate()), this.getUTCFullYear() ].join('/') + " " + _addLeadingZero(this.getUTCHours()) + ":" + _addLeadingZero(this.getUTCMinutes()) + ":" + _addLeadingZero(this.getUTCSeconds()); };
... View more
02-07-2012
10:54 AM
|
0
|
0
|
550
|
|
POST
|
What I'm finding is that if i click instead of clicking an dragging I am not even seeing the OnDraw event fired - meaning i cannot trap it like i am a click/drag. not good.
... View more
12-12-2011
12:10 PM
|
0
|
0
|
1103
|
|
POST
|
I'm experiencing the same issue. Using 2.1 i could click inside a polygon and it would select it. At 2.5 a click has no effect.
... View more
12-12-2011
11:55 AM
|
0
|
0
|
1103
|
|
POST
|
in my C# engine 10.0 application I have tools to allow users to add elements (north arrow, scale bar, scale text, text elements) to their page layout. My problem is that after adding them users are not able to select them using the 'Select Elements' tool included within engine. For all but the text elements tool i have followed the esri sample which places these items with this line: m_HookHelper.ActiveView.GraphicsContainer.AddElement((IElement)mapSurroundFrame, 0); I have found that if my user is in the map layout this call will error so i put a check in there to make sure active view supports IPageLayout. For the text element i had to build that tool myself and it is very similar but the add line is: m_HookHelper.ActiveView.GraphicsContainer.AddElement(element, 0); where element is IElement from a TextElementClass. That can be added to either the map or the layout. If i add it to the map then the 'Select Elements' tool will work with it. But not if it is on the Page layout view. Is all of this by design? Is there a different tool for selecting elements from the layout view?
... View more
09-28-2011
11:38 AM
|
0
|
0
|
854
|
|
POST
|
Thank you. That is a very helpful link. I also found the SymbologyControlColorRamps sample that is included with the sdk install. Both focus on polygon features only. I changed the esri sample to do away with the polygon filter but then when i apply the color ramp it will not display the layer. I'm guessing this is cause the sample code assigns a SimpleFillSymbolClass and that won't fly for points and lines. Guess i have some reworking ahead of me to get it to work for all geometries. thanks for the tip
... View more
08-16-2011
12:31 PM
|
0
|
0
|
526
|
|
POST
|
I have an engine app that i am converting from 9.3 to 10.0sp1 C# VS2010. In my old app i allowed users to change the symbology of layers using the Symbol Select sample code from esri. The problem i have now is that users want to also define category symbology which i believe is the same as the unique renderer color ramp setup. Is this code already written somewhere that i can just jack it? My symbol selector only loads the esri styles for single symbol it appears. Am i missing something?
... View more
08-16-2011
09:38 AM
|
0
|
2
|
720
|
|
POST
|
just switching to base32 didn't work for me. it allowed me to compile and run but it fundamentally changed my application, moving things around and messing up my toolbars.
... View more
08-15-2011
12:24 PM
|
0
|
0
|
584
|
|
POST
|
on a different machine i tried to just edit the base64 entries and make them base32. this got it to compile but when it ran it is not the same. all of the items in my map app are juxtaposed now.
... View more
08-15-2011
11:46 AM
|
0
|
0
|
1311
|
|
POST
|
Using the suggested microsoft fix did not work for me and now i can no longer build anything with studio. is there a way to reverse this? why is this still and issue over a year later?
... View more
08-15-2011
09:47 AM
|
0
|
0
|
1311
|
|
POST
|
I create a feature in my application, Oracle adds a date time stamp like DateTime.Now() via C#. I look at the date created inside of oracle and it looks fine. I then query my data with the rest api and i get back an epoch value (incidentally, where is that documented by esri?). I convert that epoch value and I get a UTC value. Or, I use the rest service test page and I get back the same UTC value. So here is that catch. I create my feature at 10am Eastern Time. Oracle says it was created at 10:00:01 AM. But when esri returns it to me it says it is 2011/04/06 10:00:01 UTC. Anyone see something wrong with that? Esri just assumed I was working in Greenwich England! Why is the time returned in UTC? Why would they make that assumption? Is there somewhere that I can tell the api what time zone i am in? I am using api 2.1 with ags 10 sp1 Am i missing something? It could be something very simple, but i am confused
... View more
04-06-2011
04:07 PM
|
0
|
3
|
3215
|
|
POST
|
In my experience this just does not work. And it doesn't appear that it was intended to work that way. in the documentation for the SearchCursor the spatialReference parameter is defined as: The Spatial Reference of the feature class if that param is designed to reproject the fc on the cursor then the doc is poor. Additionally, in the topic named "Setting a cursor's spatial reference" there is the following: By default, the spatial reference of the geometry returned from a search cursor is the same as the feature class opened by the cursor. You can also set the spatial reference on an update or insert cursor. which doesn't sound promising for SearchCursor. Based on some tests i did the spatial reference is not considered when creating the SearchCursor. I wish that it were jscheirer. I'm trying to get UTM15N measures for features that are in Web Mercator and that would be perfect for me.
... View more
02-16-2011
09:44 AM
|
0
|
0
|
1912
|
|
POST
|
The very latest issue i have been dealing with is converting a script that handled some shapefile exports using the fieldMap and fieldMappings objects in arcpy. Once again the issue was with case sensitivity. The aliasName, outputField, and name methods have to begin with lowercase as they are listed in the docs. No errors are thrown if you have the incorrect case making it tough to track down these kinds of bugs. My best advice is to go through the docs for each method you call and see if you have the case correctly spelled. the next() method is used on cursors so i would check that you have the exact spelling and case syntax when creating the cursor and using it.
... View more
02-08-2011
11:17 AM
|
0
|
0
|
1267
|
|
POST
|
I'm also having issues now with inserting dates into features that I add to ags via my SOE. If i insert a new record and set the date field to 01/09/2011 and then i turn around and query that feature i get the epoch format back which i convert to .... 01/08/2011. Is there a time zone issue going on or something? Perhaps someone who was involved with the changes in the date handling could throw together some notes or, say, documentation about what was done and how to deal with the new way of doing things?
... View more
01-13-2011
07:06 AM
|
0
|
0
|
2528
|
|
POST
|
The result set at 10 now also includes the data type of each return field in the alias collection that precedes the results. So now you cannot just ignore the data type and return it to the users eyes or else they will see that ugly date value. Now I'm wondering if there are other types that have been modified. Not pretty.
... View more
01-04-2011
09:53 AM
|
0
|
0
|
2528
|
|
POST
|
this is disappointing. and to find out this way doesn't make it any easier to swallow.
... View more
01-04-2011
09:41 AM
|
0
|
0
|
2528
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-03-2012 10:21 AM | |
| 4 | 01-02-2018 12:11 PM | |
| 1 | 01-04-2011 07:47 AM | |
| 2 | 09-05-2012 05:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|