Select to view content in your preferred language

import shapefiles

2982
8
Jump to solution
06-28-2013 05:31 AM
LucBourbousson
Deactivated User
Hi
I use the standard extract widget to export shapefile files from an A.Viewer map. When I try to re-import them by using the "shapefiles widget v.3.3", I have the following error: [RPC Fault faultString="Unable to project" faultCode="400" faultDetail="'geometries' must be specified"].

Importing a shapefile generated from A. Desktop works though. Wonder if it's coming from the clip and ship options.

2 sample shapefiles are attached, thanks for your help.
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Luc,

   Version 3.3.1 now supports this.

Version 3.3.1 - July 2, 2013
* Added support for multiple shapefiles in one zip (to support the extract widget)

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

View solution in original post

0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
Luc,

   It looks like the Clip and Ship did not get any geometries for those layers when you did your clip. Just open those shapefiles in ArcMap and you will see they are empty.
0 Kudos
by Anonymous User
Not applicable
Original User: carto.nimes

Thank you, by changing the spatial reference in the clip&ship workflow from wkid "2154" to Esri "102110", it now works.
Concerning your (great) shapefile widget, is it normal to display only one layer eventhough the shapefile contains 2 or more layers? Attached is a zipped shapefile containing 2 layers, only the "Etablissements" layer is uploaded, the "college" one is ignored.
Thx
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Luc,

   Yes, currently the widget is only expecting one shapefile per zip. I had not thought of anyone including more but that might be a good enhancement.
0 Kudos
by Anonymous User
Not applicable
Original User: carto.nimes

It would made the widget a nice complement to the extract widget which enable you to export multiple layers into one zipped shapefile at the same time (checkboxes). Such a file would be uploaded "as is" through your shapefile widget.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Luc,

   Version 3.3.1 now supports this.

Version 3.3.1 - July 2, 2013
* Added support for multiple shapefiles in one zip (to support the extract widget)

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos
by Anonymous User
Not applicable
Original User: carto.nimes

Hi Robert,
it works great thank you!
The only improvement I think of would be to be able to change colors by layer. See snapshot, there is a bit too much green on the map now.
Thanks again.
0 Kudos
DougBrowning
MVP Esteemed Contributor
So from the code it looks like this adds the shapefile data to Flex locally and does not send or store any data on any server correct?

Has anyone ever seen a widget like this to add a Layer (or Layers) from a REST service?  We would like a way for users to add a REST data layer to our Flex app to see with our data (just like a shp file).

Thanks
0 Kudos
by Anonymous User
Not applicable
Original User: rscheitlin

Doug,

   The closest thing I have seen to what you are looking for is the Map Services Widget:

http://www.arcgis.com/home/item.html?id=4ed10ea387444952a3f3f501fee02b76
0 Kudos