How to get the number of segments from a custom shapefile upload process?
Hi,
We developped a custom shapefile upload workflow because we do some specific treatments after uploading. So the out of the box "Upload data" tool was not relevant for this specific task.
We are experiencing some issues at the moment when user upload large/complex shapefiles. The request to process is then too large and since there is no validation mechanism before sending requests to the server, the workflow fails. I figured out in that case it fails when projecting it in the map reference (ProjectTask). I want to validate the number of segments in the shp before lauching the projectTask but I have run ouf of ideas how to get this number of segments. FeatureSet.Features.Count doesn't work in that case because the shapefile can have a lot of segments under a single one feature. Do you have an idea how to get that number of segments?
I'm aware we can limit the maximum shp size in the web.config file but I don't want to do that, it will limit in the same time the upload data tool. This tool must stay available to end users. .
0
-
Why does it Fail? Java runs out of memory, out of temp diskspace?
Maybe adjusting those parameters my help get it going again.0 -
Have you considered using a geoprocessing service to do this? 0 -
I would have liked to avoid it due to my work environnement but if any task activites in the workflow designer can perform this, I will have no choice. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare