Select to view content in your preferred language

Is there a widget with Profile Graph Tool?

2542
8
Jump to solution
07-22-2013 05:14 AM
RokCiglic
New Contributor III
Hi!
I am looking for a widget that would give an option of making a profile graph. Is there any available. I have a application with different raster layers and I would like that users draw a line and get a profile graph.
Thank you for any advice!
Rok
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Frequent Contributor II
Rok,

I have only used the .net SOE so cannot comment of the java.

Your URL in the widget does not look correct as it should end in getelevations, try:

http://gismo.zrc-sazu.si:6080/arcgis/rest/services/test/test_tem/MapServer/exts/ElevationsSOE_JAVA/E...

Regards

Anthony

P.S. I tried a test against your service through the REST endpoint at it is returning a temperature value, see:

http://gismo.zrc-sazu.si:6080/arcgis/rest/services/test/test_tem/MapServer/exts/ElevationsSOE_JAVA/E...

View solution in original post

0 Kudos
8 Replies
GISDev1
Occasional Contributor III
Hi!
I am looking for a widget that would give an option of making a profile graph. Is there any available. I have a application with different raster layers and I would like that users draw a line and get a profile graph.
Thank you for any advice!
Rok


Elevation profile widget
http://www.arcgis.com/home/item.html?id=b9d247c297f144459854751740f59f68
0 Kudos
RokCiglic
New Contributor III
Thanks, but can I use other data indstead of elevation. I have air temperature data (raster) and I want to make profile with this data.
0 Kudos
GISDev1
Occasional Contributor III
Thanks, but can I use other data indstead of elevation. I have air temperature data (raster) and I want to make profile with this data.


Yes, of course you can.
0 Kudos
RokCiglic
New Contributor III
I saw widget's xml file and noticed that file for which profile is built is:
<elevationSOEURL>http://sampleserver6.arcgisonline.com/arcgis/rest/services/Elevation/WorldElevations/MapServer/exts/...</elevationSOEURL>

Does SOEURL mean that you have to use server object extension ( http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/What_is_a_server_objec... )

I'm not familiar with SOE and don't have software. Is there any easier way?
0 Kudos
AnthonyGiles
Frequent Contributor II
Rok,

The SOE can be downloaded here, it has instructions for deploying which is vey simple:

http://www.arcgis.com/home/item.html?id=60bf17f2d59441839135adc25654a7d9

Regards

Anthony
0 Kudos
RokCiglic
New Contributor III
Thanks for the advice!
I intalled ElevationsSOE (I installed SOE for JAVA, should I installed also SOE for NET??) and I can see it and can check it in my Services --> Capabilites menu.

I also import Elevation Profile widget into AppBuilder. I made this settings (see below) in Elevation profile widget, but when I try my application it says:
"A problem occured while parsing and charting the returned elevation data Error #1010"

I use map temperatures instead of elevation, but this shouldn't be a problem (values are between 12 and 26!).

Is it something wrong with this SOEURL or widget code?

<configuration>
    <elevationSOEURL>http://gismo.zrc-sazu.si:6080/ArcGIS/rest/services/test/test_tem/MapServer/exts/ElevationsSOE_JAVA</elevationSOEURL>
    <profileLineWidth>2</profileLineWidth>
    <profileLineColor>0x000099</profileLineColor>
    <description>Draw a line with the tools below; ArcGIS will create an temperature profile chart for it.</description>
    <chartTitle>Temperature Profile</chartTitle>
    <baseChartAtZero>true</baseChartAtZero>
    <unitsAndLabeling>
        <elevation>
            <label>
                <chart>degrees</chart>
                <dataTip>C</dataTip>
            </label>
            <multiplyByToConvertFromMeters>1</multiplyByToConvertFromMeters>
        </elevation>
        <distanceAlongPath>
            <label>
                <chart>kilometers</chart>
                <dataTip>km</dataTip>
            </label>
            <multiplyByToConvertFromMeters>0.001</multiplyByToConvertFromMeters>
        </distanceAlongPath>
    </unitsAndLabeling>
    <template-ignoredByCode>
        <unitsAndLabeling>
            <elevation>
                <label>
                    <chart/>
                    <dataTip/>
                </label>
                <multiplyByToConvertFromMeters/>
            </elevation>
            <distanceAlongPath>
                <label>
                    <chart/>
                    <dataTip/>
                </label>
                <multiplyByToConvertFromMeters/>
            </distanceAlongPath>
        </unitsAndLabeling>
    </template-ignoredByCode>
</configuration>
0 Kudos
AnthonyGiles
Frequent Contributor II
Rok,

I have only used the .net SOE so cannot comment of the java.

Your URL in the widget does not look correct as it should end in getelevations, try:

http://gismo.zrc-sazu.si:6080/arcgis/rest/services/test/test_tem/MapServer/exts/ElevationsSOE_JAVA/E...

Regards

Anthony

P.S. I tried a test against your service through the REST endpoint at it is returning a temperature value, see:

http://gismo.zrc-sazu.si:6080/arcgis/rest/services/test/test_tem/MapServer/exts/ElevationsSOE_JAVA/E...
0 Kudos
RokCiglic
New Contributor III
Thank you! It works now!
Rok
0 Kudos