shapefile creation

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Sat Oct 23 23:22:03 EDT 2004


John,

Take a look at this:
http://www.phpclasses.org/browse/package/1741.html

It is a PHP class for reading shapefiles. You might be able to use the
read as an example of how to write them, and enhance the class for writing.

I haven't looked at the code so it might not be worth much, but it is an
idea.

-Steve

John Bolster wrote:

> Hello,
>
> I need to plot dynamically created points on my map. I don't have mapscript
> installed. I've been trying to dynamically create a shapefile. I'm on a
> commercially hosted server and I don't have root access and they are telling
> me that they can't get mapserver reinstalled with mapscript, so I'm stuck
> without it. The shapefile format didn't look too complicated to generate
> directly from php, but I haven't been able to get it to work. I keep getting
> the record lengths wrong.
>
> Any ideas for alternative ways to get a dynamic layer drawn? Is there
> another format of data file I could create in PHP and point my map file to
> with CGI parameters? Is it possible to get a precomiled binary for
> mapscript?
>
> I can plot individual features by dynamically creating features through the
> URL, but that won't work for 500 or so points.
>
> Thanks for any suggestions.
>
> John Bolster
>



More information about the mapserver-users mailing list