Select to view content in your preferred language

How to insert a shapefile from a local directory

803
2
Jump to solution
03-29-2012 11:56 PM
JamesGooding
Emerging Contributor
Hi all,

I'm quite new to all this so sorry if I'm posting about something that gets asked a thousand times.
I've got ARC GIS viewer for flex running. Under the 'More...' tab I want there to be option to make a shapefile visible which I have on my PC.

Hence my coding for this part has been:

<layer label="Swift 1.5kW" type="feature" visible="false" alpha="1.0"
url="http://homepc/flexviewer/assets/layer/merge3mall"/>

where 'merge3mall' is a zip file containing all the suffixes that a shapefile incorporates (.dbf;.prj;.sbn;.sbx;.shp;.shp.xml;and .shx)

When I open the webpage I receive this error message

Swift 1.5kW layer failed to load: Fault code: Server.Error.Request

Fault info: HTTP request error

Fault details: Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://homepc/flexviewer/assets/layer/merge3mall?f=json

I'd really appreciate any help with this. I can imagine its a simple task - to insert a shapefile from a local directory - but I am in a bit of a jam.

Cheers,

James
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
James,   The way you are attempting is not going to work. Local shapefiles are not supported OOTB. There is a widget in the code gallery that allows the end user to add a shapefile at runtime.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
James,   The way you are attempting is not going to work. Local shapefiles are not supported OOTB. There is a widget in the code gallery that allows the end user to add a shapefile at runtime.
0 Kudos
JamesGooding
Emerging Contributor
James,   The way you are attempting is not going to work. Local shapefiles are not supported OOTB. There is a widget in the code gallery that allows the end user to add a shapefile at runtime.


Thank you. Its a shame it won't work my way.
0 Kudos