About SHP file extrracts
Stephen Woodbridge
woodbri at SWOODBRIDGE.COM
Thu Sep 23 11:38:07 PDT 2004
I don't think this is possible directly. Part of the problem is the a
shapefile is actually at least 3 files file.dbf, file.shp, file.shx.
That said it should be possible to do a query and get a list of the
objects being displayed from a given layer and copy them using mapscript
into a new shapefile on disk and maybe even zip ot tar them into a
single file the gets returned to the user.
If you have multiple layers you would have to extract a separate
shapefile for each layer as their type and attributes might not be
suitable for combining.
Also you will have to decide how you want to handle for example a line
the crosses the view boundary. Do you want to clip the line(polygon?) at
the view boundary or return the whole object.
Hope this helps.
-Steve W.
Bob Basques wrote:
> All,
>
> Is it possible to configure MapServer to output a chunk of SHP file for
> a particular view?
>
> Thanks
>
> bobb
>
More information about the MapServer-users
mailing list