[mapguide-users] Creating a new line layer at run time
Mark Pendergraft
markp at Meadgilman.com
Wed Jul 11 16:49:13 EDT 2007
If you can get the geometry of the line, then why not create a new
temporary feature source, a new temporary layer, write the geometry to
the feature source, and save all of it to the users session?
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of
passionlessDrone
Sent: Wednesday, July 11, 2007 1:44 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Creating a new line layer at run time
Hello friends -
MapGuide 1.2 / PHP / Postgres\PostGIS / Windows environment.
I have a table with many lines in it. I'd like to be able to retrieve
one
record of line information, create a new layer on the fly, populate it
with
that line information, save to repository and go. I have been able to
perform this operation with Point data using the development guide as a
basis. There is something in the dev guide / samples for creating a
line,
but it seems like it won't work for my situation for a few reasons.
1) My underlying table has bunches of lines in it. I need to detect the
user input and show only the line they are interested in.
2) Filtering against PostGIS doesn't seem to work; otherwise I'd just
grab
the existing layer, filter out everything except the one line I need to
see,
push to the repository, and go.
I've already got the lines defined; but I can't figure out how to take
the
geometry from the right row and populate it into a new feature for
serving
up at runtime.
If need be, I can also retrieve all of the points that comprise the
line; I
saw something in the dev guide that seemed to indicate I could define
aline
segment by going from point to point, creating lines. I suppose it
would be
possible to get every point ordered, and create a line from 1 - 2, 2-3,
3-4
.... Is this my only choice?
Can anyone help?
Thanks!
-brian
--
View this message in context:
http://www.nabble.com/Creating-a-new-line-layer-at-run-time-tf4064562s16
610.html#a11548595
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list