Select to view content in your preferred language

Error in Enhanced Draw widget

3498
22
10-21-2010 04:00 PM
City_of_Port_Angeles_GIS
New Contributor III
Robert,
   I followed your instructions for integrating your enhanced draw widget into my Flex Viewer app
but I'm getting the following error:
Fault info: Error #1090: XML parser failure: element is malformed.
   I have not changed anything in your code. All search results on google refer to Action Script 3.
The problems window in Flash Builder 4 does not display any errors at all. Any ideas what could be causing this?
Bill
Tags (2)
0 Kudos
22 Replies
RobertScheitlin__GISP
MVP Emeritus
John,

   You must be talking about "show redraw regions" that is something that you only just when you use a machine that has flash player debug version. You don't get those options on a normal version of flash player so no need to worry about them.
0 Kudos
KwokKin_Wai
New Contributor
Dear Robert,
     Exactly, after I complied the programe and put the program to ArcGIS server, the functions gone when I open the web for displaying. I don't need to worry about these functions in web environment.
    Thank you for your help

John
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
John,

   So like I said when you check it from a machine that does not have flash builder debug version you will not see those options.
0 Kudos
ShawnKraft
New Contributor III
Hey Robert, the widget works well but my measurements are off.  Here is what I have

<geometryservice>http://icarus/ArcGIS/rest/services/Geometry/GeometryServer</geometryservice>
    <spatialref>3736</spatialref>
    <distanceunits>
        <distanceunit abbr="m" conversion="1">Meters</distanceunit>
        <distanceunit abbr="km" conversion=".001">Kilometers</distanceunit>
        <distanceunit abbr="ft" conversion="3.2808">Feet</distanceunit>
        <distanceunit abbr="mi" conversion="0.000621">Miles</distanceunit>
    </distanceunits>
    <areaunits>
        <areaunit abbr="sq m" conversion="1">Square Meters</areaunit>
        <areaunit abbr="sq km" conversion="0.000001">Square Kilometers</areaunit>
        <areaunit abbr="sq ft" conversion="10.763910417">Square Feet</areaunit>
        <areaunit abbr="sq mi" conversion="0.0000003861021">Square Miles</areaunit>
        <areaunit abbr="ac" conversion="0.00024710538147">Acres</areaunit>
        <areaunit abbr="ha" conversion="0.0001">Hectares</areaunit>
    </areaunits>
    <pointunits>
     <pointunit abbr="spal" wkid="3736">NAD83 WY East(SP Feet)</pointunit>
  <pointunit abbr="wgs84dd" wkid="4326">Decimal Degrees (WGS84)</pointunit>
  <pointunit abbr="wgs84dms" wkid="4326">DMS (WGS84)</pointunit>
  <pointunit abbr="utm19n" wkid="2960">NAD 1983 UTM 19N</pointunit>
</pointunits>

Measurements are off only with area and perimeter and I can't figure out why.  I have it pointing to my own geometry service set to our area for WY state plane.  Any ideas?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shawn,

     The draw and my enhanced draw widget have always required the WKID to be one that uses meters.
Try and use the WKID: 26913 instead:

<spatialref>26913</spatialref>
0 Kudos
ShawnKraft
New Contributor III
That worked. Thanks Robert.  For some reason I thought I had to use wkid for my area.
0 Kudos
PaulLang
New Contributor III
Version 2.2.4 - 02/24/2011
Info on previous versions is in the ReadMe.txt

Getting error on double click to end measure tool.  Occurs after sitting idle for a few minutes.

[FaultEvent fault=[RPC Fault faultString="Unexpected < encountered" faultCode="null" faultDetail="null"] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]
0 Kudos
PaulLang
New Contributor III
Changed from:
.xml
<spatialref>26913</spatialref> to <spatialref>2264</spatialref>

.mxml to
private var spatialref:Number = 2264;

Seems to work fine now.
0 Kudos
MattGiles
New Contributor
Hi Robert.

I am having problems with the enhanced draw widget:

I get the following 2 errors when drawing with the widget. The first error occurs when drawing points, lines, extents, and polygons. The second error occurs when drawing freehand lines, freehand polygons, circles, and ellipses.


[FaultEvent fault=[RPC Fault faultString="Unexpected < encountered" faultCode="null" faultDetail="null"] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]

[FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://xxxxxx/arcgis/services/Geometry/GeometryServer/project"] messageId="0A8172B2-B399-B697-3557-C9D26AF53DE0" type="fault" bubbles=false cancelable=true eventPhase=2]



I am using compiled version. Just downloaded the latest version and it didnt help. My map is in lambert conformal conic (wkid 102002) if that could have anything to do with it.

My xml is as follows:
<?xml version="1.0" ?>
<configuration>
    <geometryservice>http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer</geometryservice>
    <spatialref>102003</spatialref>
    <distanceunits>
        <distanceunit abbr="m" conversion="1">Meters</distanceunit>
        <distanceunit abbr="km" conversion=".001">Kilometers</distanceunit>
        <distanceunit abbr="ft" conversion="3.2808">Feet</distanceunit>
        <distanceunit abbr="mi" conversion="0.000621">Miles</distanceunit>
    </distanceunits>
    <areaunits>
        <areaunit abbr="sq m" conversion="1">Square Meters</areaunit>
        <areaunit abbr="sq km" conversion="0.000001">Square Kilometers</areaunit>
        <areaunit abbr="sq ft" conversion="10.763910417">Square Feet</areaunit>
        <areaunit abbr="sq mi" conversion="0.0000003861021">Square Miles</areaunit>
        <areaunit abbr="ac" conversion="0.00024710538147">Acres</areaunit>
        <areaunit abbr="ha" conversion="0.0001">Hectares</areaunit>
    </areaunits>
    <pointunits>
     <pointunit abbr="spal" wkid="102629">NAD83 AL East(SP Feet)</pointunit>
  <pointunit abbr="wgs84dd" wkid="4326">Decimal Degrees (WGS84)</pointunit>
  <pointunit abbr="wgs84dms" wkid="4326">DMS (WGS84)</pointunit>
  <pointunit abbr="utm19n" wkid="2960">NAD 1983 UTM 19N</pointunit>
 </pointunits>
 <numericlabelprecision>2</numericlabelprecision>
 <labels>
  <textrotationlabel>Rotation</textrotationlabel>
  <markerrotationlabel>Angle</markerrotationlabel>
  <pointunitslabel>Point Units:</pointunitslabel>
  <savelabel>Save Graphics Layer</savelabel>
  <openlabel>Open Saved Graphics Layer</openlabel>
 </labels>
</configuration>


I have tried replacing it with the xml you provide in this thread but that did not help.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
M Giles,

   What does your main config.xml look like?
0 Kudos