POST
|
Just wondering if it's possible (e.g. by altering the typeKeywords of an ArcGIS Online or Portal webmap) to exclude certain webmaps from being listed in Explorer for ArcGIS. We have a number of webmaps that we use in the Collector, that we don't want to see in Explorer (and vice versa). Simple reason for wanting this: convenience and simplicity for our end users. I can exclude webmaps from being listed in the Collector by removing the "Collector" typeKeyword from the webmap's json, but the other way round doesn't seem possible. Removing "Explorer Web Map" doesn't have any effect. Which keywords does Explorer use to determine which webmaps will be in its list of available webmaps? Thanks, Eva
... View more
10-21-2016
12:26 AM
|
0
|
0
|
836
|
POST
|
Hi all, We're currently using the Collector to track locations at an interval of 5 seconds. The location tracking service is hosted in ArcGIS Online. This works fine in most cases, but ideally we would like to reduce this further, to an interval of 2 seconds. I would be interested in any experience with such a small interval or any further thoughts on this subject. Thanks, Eva PS In case anyone's wondering, you can reduce the interval from the minimum of 30 seconds using the AGO Assistant.
... View more
07-26-2016
07:43 AM
|
0
|
1
|
530
|
POST
|
Yes, that was it... Somehow Google didn't find this blog for me. And I had missed the "share with everybody' step. Thanks!
... View more
12-14-2015
12:26 AM
|
0
|
0
|
416
|
POST
|
Just wondering if it's possible to reference an image which I uploaded to My Content, as a picture symbol in a hosted feature service layer. There's not much documentation about this. In theory this is possible as I can get a preview by going to the image's Item Details and clicking the image on the top right (""download archive"). The link this goes to is something like https://ago-item-storage.s3.amazonaws.com/c5443e0426724b87890c82db11b4234e/myimage.png?AWSAccessKeyId=AKIAJLEZ6UDU5TV4KMBQ&Expires=1449831704&Signature=4sw%2BFjCMPiWhr0Hu6InUqMG8O9c%3D This page indeed shows the image, but if it is indeed an "archive" there could be more than one version of the image. Anyway, the URL to the image on the "archive" page is something like https://myorg.maps.arcgis.com/sharing/rest/content/items/c5443e0426724b87890c82db11b4234e/data?token=M0Es-bWikUxzcYHGhYV2291WRgIbltQHYWBUE1HjBjXT45HKu8n-BHaMt231ezWkBhi-2fBFIjl6O6FZXvXieBWB9i90RfxYXCsKYW68W43RIug3UiOH_K2lvfYIVgR7_dpkBWJQiRglGTBis2_K-SEkvB7n8X4Rqp4-F-HTZTqvsSOC7wYeN_sqkneaMpG7 Here's the problem: Both URLs reference the image correctly but feature a token, which can expire! Can I get a permanent reference to the image, so I can use this as a picture symbol? (Note that I'm aware of the following solutions: 1) upload the image elsewhere on the internet, 2) reload the service definition from ArcMap. I'm just curious if this can be done this way, as I think it could reasonably be expected.) Cheers, Eva
... View more
12-11-2015
03:08 AM
|
0
|
2
|
2932
|
POST
|
Hi all, I have a peculiar problem with posting data via the /applyEdits rest endpoint to a service in ArcGIS Online. The feature contains a string attribute "LOG_OPM" which contains the following text: "kast 1 richting 2 3 A Groen <dub ov> vervangen nacht" (double quotes added for clarity) When posting this as an update through the applyEdits endpoint, the following error is returned: Field LOG_OPM has invalid html content Obviously this is not meant to be HTML but the parser thinks it is. Escaping the < and > like this: "kast 1 richting 2 3 A Groen \u003cdub ov\u003e vervangen nacht" results in the same error. How should I escape or encode this string so that the parser stores it properly without thinking it's invalid HTML? This is part of a C# application, I should add. Thanks in advance, Eva
... View more
10-29-2015
07:33 AM
|
0
|
6
|
6459
|
POST
|
I had the same problem with ArcMap 10.2.2 just now - sometimes the Fiddler option worked, but none of the other suggestions above helped. I finally managed to upload the service from within ArcGIS Online: I first staged the service with ArcMap, then logged into AGOL (in browser), go to My Content, choose Add Item and select the saved service definition. You can select to publish the SD as a service immediately. This worked.
... View more
07-30-2015
01:22 AM
|
0
|
0
|
551
|
POST
|
Hi all, I'm developing a lengthy process where I'm running three separate geoprocessing tools from an ArcMap (10.0) command inside a separate STA thread. I'm doing it this way so I can have my process return feedback messages to my UI (probably other ways of doing this but I have my reasons, so bear with me). For each geoprocessing tool I'm defining a new ESRI.ArcGIS.Geoprocessor.Geoprocessor, which then runs the tool (SpatialJoin, then Select, then Intersect): SpatialJoin spatialJoin = new SpatialJoin(); [define spatialJoin parameters...] Geoprocessor geoprocessor = new Geoprocessor(); geoprocessor.AddOutputsToMap = false; geoprocessor.OverwriteOutput = true; geoprocessor.Execute(spatialJoin, null); The process runs without error or issue inside the new thread - but only the first time. The thread ends properly once it's finished running. The trouble starts when I'm running the same process a second time (without restarting ArcMap). It starts the separate thread again, but then fails executing the first geoprocessing tool, stating "COM object that has been separated from its underlying RCW cannot be used." When I list the messages inside the Geoprocessor, it lists the messages from the last tool it ran (i.e. the Intersect from the first time)! It seems that somewhere it keeps a reference to some kind of internal geoprocessing object. I should add that the process running inside the new thread does not use any objects from the main thread (including database connections) and is therefore completely self-contained. I have tried adding this and it did not help: geoprocessor.ResetEnvironments(); This didn't help either: IGeoProcessor processor = geoprocessor.IGeoProcessor; Marshal.ReleaseComObject(processor); I thought this might help, but I'm not running ArcEngine: https://sites.google.com/site/tosapage/programming/esri#MultiThread So the question is: how can this be solved....? Thanks in advance, Regards, Eva
... View more
05-15-2013
04:26 AM
|
0
|
1
|
2298
|
POST
|
OK, this is very useful! I'll need to delve a little deeper into all this angle/coordinate stuff, obviously... My scene uses a projected coordinate system so it's set to "Scene CS (meters)". In any case, *.ox is always 0 or -0, but*.oy can be used to calculate the orientation of the first edge. Geometry.angle(azimuth) can indeed also be used. Anyway, even if it's not completely clear to me yet, I can at least solve my problem! Perhaps this stuff is quite obvious to 3D cracks but a newbie like me would be quite happy with more elaborate explanation in the Help file... 😉 Thanks again for taking the time!
... View more
03-20-2013
03:06 AM
|
1
|
0
|
504
|
POST
|
Yes - this makes 95% sense. I've since worked out that based on the value of initialShape.origin.oy I can work out which direction the first edge is facing. This means I then know where the x and z-axes of the shape lie. When I add an attribute FRONT_ORIENTATION to my source data with the direction the front of the shape *should* be facing, I can work out how to initially split the building (along x or z) to create a front and a back part in the model. attr FIRSTEDGE_ORIENT_Y = initialShape.origin.oy attr FIRSTEDGE_ORIENTATION = case FIRSTEDGE_ORIENT_Y > 0 && FIRSTEDGE_ORIENT_Y <= 90 : "SE" case FIRSTEDGE_ORIENT_Y > 90 && FIRSTEDGE_ORIENT_Y <= 180 : "NE" case FIRSTEDGE_ORIENT_Y <= 0 && FIRSTEDGE_ORIENT_Y > -90 : "SW" case FIRSTEDGE_ORIENT_Y <= 90 && FIRSTEDGE_ORIENT_Y > -180 : "NW" else : "" The 5% that isn't yet making sense: why is it initialShape.origin.oy providing me with this angle (and not ox or oz)? And why are ox and oz either 0 or -0?
... View more
03-18-2013
05:11 AM
|
0
|
0
|
504
|
POST
|
Here's something I haven't yet been able to figure out. I'm importing simple building footprints from FGDB into an empty scene. Although I have no street network, I do know what direction each model should face (in other words, which side of the model should be the front).This I'm trying to model based on the shape's first edge. Trouble is that the placement of the origin (and therefore first edge) of each shape seems completely arbitrary. I would have thought it had something to do with the order of vertices of the 2D shapes, but I can't work out any logic - see attached image, which is a composition of 4 shapes from ArcMap showing vertices. I manually painted in purple lines where CityEngine places the first edge. This is a problem, since I don't want to set the first edge of each footprint manually (it's a lot of houses). Besides, "set first edge" doesn't always seem to persist if I regenerate a lot of models. Exports to FGDB and KML also show random behaviour with origin placement. So my question is: how does CityEngine work out where to put the origin of a shape imported from FGDB? Can I solve this problem in another way than manually setting each first edge? Thanks Eva
... View more
03-13-2013
04:09 AM
|
0
|
4
|
1938
|
POST
|
We have built a Silverlight app (2.4 API on IIS7) that is capable of exporting the visible map extent including all map layers and graphiclayers to a PNG image. To do this, we export the Grid the map is in to a WritableBitmap, like this: private static byte[] GridToByteArray(UIElement grid) { var writeableBitmap = new WriteableBitmap(grid, null); writeableBitmap.Invalidate(); var pngStream = Encode(writeableBitmap); var printBuffer = new Byte[pngStream.Length]; pngStream.Read(printBuffer, 0, printBuffer.Length); return printBuffer; } The Encode() function uses PngEncoder.cs which is applied unmodified from http://slextensions.codeplex.com/. This works well, provided that all layers from outside the domain go through a Proxy.ashx. If we don't use a Proxy, we get a "WriteableBitmap has protected content. Pixel access is not allowed" error. The proxy.ashx we use is unmodified from http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jshelp_start.htm#jshelp/ags_proxy.htm. Its Proxy.config file has of course been modified to use the <ServerUrls> we need. So far this solution works well with ArcGIS Tiled and Dynamic layers from outside of the domain. The trouble is that we want to use WMS layers as well. I can't get this to work with the Proxy. if I add e.g. the serverUrl <serverUrl url="http://geoservices.rijkswaterstaat.nl/nwb_wegen?" matchAll="true"></serverUrl> The layer displays fine when going through the proxy: <esri:WmsLayer ID="NWB Wegen" Url="http://geoservices.rijkswaterstaat.nl/nwb_wegen?" SkipGetCapabilities="False" Layers="AAA64" Version="1.1.1" ProxyUrl="http://localhost/Proxy/proxy.ashx" /> But when exporting, this layer continues to give the "WriteableBitmap has protected content. Pixel access is not allowed" error. Does the Proxy.ashx need to be modified to allow for this? If so, how? Is the Proxy.config OK like this? Is it even possible?? Thanks in advance, Eva
... View more
11-16-2012
01:38 AM
|
0
|
0
|
1865
|
POST
|
Hi Dale, For addins you can create an add-in component class of type Dockable Window but not of type ContentsView, if you want to create a custom ContentsView you'll probably have to use a com-registered class like in 9.3 except that it needs to implement IContentsView3. If you're working with Addins you're familiar with the ArcMap.Application oject, since this is an IApplication it should allow you to find existing ContentsViews including the TOC through the MxDocument object. But I'm guessing a bit - not that much experience with add-ins. Eva PS haven't managed to solve the Visibility issue yet, though. Still wondering if this is a bug.
... View more
10-27-2010
04:45 AM
|
0
|
0
|
157
|
POST
|
No, that isn't necessarily true - but FYI, I managed to solve my own problem. When specifying a connection to a SQLExpress database through "Database Servers" in ArcCatalog, it uses the current Windows login to make the connection (there is no way to specify a login). For some reason, it needs to validate the login name with the domain. When the error occurred, I wasn't connected to my work domain. It's the login that fails (with the above error). This I think is strange because I can connect to the same database using SqlServer Management Studio, and this connection does not validate my login with the domain. Apparently this is something ESRI-specific? The solution is to add a new Login to the SQLExpress instance in SqlServer Management Studio (based on SQL Server Authentication). Make sure you can log in to the instance with both Windows and SQL Server authentication. Give this user the appropriate rights. Then specify a Database Connection in Catalog as follows: Server: [mymachine] Service: sde:sqlserver:[mymachine]\sqlexpress Database: [A geodatabase in this instance] For username and password, specify Database Authentication and the created Login. Change the transactional version to dbo.DEFAULT if necessary.
... View more
10-06-2010
03:51 AM
|
0
|
0
|
336
|
POST
|
Hello all, For development purposes I recently installed ArcSDE workgroup 10 on my machine, running on SQLServer Express. This worked, and I could connect to my database server fine through ArcCatalog, I had one geodatabase in this instance which I could use without issues. Recently I added a database to the SQLExpress instance through SQLServer Management Studio, as I want to use the SQLExpress instance for other (non-SDE) databases as well. Since then (or it seems since then) I can't connect to my SQLExpress instance through Catalog anymore. It says "Cannot connect to the database server, Failed to connect to database server" when I try. All I really did was create a new database and set some access rights on it. This should apply to the individual database and not the instance, so I don't understand why I can't use the instance over SDE anymore. I can't work out if it's something I did through SQLServer Management Studio (something user/authentication-related), or if I'm completely on the wrong track here. Any suggestions as to what I might check or try out?
... View more
10-01-2010
12:15 AM
|
0
|
2
|
3094
|
Title | Kudos | Posted |
---|---|---|
1 | 03-20-2013 03:06 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|