Select to view content in your preferred language

Advanced print solution

53754
296
02-19-2011 10:52 AM
TomSchuller
Frequent Contributor
Please find in the codegallery my first version of an advanced print solution:
http://www.arcgis.com/home/item.html?id=6809086326ea4c76bf026a32bb9dd698

The backend is developed in Java as a ServerObjectExtension: PChPrintSOE

The communication to the SOE is realized by the REST.
So, any client can be used Flex, Javascript, ...
I just created a simple FlexWidget.

Some features:
- full print over the rest api (usable by any client)
- export to pdf,jpeg,png,emf and mxd!
- view paper layout extent live on map
- make print on a "template" mapservice by keeping the predefined layout
- multi-mapservices/multi-server support
- add graphics on the map view positioned in map units
- add elements on the layout view positioned in paper units like scalebar, scaletext


The code is under full development:
- support for wms layer
- code clean up and reorganization

Any suggestions, remarques or help is welcome.

Live demo with public Esri mapservices (last print button):
http://gis.pch.etat.lu/flexViewerPrint/
   - use this print widget with your PChPrintSOE-enabled mapservices for high quality
   - draw first some graphics with the DrawWidget prior making your print (in mxd format)
Tags (2)
0 Kudos
296 Replies
TomSchuller
Frequent Contributor
The PChPrintSOE is running on both:
a .NET ArcGIS Server
and on a Java ArcGIS Server


New version with new functionalities:
- supports WMSLayer
- added NorthArrow
- added Legend
- bug fixes and code cleanup
0 Kudos
Stefanobruscoli
Emerging Contributor
Hello Tom
great news!!
Do you have a readme for setup in .net server
0 Kudos
TomSchuller
Frequent Contributor
you should check this thread:

http://forums.arcgis.com/threads/24059-Java-Print-SOE-Advanced-print-solution

Contains installation under .net and some updates
0 Kudos
TomSchuller
Frequent Contributor
Just uploaded a new version:

  • new flex code

  • new java code

  • support for adding Pictures in the layout view

  • support for adding TextElements in the layout view

  • exporting to ArcMAP PackageLayer (beta; format=mpk)

  • exporting to (Geo-)TIFFs (format=tif / format=tifw)

  • code reorganization

Download latest code (source+build) from:
http://www.arcgis.com/home/item.html...026a32bb9dd698
0 Kudos
DavidCaussin
Deactivated User
Hi everybody

I'm sure that it is a silly question but when i try to run the command

soemanager.bat -a [server name] [domain name] [username] [password] PCHarcgisSOE.jar"

I receive that error message

"java' is not recognized as an internal or external command"

What am i missing???

Thanks
0 Kudos
TomSchuller
Frequent Contributor
Hy,
it seems that tje "java" is not in your path.

You can check if java is in your path by executing "java -version" in the command promp.

If it's failing, add the "C:\Program Files (x86)\ArcGIS\Server10.0\java\jre\bin" directory to your path environment variable by executing:
set PATH="C:\Program Files (x86)\ArcGIS\Server10.0\java\jre\bin";%PATH%


Now, recheck the java path by executing "java -version"

If it's working now, you can run the soemanager.bat

Tom
0 Kudos
DavidCaussin
Deactivated User
Thanks a lot TOM

I seem to work, but now i have another problem with my username because here we use a name like this "caussin dv" and the space is a problem with the number of parameters.

Can i change that?

Thanks
0 Kudos
TomSchuller
Frequent Contributor
Try to pass your parameters with quotes, like:
 soemanager.bat -a localhost localhost "caussin dv"  myPassWord PCHarcgisSOE.jar


Tom
0 Kudos
Stefanobruscoli
Emerging Contributor
Tom
for me your link not work.
This work:
http://www.arcgis.com/home/item.html?id=6809086326ea4c76bf026a32bb9dd698

Mercator
the name server is a problem like Bjorn have write: no specials characters in name... test as described by tom
or you'll need to rename your server....
0 Kudos