mapscript API shapfileObj units
Stephen Woodbridge
woodbri at SWOODBRIDGE.COM
Mon Oct 30 10:13:34 PST 2006
You can't! This is because it is not encoded in the shapefile to start
with. The only reason you can get it from the Layer pbject is because
you can set it in the mapfile and then retrieve it layer into mapscript.
The equivalent behavior would be to create a metadata file for each
shapefile and fetch it from that.
-Steve
Kralidis,Tom [Burlington] wrote:
> Hi,
>
> We have a script which utilizes the new mapscript geos functionality by
> applying a buffer to each shapeObj within a shapefileObj to output a new
> dataset.
>
> My question is I would like to know the units of shapefileObj (or
> shapeObj).
>
> The mapscript API has layerObj->{units} as a property, but I am not
> working within the layerObj context (i.e. I am not working on mapfiles,
> just datasets).
>
> Any idea on how to fetch this info from the mapscript API without
> layerObj? I've skimmed through
> http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html as part
> of my investigation, but didn't find anything else (or course I may have
> glossed over something -- happens to me often!).
>
> Thanks
>
> ..Tom
More information about the MapServer-users
mailing list