POST
|
Hi Tom! I've been away on vacation for a couple of weeks now, before that I had problems with printing map services containing annotation layers with annotation sub layers, as you might remember. You made a fix for me that didn't worked for me, on your request I posted my log file and then I haven't got any reply. Have you had any time to look at it? /Mattias
... View more
08-09-2011
06:15 AM
|
0
|
0
|
926
|
POST
|
Robert, I just download tested the 2.3.2 version. I like the text rotation ability. Even though interactive rotation would be even better, but I understand there's limits in the API. However I don't know if it's only for me but the context menu item for removing objects is missing in this version, it was there in 2.3.1. I haven't done any customization to the widget yet, only localization in the ViewerStrings.properties... Speaking of localization, your drawwidget generally takes advantage of this just as the standard one which is great, but I noticed that in your widget the styles in the dropdown lists don't, but they do in the standard drawwidget. Is there a reason for this? or just something you've missed? It's easy for me to fix, just wanted to tell you. Edit: My mistake, now the context menu item for removing objects is back again, don't know why it wasn't there... however the localization thing is something you could inlcude in the next version I just copied the code from the style dropdown lists from the standard drawWidget and that works good. /Mattias
... View more
07-14-2011
12:30 AM
|
0
|
0
|
332
|
POST
|
There was a lot of log files there, this should be the latest, I guess it will be enough for you? This test server is a virtual server that I stop and start when I'm using it so the date and time isn't correct. 20110711 in the log files is today... Did you see the edits I made to my last post? I didn't saw that you had answered before I made those edits, probably should have written it in a new post. /Mattias
... View more
07-13-2011
01:39 AM
|
0
|
0
|
926
|
POST
|
Tom, I think there is something wrong with that latest jar file, when I'm using that one I can't restart/start any service that has the PrintSOE enabled, except my empty layout service. And can't make a print. Edit: Did some more testing. All my services except the layout is based on .msd documents, I published a couple of new services from the .mxd documents and I was able to enable the PrintSOE on them. My test service without annotation works fine, the one with annotation works but is low quality and the annotations are missing. Is that expected? Is that what you meant with "The sub-annotation-layers are currently ignored."?? In the lyr folder the lyr files seems to be good, there is 0.lyr, 5.lyr, 6.lyr and 7.lyr and all works in ArcMap so the number/names are correct and there's no lyr files for the annotations sublayers. But the .msd based services are supposed to work with the PrintSOE right? /Mattias
... View more
07-13-2011
12:17 AM
|
0
|
0
|
926
|
POST
|
Tom, I've tried the new jar file and now one lyr file is created for each layer id in the REST service, so there is one lyr file for all sublayers to the annotationlayer. But the print still doesn't work. I tried to open the lyr files in ArcMap and the first 0.lyr which is the lyr file for the entire AnnotationLayer works in ArcMap, but 1-4.lyr which are lyr files for annotation sublayers is not possible to open/add in ArcMap. (In ArcMap you can't create a lyr file from a sublayer to an Annotation, at least what I know). I'm attaching 0.lyr and 1.lyr I don't really know where to find the appropriate log files for ArcGIS Server, I always look at the log in ArcGIS Server Manager. I'm attaching messages from there as a simple html file. Thanks a lot for taking time to look in to this. /Mattias
... View more
07-12-2011
01:26 AM
|
0
|
0
|
926
|
POST
|
Tom, I think I know what the problem is, if I look at the REST-page of my service it indicates that it has 8 layers, because the first layer is an Annotation Layer which has four Annotation sublayers, so that is treated as five layers by REST page. However in ArcMap one Annotation Feature Class with four subtypes/annotationclasses is treated as one layer. I guess that's why only one lyr-file is created for layer 0-5 in my rest mapservice. I'm getting 0.lyr which is the whole annotation layer (id 0-4) and 1.lyr that is a Feature Layer with the id 5, and 2.lyr for the Feature Layers with the id 6 and so on... I have tested to create a new mapservice without the annotations and successfully created several PDFs from it together with other services that uses labels instead of annotations. But I need to be able to print mapservices that has annotationlayers with sublayers if I'm going to implement this print solution in my map application, and I would really like that, it's a great print solution you've made. Would it be possible to fix this? and if so I'm guessing it would be in the java code that I'm not familiar with at all?
... View more
07-11-2011
06:23 AM
|
0
|
0
|
829
|
POST
|
It feels like I'm going backwards with this, before I didn't got any errors in the flex application until the service timed out and the ArcGIS Server log showed the 'file not found error'. Now when I try to print from the flex application I get an 'Error during print!' at once. The ArcGIS Server log doesn't show any errors or warnings. But now every time I start or restart a service that has PCHPrintSOE enabled I'm getting the error: ERROR PrintTask().IOException: AutomationException: No such interface supported that doesn't sounds good to me at all... Anyway, trying to print in debug mode I can se urls like this: http://10.202.101.108:8399/arcgis/rest/services/layout/MapServer/exts/PCHPrintSOE/printMap?mapExtent={"xmin":1459087.998475997,"ymin":6549246.780543561,"xmax":1460612.001524003,"ymax":6549953.219456439,"spatialReference":{"wkid":3021}}&printOutput={"mapRotation":0,"pageUnits":1,"format":"pdf","exportSettings":null,"height":9.673913043478262,"width":20.869565217391305,"toRemoveLayoutElements":[],"resolution":92,"borderWidth":[0.5,0.5,0.5,0.5]}&mapElements=[]&layoutElements=[]&mapServices=[{"alpha":1,"visibleIds":"0,1,2,5,6,7","type":"AGS","url":"http://10.202.101.108:8399/arcgis/rest/services/BGK/BGKtest/MapServer","name":"testMap"}]
or if in the other state of the widget something longer like:
http://10.202.101.108:8399/arcgis/rest/services/layout/MapServer/exts/PCHPrintSOE/printLayout?mapExtent={"xmin":1459785.9770552877,"ymin":6549455.489437812,"xmax":1459885.9770552877,"ymax":6549598.989437812,"spatialReference":{"wkid":3021}}&printOutput={"resolution":100,"format":"pdf","exportSettings":null,"width":21,"height":29.7,"borderWidth":[0.5,0.5,0.5,0.5],"toRemoveLayoutElements":["*"],"mapRotation":0,"pageUnits":8}&mapElements=[]&layoutElements=[{"xOffset":0,"yOffset":0,"anchor":"bottomleft","symbol":{"size":48,"type":"pchNorthArrow"},"geometry":{"x":0.5,"y":0.5},"visible":true,"name":null},{"xOffset":0,"yOffset":0,"anchor":"topmid","symbol":{"text":"Title","textSymbol":{"angle":0,"color":{"green":0,"alpha":255,"blue":0,"red":0},"text":null,"font":null,"xoffset":0,"yoffset":0,"borderLineColor":null,"type":"agsJsonSymbol"},"type":"pchTextElement"},"geometry":{"x":10.5,"y":29.2},"visible":true,"name":"myTitle"},{"xOffset":0,"yOffset":0,"anchor":"bottomleft","symbol":{"barHeight":5,"type":"pchScaleBar"},"geometry":{"x":0.5,"y":0.5},"visible":true,"name":"myScaleBar"},{"xOffset":0,"yOffset":0,"anchor":"bottommid","symbol":{"text":"© copyright pch","textSymbol":{"angle":0,"color":{"green":255,"alpha":255,"blue":255,"red":255},"text":null,"font":null,"xoffset":0,"yoffset":0,"borderLineColor":null,"type":"agsJsonSymbol"},"type":"pchTextElement"},"geometry":{"x":10.5,"y":0.5},"visible":true,"name":"myCopyRight"},{"xOffset":0,"yOffset":0,"anchor":"topleft","symbol":{"mapUnits":8,"separator":":","pageUnits":9,"backgroundColor":{"green":255,"alpha":255,"blue":255,"red":255},"style":0,"numberFormat":{"roundingOption":0,"roundingValue":3},"pageUnitLabel":"","mapUnitLabel":"","type":"pchScaleText"},"geometry":{"x":0.5,"y":29.2},"visible":true,"name":null}]&mapServices=[{"alpha":1,"type":"AGS","url":"http://10.202.101.108:8399/arcgis/rest/services/BGK/BGKtest/MapServer","name":"testMap","visibleIds":"0,1,2,5,6,7"}]
And I've forgot to mention that I'm getting two warnings when compiling the flex widget: 1084: function 'getClass' will be scoped to the default namespace: BaseWidget: internal. It will not be visible outside of this package. PchPrintWidget.mxml /Hallsbergskartan_231_test/src/lu/etat/pch/gis/widgets/pchPrintWidget line 488 Flex Problem
3596: Duplicate variable definition. PchPrintWidget.mxml /Hallsbergskartan_231_test/src/lu/etat/pch/gis/widgets/pchPrintWidget line 469 Flex Problem And when running in debug mode I also get a lot of warnings like these: warning: unable to bind to property 'selected' on class 'Object' (class is not an IEventDispatcher)
warning: unable to bind to property 'popupClass' on class 'Object' (class is not an IEventDispatcher)
warning: unable to bind to property 'visible' on class 'Object' (class is not an IEventDispatcher)
warning: unable to bind to property 'label' on class 'Object' (class is not an IEventDispatcher)
warning: unable to bind to property 'editable' on class 'Object' (class is not an IEventDispatcher) /Mattias
... View more
07-08-2011
05:23 AM
|
0
|
0
|
829
|
POST
|
Tom, I updated the jar-file (just copied it and restarted my map services). Tried tp print again, and this time I only get one error for each print attempt in the arcGIS Server log. It's "downloadFile.FileNotFoundException: http://gisdev.hallsberg.se:8399/arcgis/server/arcgisoutput/BGK_BGKtest_MapServer/lyr/5.lyr" The thing is that this BGKtest mapservice I'm using for testing is a simple map with only 4 layers, one annotation, two line features and one polygon feature. In the arcgisoutput/BGK_BGKtest_MapServer/lyr/ folder there is four lyr-files (0,1,2,3.lyr). I can get all thoose running the wget (for example wget http://gisdev.hallsberg.se:8399/arcgis/server/arcgisoutput/BGK_BGKtest_MapServer/lyr/2.lyr). So to me it seems to be looking for a lyr-file that isn't supposed to be there. I also tried with my "real" map containing 105 layers, 105 lyr files are created, 0-104.lyr, but it is looking for a 105.lyr that doesn't exists. The client uses the ip-adress to access the services and that works, i'm getting map-images. the page http://10.202.101.108:8399/arcgis/rest/services/BGK/BGKtest/MapServer/export returns a valid url using the json format, here's an example:
{
"href": "http://gisdev.hallsberg.se:8399/arcgis/server/arcgisoutput/_ags_map392d5114a7cd11e08538080027ac2eb4.png",
"width": 400,
"height": 400,
"extent": {
"xmin": 1459300,
"ymin": 6549050.000000001,
"xmax": 1460400,
"ymax": 6550150.000000001,
"spatialReference": {"wkid": 3021}
},
"scale": 10393.679999999998
} And antoher problem I have is that sometimes I can't restart my services that I have enabled the printSOE on, I'm getting this error in the log: ERROR PrintTask().IOException: AutomationException: No such interface supported Thanks! /Mattias
... View more
07-07-2011
06:30 AM
|
0
|
0
|
829
|
POST
|
Hi Tom, thanks for your time! I used wget on my server and the first url (http://10.202.101.108:8399/arcgis/rest/services/BGK/BGKtest/MapServer?f=lyr&v=9.3) did return a lyr-file, though it wasn't defined as a .lyr just an unknown file. Second one (http://gisdev.hallsberg.se:8399/arcgis/server/arcgisoutput/BGK_BGKtest_MapServer/lyr/5.lyr) did not, it returned an error 404: Not Found. In my ArcGIS log file posted earlier there was errors for 0.lyr, 1.lyr, 2.lyr and 5.lyr. If a look in the .../arcgisoutput/BGK_BGKtest_MapServer/lyr/ folder there actually are lyr files 0, 1, 2, 3 and a copy of them all named like 1_layername.lyr and a layers_ALL.lyr So if I use wget to get one of them it returns a lyr file. All lyr files seems to be ok in ArcMap, I have to copy them to my computer and the data sources gets broken but if I repair them they seems to work as they should. Although they lyr files pointing to a arcgis mapservice doesn't work because outside the server the domain gisdev.hallberg.se isn't recognized I have to use IP-number instead, it's a test server and the domain isn't set up in our network yet, could this be a problem? I'm running the flex application from another server using the IP-number to access the services. the full path to my ArcGIS-server configuration directory is /opt/arcgis/server10.0/server/user/cfg /Mattias
... View more
07-07-2011
12:04 AM
|
0
|
0
|
829
|
POST
|
Hi Tom! I've been looking forward to look in to this print solution a long time (my users are frequently asking for something like it), and finally I've got an ArcGIS Server 10 up and running and the time to look in to this. I haven't been able to get this to work and have some questions that I haven't found an answer to in the forum. I tried to follow your quick installations steps, but couldn't run the soemanager.bat since my server is a linux server (SUSE 10). Anyway I looked at some documentation and it seems to be enough to just copy the .jar file to ".../java/lib/ext" and register it in ArcGIS Manager. I have successfully published my layout service and enabled the PCHPrintSOE and printMap, cleared the rest cache and got my PrintUrl. What about PCHExportSOE? am I supposed to enable that one to or not? Is it important to check both PCHPrintSOE and the printMap operation? Do I need to do this for all services that will be used? (or only the layout-service)? At first I enabled both PCHPrintSOE and PCHExportSOE, print didn't worked, the service timed out, the log filed showed some "PCHExportSOE.init ERRORS" so I disabled that one on all of my services and tried again, still doesn't work. This time the errors I'm getting in the log file are "downloadFile ERRORS". It looks like this: ERROR downloadFile.destination: /tmp/AGSLayer5160090355200531065.lyr 2011-07-06T14:50:51 layout.MapServer gisdev
ERROR downloadFile.fileUrl: http://10.202.101.108:8399/arcgis/rest/services/BGK/BGKtest/MapServer?f=lyr&v=9.3 2011-07-06T14:50:51 layout.MapServer gisdev
ERROR downloadFile.FileNotFoundException: http://gisdev.hallsberg.se:8399/arcgis/server/arcgisoutput/BGK_BGKtest_MapServer/lyr/5.lyr 2011-07-06T14:50:51 layout.MapServer gisdev
ERROR downloadFile.destination: /tmp/PCHPrintSOELayer1449693673605285143.lyr 2011-07-06T14:50:51 layout.MapServer gisdev
ERROR downloadFile.fileUrl: http://gisdev.hallsberg.se:8399/arcgis/server/arcgisoutput/BGK_BGKtest_MapServer/lyr/5.lyr 2011-07-06T14:50:51 layout.MapServer gisdev
ERROR downloadFile.destination: /tmp/PCHPrintSOELayer4366513632110866785.lyr 2011-07-06T14:50:50 layout.MapServer gisdev
ERROR downloadFile.fileUrl: http://gisdev.hallsberg.se:8399/arcgis/server/arcgisoutput/BGK_BGKtest_MapServer/lyr/2.lyr 2011-07-06T14:50:50 layout.MapServer gisdev
ERROR downloadFile.destination: /tmp/PCHPrintSOELayer6368293072691338280.lyr 2011-07-06T14:50:50 layout.MapServer gisdev
ERROR downloadFile.fileUrl: http://gisdev.hallsberg.se:8399/arcgis/server/arcgisoutput/BGK_BGKtest_MapServer/lyr/1.lyr 2011-07-06T14:50:50 layout.MapServer gisdev
ERROR downloadFile.destination: /tmp/PCHPrintSOELayer1586290742058941262.lyr 2011-07-06T14:50:49 layout.MapServer gisdev
ERROR downloadFile.fileUrl: http://gisdev.hallsberg.se:8399/arcgis/server/arcgisoutput/BGK_BGKtest_MapServer/lyr/0.lyr 2011-07-06T14:50:49 layout.MapServer gisdev Any idea what that means and what I could do to get this working? (My server is not public so I can't give you any urls to my service directory or something like that) /Mattias
... View more
07-06-2011
05:37 AM
|
0
|
0
|
896
|
POST
|
I Have the same problem, but the solution doesn't work for me. Using the suggested code results in an error: 1120: Access of undefined property numberOfStyleColors. I'm currently still in Flexviewer 2.1, maybe that's the reason?
... View more
05-05-2011
04:46 AM
|
0
|
0
|
449
|
POST
|
Jay, I'm not sure which problem you're referring to, I've mentioned at lest two in this thread 😃 First post was about the application didn't work at all on some computors even though they had flash player 10 or higher installed. I haven't done anything to solve this, but haven't heard of that problem from anyone for a long time now. Second post was about not being able to open the application at first but it worked when I opened a second browser window. That was something in my changes to my mapmanager.mxml, I don't know exactly what because I didn't got any errors in flashbuilder, but I changed back to some older code and rewrote it a bit different and got it working after that. Maybe this wasn't very helpful but it's all I can say.
... View more
04-19-2011
11:07 PM
|
0
|
0
|
478
|
POST
|
Any plans to add support for WFS in the API and the Flex Viewer? I would like to see that.
... View more
04-06-2011
07:03 AM
|
0
|
0
|
682
|
Title | Kudos | Posted |
---|---|---|
1 | 10-14-2015 01:59 AM | |
2 | 06-13-2024 12:31 AM | |
2 | 03-28-2024 01:07 AM | |
1 | 03-27-2024 04:09 AM | |
1 | 06-13-2024 12:22 AM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|