POST
|
Tom Yes, my problem is still present. I don't want you to spend all you holidays working on that, but I'm very thankful if you could find some time to look at it. 🙂 /Mattias
... View more
09-07-2011
11:08 PM
|
0
|
0
|
910
|
POST
|
Lloyd, great widget! thanks for sharing it. I managed to implement the source code in to my project, haven't made any customizations yet. Right now I just wanted to try it out, but for later projects I might want to use another data source than a mapservice from ArcGIS Server, lets say I get some point data somehow and put them into a graphiclayer for example. How much rewriting of the source code would I have to do to use that as an input instead? I haven't look at the code much yet but I'm guessing it will be really tricky for someone with limited knowledge of flex/actionscript. /Mattias
... View more
08-18-2011
05:39 AM
|
0
|
0
|
634
|
POST
|
Tom, You'll find everything in the attached zip-file, logs, mxd-files, pdf-files and URLs. Thanks! /Mattias
... View more
08-17-2011
06:21 AM
|
0
|
0
|
813
|
POST
|
Tom, Good to know that it's the mxd documents that is used, but it's supposed to work when using .msd documents if there's also a corresponding .mxd document? right? I do have both mxd and msd, and it did work before the annotation fixes on mapservices without annotations, but now it doesn't. And concerning the layout elements I meant the elements that comes from the flex widget, not anything in my mapservice. That also worked before but not anymore, it isn't even possible to get a portrait PDF. I'm attaching two pdf examples one from before and one from today, and I think you'll get what I mean. I tried to use fiddler to see the URL and all parameters that are sent from the flexWidget, I'm not familiar with fiddler but I think theese are the parameters in the URL: mapExtent {"xmin":1459779.8223054777,"ymin":6549481.999576666,"xmax":1459879.8223054777,"ymax":6549625.499576666,"spatialReference":{"wkid":3021}}
layoutElements [{"symbol":{"type":"pchNorthArrow","size":48},"visible":true,"name":null,"geometry":{"x":0.5,"y":0.5},"yOffset":0,"xOffset":0,"anchor":"bottomleft"},{"symbol":{"textSymbol":{"borderLineColor":null,"xoffset":0,"type":"agsJsonSymbol","angle":0,"yoffset":0,"text":null,"font":null,"color":{"green":0,"alpha":255,"blue":0,"red":0}},"type":"pchTextElement","text":"Title"},"visible":true,"name":"myTitle","geometry":{"x":10.5,"y":29.2},"yOffset":0,"xOffset":0,"anchor":"topmid"},{"symbol":{"barHeight":5,"type":"pchScaleBar"},"visible":true,"name":"myScaleBar","geometry":{"x":0.5,"y":0.5},"yOffset":0,"xOffset":0,"anchor":"bottomleft"},{"symbol":{"textSymbol":{"borderLineColor":null,"xoffset":0,"type":"agsJsonSymbol","angle":0,"yoffset":0,"text":null,"font":null,"color":{"green":255,"alpha":255,"blue":255,"red":255}},"type":"pchTextElement","text":"�?© copyright pch"},"visible":true,"name":"myCopyRight","geometry":{"x":10.5,"y":0.5},"yOffset":0,"xOffset":0,"anchor":"bottommid"},{"symbol":{"numberFormat":{"roundingOption":0,"roundingValue":3},"pageUnitLabel":"","mapUnitLabel":"","mapUnits":8,"type":"pchScaleText","backgroundColor":{"green":255,"alpha":255,"blue":255,"red":255},"pageUnits":9,"separator":":","style":0},"visible":true,"name":null,"geometry":{"x":0.5,"y":29.2},"yOffset":0,"xOffset":0,"anchor":"topleft"}]
mapElements []
f json
printOutput {"mapRotation":0,"width":21,"height":29.7,"resolution":100,"pageUnits":8,"toRemoveLayoutElements":["*"],"format":"pdf","exportSettings":null,"borderWidth":[0.5,0.5,0.5,0.5]}
mapServices [{"name":"BGKtest_mxd","alpha":1,"visibleIds":"0,1,2,5,6,7","type":"AGS","url":"http://10.202.101.108:8399/arcgis/rest/services/BGK/BGKtest_mxd/MapServer"}] /Mattias
... View more
08-16-2011
03:46 AM
|
0
|
0
|
813
|
POST
|
Tom, Thanks for all your help, the annotation problem seems to be solved now, I was able to export a PDF with annotations. But I'm still having other problems that occured a long the way. I still can't enable the PCHPrintSOE on any mapservice that is based on a .msd document, the services just can't be started with that capability checked. And when trying with the .mxd based services the result does not include any layout elements and the scale is not what it's supposed to be. Don't know if this layout thing is SOE or Flex problem, but haven't changed anything to the flex part and that worked before... /Mattias
... View more
08-15-2011
11:11 PM
|
0
|
0
|
813
|
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
|
809
|
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
|
281
|
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
|
809
|
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
|
809
|
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
|
809
|
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
|
716
|
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
|
716
|
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
|
716
|
Title | Kudos | Posted |
---|---|---|
1 | 10-14-2015 01:59 AM | |
1 | 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 |
7 hours ago
|