[Mapserver-users] adding shp to mapfile / projection
Daniel Morissette
morissette at dmsolutions.ca
Mon Mar 3 06:27:20 PST 2003
Paul Dymecki wrote:
>
> Hi
> I have a php script that pulls a bunch of lat/longs and attribute data from a database and produces a shp file.
> I was wondering if anyone can see a flaw with the code below? It's produceing reasonable(at least it looks to me)output but the shp
> file produced is not displaying in mapserver,
> thx,
> Paul
Your code looks right at first sight, perhaps the problem is related to
your use of $point->project(), this method was kind of broken in PHP
MapScript 3.6.x and has been fixed only in 3.7 so I would recommend that
you avoid using it if possible (or upgrade to 3.7-dev). Also, make sure
that your shapefile and dbf file are closed properly before you add them
to a MapServer layer.
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list