Select to view content in your preferred language

Get image map with route arrayByte.

1941
4
02-21-2014 10:31 AM
rafaeloliveira
Emerging Contributor
Hello Guys okay!

I have a problem, I have a map with the route drawn, but I need that image is in ArrayByte to transform it into a jpeg image.
The problem is I can not use the component JMap, I'm doing this process runs in Batch therefore I can not use anything visual.
Anyone have any examples of how to solve this problem?

I was using the following example:
https://developers.arcgis.com/java/sample-code/point-to-point-routing/

But it did not work.

Anyone know another way to get a map of Brazil where I can go several different routes and it returns me a map with the route?

Thank you.
0 Kudos
4 Replies
SachinKanaujia
Deactivated User
If I understand the first part of you question correctly then you dont want any JMap interaction. You can always launch start your local server and launch a local service using the mpk you have. You dont need to so it via JMap. You can always use initializeAsync instead of adding it to JMap. For getting any image in a specific format you can always query you service with export option to export an image (look at rest api on how to form the request)

Rest API Reference
http://resources.arcgis.com/en/help/rest/apiref/

Sample request on the local runtime service
http://localhost:50000/arcgis/rest/services/WorldWeb.mpk/MapServer/export?bbox=-127.8,15.4,-63.5,60....


I did not understand the second part of you problem? what specific issues you are facing in routing?
0 Kudos
rafaeloliveira
Emerging Contributor
Sachin thanks for the reply and sorry for the delay.
I do not have the file  .mpk Map want to get me onlline map showing the routes I go for service.
But I do not want any interaction with a JMap is how to do this?
0 Kudos
SachinKanaujia
Deactivated User
You can use online map services like ESRI ArcGIS Online (use esri rest api to access) or WMS services which support GETMAP request to get image in specific format. Example

http://webhelp.esri.com/arcims/9.2/General/mergedProjects/wms_connect/wms_connector/get_map.htm
0 Kudos
rafaeloliveira
Emerging Contributor
Sachin okay!
Was out of the project and neither has to continue sorry for the delay.
But with this service I can export the map image in jpeg format correct?
That image that service returns as I draw the route on it?
I want to handle a route of the dynamical places and Brazil export this route on the map to draw a jpeg image

Is it possible to do this?
0 Kudos