POST
|
Our website has a requirement to show different sublayers of a DynamicMapServiceLayer with different levels of transparency. We've achieved this by enabling dynamic layers, but the help page suggests that access is restricted to only the layers necessary to display the map. What's the worst a user could do now we've opened up this folder? The site is only available to authenticated users and the folder in question only contains OS shapefiles, not commercially-sensitive data.
... View more
11-16-2016
07:06 AM
|
0
|
0
|
422
|
POST
|
I don't know about Java, but have found Pycharm to be very good at working with Python, and Webstorm is good for Javascript and HTML. Any of the JetBrains family should work as they all share the same functionality. They contain a lot of features that I take for granted (e.g. duplicate line, CSS lookup) and are not available as standard in other IDEs (*cough* Visual Studio *cough*). The professional licence is very reasonable if you can persuade your company to pay for it. If not, the community edition seems to be just as good.
... View more
09-28-2016
05:48 AM
|
0
|
1
|
546
|
POST
|
I think you can just copy and paste the whole expression, e.g. If ( InStr( [APPARATUS1], "Ladder" ) <> 0 OR InStr( [APPARATUS1], "Tower" ) <> 0 ) Then My VB is a bit rusty though, I mostly use python these days.
... View more
07-18-2016
09:14 AM
|
1
|
0
|
764
|
POST
|
The LIKE keyword is for SQL queries. In VB, you need to do something similar to: If ( InStr( [APPARATUS1], "Ladder" ) <> 0 ) Then This is case sensitive; to make the comparison case insensitive, you can use: If ( InStr( LCase([APPARATUS1]), "ladder" ) <> 0 ) Then
... View more
07-18-2016
08:47 AM
|
0
|
0
|
764
|
POST
|
I've had many problems publishing GP Tools to server and never fully got to the bottom of them. Some days the analyser runs really slowly and some days it runs ok. All I can do is try it again and hope it works. I thought it might be to do with the load on the SDE server - if more users are connected, it takes longer - but that might have nothing to do with it. If it helps, here are some of the issues I had: Remove results from display before publishing - Arcmap claims data source is different when it isn't There is a bug at 10.2 where the data store is not used in python scripts - Published GP service is not using data store Builtin python modules are being copied to the server - Publishing GP service is very slow
... View more
07-15-2016
04:03 AM
|
1
|
0
|
447
|
IDEA
|
As a workaround, you could run a script to check the required fonts are installed. I wrote something similar a few years ago - here it is slightly modified. If you create a text file requiredfonts.txt with all the fonts you need, the script will check they are all present. @echo off setlocal enabledelayedexpansion reg export "hklm\software\microsoft\windows nt\currentversion\fonts" %COMPUTERNAME%fonts.reg if exist %COMPUTERNAME%fontsReg.txt del %COMPUTERNAME%fontsReg.txt /q if exist %COMPUTERNAME%fontsByDate.txt del %COMPUTERNAME%fontsByDate.txt /q :: look at fonts in registry :: for /f "tokens=1-2* delims==" %%a in ('type %COMPUTERNAME%fonts.reg') do ( if "%%~b" neq "" ( set FONTPATH=%%~b if "!FONTPATH!" equ "!FONTPATH::\=!" set FONTPATH=c:\windows\fonts\%%~b if "!FONTPATH!" neq "!FONTPATH:\\=!" set FONTPATH=!FONTPATH:\\=\! :: check if font is in fonts folder :: if not exist "!FONTPATH!" ( echo %%~a found in registry but not C:\Windows\Fonts ) else ( echo %%~b >> %COMPUTERNAME%fontsReg.txt for /f "tokens=*" %%c in ('dir "!FONTPATH!" /b/s/a') do ( echo %%a %%~tc >> %COMPUTERNAME%fontsByDate.txt ) ) ) ) :: check required list :: if exist requiredfonts.txt ( for /f "tokens=*" %%a in ('type requiredfonts.txt') do ( for /f "tokens=2 delims=:" %%c in ('find /i /c "%%a" %COMPUTERNAME%fontsReg.txt') do ( if %%c equ 0 ( echo %%a not found on %COMPUTERNAME%. ) ) ) ) pause endlocal goto :eof
... View more
07-08-2016
02:09 AM
|
0
|
1
|
714
|
POST
|
This is still a bug in 10.3. I found it on the support site and status is still New, so we'll have to keep using the workaround. NIM086862: Incorrect temporary path is returned through Add-In..
... View more
07-06-2016
02:41 AM
|
0
|
0
|
648
|
POST
|
I'm trying to create pie charts on the fly using ArcObjects (at ArcGIS 10.0) and it's mostly working, but ChartRenderer.CreateLegend() doesn't seem to be fully working. This sample here does most of what I want, and the legends in the TOC look kind of right. However, when I go into the layer properties then click OK to come out again, the values displayed in the TOC and the pie sizes change. I think the legend is not properly created until you click OK on the properties dialog. This is obviously not suitable for a programmatic approach, so does anyone have any ideas. I can't find any other samples or information beyond what is in the Esri API.
... View more
06-13-2016
04:48 AM
|
0
|
0
|
1664
|
POST
|
the service will use templates from the folder you chose in step#2. Does it copy all the templates in the folder? I didn't know that. Or set up an equivalent path on the desktop machine so we can get a GP result that can be published. I've put the templates on the server at d:\maps\exportwebmaptemplates, so I thought I'd need to create a d:\maps\exportwebmaptemplates folder on my desktop to put the templates in. Either that or edit the script after publishing. do you happen to have a NIM or BUG id for the above issue? can you pls share that with me. i'm not currently aware of any bug with output file name. I don't think Esri UK have entered it into Nimbus yet. I've asked for a status update, so I'll let you know when they get back to me.
... View more
06-06-2016
02:44 AM
|
0
|
1
|
1706
|
POST
|
Ok. Can we still use our custom map templates if just publishing the Export Web Map tool to our server? Sounds like we'd have to manually edit the template path after publishing. Or set up an equivalent path on the desktop machine so we can get a GP result that can be published. The script wrapper is needed anyway as a workaround to a bug where the export image filename is not returned. I've raised an issue with Esri UK support - CAS-17137-N6H0T4: Arcpy.ExportWebMap_server returns incorrect output file name.
... View more
06-03-2016
01:32 AM
|
0
|
3
|
1706
|
POST
|
An alternative is to publish a print service on your own server - then you can add custom templates with your company logo and all the elements you like. The script can be a simple wrapper for the ExportWebMap tool, like this:
import arcpy
Web_Map_as_JSON = arcpy.GetParameterAsText(0)
Format = arcpy.GetParameterAsText(1)
Layout_Template = arcpy.GetParameterAsText(2)
Layout_Templates_Folder = r'd:\maps\exportwebmaptemplates'
Output_File = None
result = arcpy.ExportWebMap_server(
Web_Map_as_JSON,
Output_File,
Format,
Layout_Templates_Folder,
Layout_Template
) Then just add the mxd templates to the folder on the server you've named above (in our case d:\maps\exportwebmaptemplates). When you publish the tool to the server, add all the template names to a choice list so users can just pick the one they want. Parameter: Layout_Template Data Type: GPString Display Name Layout Template Description: TODO Direction: esriGPParameterDirectionInput Default Value: MAP_ONLY Parameter Type: esriGPParameterTypeOptional Category: Choice List: [ MAP_ONLY, A3 Landscape, A3 Landscape Legend Only, A3 Landscape No Legend, A3 Portrait, A3 Portrait Legend Only, A3 Portrait No Legend, A4 Landscape, A4 Landscape Legend Only, A4 Landscape No Legend, A4 Portrait, A4 Portrait Legend Only, A4 Portrait No Legend, Letter ANSI A Landscape, Letter ANSI A Landscape Legend Only, Letter ANSI A Landscape No Legend, Letter ANSI A Portrait, Letter ANSI A Portrait Legend Only, Letter ANSI A Portrait No Legend, Tabloid ANSI B Landscape, Tabloid ANSI B Landscape Legend Only, Tabloid ANSI B Landscape No Legend, Tabloid ANSI B Portrait, Tabloid ANSI B Portrait Legend Only, Tabloid ANSI B Portrait No Legend ]
... View more
06-02-2016
02:18 AM
|
1
|
5
|
1706
|
POST
|
I've had this problem, where the publisher takes forever to publish a simple script, then I found it has imported lots of builtin python modules to the gp service folder. I managed to workaround it though, by changing my imports so only the functions I needed were imported. E.g. change "import module" to "from module import a, b, c, etc." This post pointed me in the right direction.
... View more
04-18-2016
02:05 AM
|
2
|
1
|
363
|
POST
|
On ArcGIS for Desktop, all your GP history can be found at%APPDATA%\ESRI\Desktop10.3\ArcToolbox\History, but where is the equivalent folder on Server? I'm running a python script that calls arcpy.Copy_management to copy datasets from one gdb to another. The copy is reported as a success, but the destination gdb is empty. I was hoping that if I looked at the tool history there might be some clues in there as to what is going wrong.
... View more
03-29-2016
03:03 AM
|
0
|
0
|
2023
|
POST
|
"During normal business hours". For Geonet, that seems to be Pacific time, even though the site is used by people from all over the world. If anything goes wrong with Geonet, us Europeans usually have to wait until mid-afternoon before anything is resolved.
... View more
03-21-2016
08:33 AM
|
0
|
0
|
129
|
POST
|
Sorry, I'm just doing this off the top of my head. Have you tried creating a IMaplexLabelStackingProperties object, adding separators, then adding it back into the overposter layer properties?
... View more
03-08-2016
04:05 AM
|
1
|
1
|
934
|
Title | Kudos | Posted |
---|---|---|
1 | 03-08-2016 04:05 AM | |
1 | 03-08-2016 02:37 AM | |
1 | 03-08-2016 01:51 AM | |
1 | 01-25-2016 02:08 AM | |
1 | 11-19-2015 01:43 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|