[mapserver-users] Classifying layers from data in a DB

Lowell.Filak lfilak at medinaco.org
Thu Jul 25 11:38:24 EDT 2002


If your using mapscript already then you can do the math/concatenation
required for the reclassification directly in the scripting language and
then apply that value to a temporary field in the dbf and display from
that, or create several temporary subsets and display from those using
either a temporary shapefile or just a selection-set from a layer.
HTH
Lowell F.

On Thu, 25 Jul 2002, Vinko Vrsalovic wrote:

> On Thu, Jul 25, 2002 at 11:12:14AM -0400, Lowell.Filak wrote:
> > Usually the simplest is the best to start with.
> > If you already have a way to do option 1 that would result in all the data
> > being in a single file/place and would cut down on the number of places
> > where things could break. After that is working you could do option 2 or
> > use mapscript to access the Oracle db directly if the Oracle db is where
> > things are updated.
>
> Can I directly through mapscript classify layers from data not present
> in the shapefile? With what methods must i experiment with?
>
> I'm already using Mapscript, but i thought (or didn't see how) to
> classify from data sets not present in the shapefile.
>
> If that's possible, I'd be very relieved! :-)
>
>
> Thanks,
>
> > On Thu, 25 Jul 2002, Vinko Vrsalovic wrote:
> >
> > >
> > > Hi!
> > >
> > > 	I need some advice about what might be the right path to achieve
> > > 	this:
> > >
> > > 	I have some layers in shapefiles, and I need to classify them
> > > 	from data that comes from an Oracle database (without Spatial
> > > 	extension).
> > >
> > > 	I've thought about these solutions:
> > >
> > > 	1.- Grab the data, and add column(s) to the dbf file of the
> > > 	shape, then set the expression and classitem of the layer
> > > 	according to the new column(s)
>
>




More information about the mapserver-users mailing list