Assign special dbf to shapefile

Holger Floerke floerke at DOCTRONIC.DE
Sat Jan 8 07:56:34 EST 2005


Hi Jacob,

> Do you need to be able to access the different kinds of information at the
> same time?
Yes, I talk about an intranet solution with many users querying different
kind of information at the same time.

> Accessing DBF's with PHP is very easy.
I know. I am very familia with php and get more and more familiar with
mapscript ;^)

> ...could create X amount of copies of the shapefiles ...
That's what I try to avoid. In this intranet solution I can't define an
upper bound of shapefile copies, because users can query in parallel or view
more than one map at the same time.

Thanks for your suggestion.

HolgeR


Jacob Delfos schrieb:
> Hi Holger,
>
> Do you need to be able to access the different kinds of information at the
> same time? So in other words, do two ore more kinds of information need to
> exist at the same time? Or do the attributes of your shapefile only need to
> have one particular value at a time? If you only need to have one value at a
> time, I think it would be best if you used PHP to access the DBF, and wrote
> the values to the DBF, without renaming the DBF, and without trying to
> associate the .shp file with a different DBF. Depending on how many
> different 'versions' of the shapefile you need to have at the same time, you
> could create X amount of copies of the shapefiles, and change the associated
> DBF's at runtime, without having to create more .shp files. Accessing DBF's
> with PHP is very easy.
>
> Does that make sense?
>
> regards,
>
> Jacob
>
> -----Original Message-----
> From: UMN MapServer Users List
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Sent: 1/7/2005 11:08 PM
> Subject: Re: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile
>
> Hi Jacob,
>
>
>>Why would you not want to join them?
>
> If the information I would like to present is evaluated at runtime, I
> have
> to produce a full set of ".shp", ".dbf", "sbx", "sbn", and ".shx" files.
> The
> shapes always stays the same, but the data is extracted from a database
> on a
> user's query. I would like to save space by not copying the shape
> information every time.
>
>
>>unless if you created a join on a dbf, and accessed it separately.
>
> Is it possible to join external data sources (one or more dbf-files or
> oci-sources) to shape files at runtime with the mapserver-api?
>
> HolgeR



More information about the mapserver-users mailing list