geos Bufferring mapserver 4.10
percy
percyd at PDX.EDU
Tue Nov 14 06:40:09 PST 2006
This is the sort of thing that is most appropriate for PostGIS, it
really starts to get into the realm of GIS "analysis", which Mapserver
does NOT purport to do :-)
I would look into PostGIS' "Simple Features Specification for SQL
<http://www.opengis.org/docs/99-049.pdf>". It will do the buffering and
intersecting you describe.
However, it sounds like this doesn't need to happen interactively
through the web interface, if so you might explore a desktop GIS such as
Quantum GIS, uDig, etc.
Percy
Kralidis,Tom [Burlington] wrote:
>> i am a begainner in the mapserver World... i have completed
>> only one simple project just for viewing map, have no analysis.
>>
>> now i contiue a project using php mapsript but now fall in
>> great problem.
>> i have shape file(.shp) containnig roads network. i have to
>> create a buffer area of this raods network arround 10 km.
>> using this buffer area i have to clip/select agricultural
>> land from another shape shape file.
>>
>> i can create buffer using
>> $shp=roadlayer->getshape(-1,0);
>> $shp->buffer(10);
>> but it create buffer for only one road not the whole network...
>>
>>
>
> buffer works at the shapeObj level, so you have to apply the buffer to
> each shape, i.e.:
>
> for(my $i=0; $i<$shapefile->{numshapes}; $i++) {
> # apply buffer
> # ...
> }
>
>
>> plz give me the idea which process i have to follow to
>> complete my project..
>>
>>
>> my configuration:
>> mapserver 4.10(windows)
>> php mapscript
>> windows 2k
>>
>
>
More information about the MapServer-users
mailing list