[mapguide-users] RE: Drawing Polygon

kencana kesuma bluesky_dyx at hotmail.com
Thu Nov 30 21:38:31 EST 2006


Hi Farah,

Thanks a lot for the explanation.
how ever i got one doubt.
can I know this code is for?
void ReleaseReader(MgPropertyCollection res, MgFeatureCommandCollection 
commands) throws MgException
{
    if(res == null)
        return;

    for(int i = 0; i < res.GetCount(); i++)
    {
        MgFeatureCommand cmd = commands.GetItem(i);
        if(cmd instanceof MgInsertFeatures)
        {
            MgFeatureProperty resProp = (MgFeatureProperty)res.GetItem(i);
            if(resProp != null)
            {
                MgFeatureReader reader = 
(MgFeatureReader)resProp.GetValue();
                if(reader == null)
                    return;
                reader.Close();
            }
        }
    }
}

do you have any idea how it done in PHP?

Regards,
Kencana


>From: "Farah" <farah at egovernments.org>
>Reply-To: users at mapguide.osgeo.org
>To: <bluesky_dyx at hotmail.com>
>CC: <users at mapguide.osgeo.org>
>Subject: [mapguide-users] RE: Drawing Polygon
>Date: Thu, 30 Nov 2006 17:06:13 +0530
>
>Hi !!
>
>
>I just tried a sample to create a temporary layer consisting of polygons
>drawn with the method: DigitizePolygon.
>
>I am attaching the code.
>1) digPolygon.jsp: This jsp draws the polygon on the map and calls the
>savePolygonLayer.jsp. After u click on the button in this page, you can 
>draw
>a polygon on the map. To complete the polygon, do ctrl+click.
>
>2)savePolygonLayer.jsp: this jsp creates a temporary layer with the polygon
>and displays it on map
>
>3) findParcelFunctions.jsp : functions to create the temporary feature
>source and layer
>
>4)polygon.xml: describing the temporary layer properties
>
>
>Regards
>Farah
>
>-----Original Message-----
>From: bluesky_dyx at hotmail.com [mailto:bluesky_dyx at hotmail.com]
>Sent: Thursday, November 30, 2006 2:37 PM
>To: farah at egovernments.org
>Subject: Drawing Polygon
>
>Hi,
>
>I was wondering, do you know how to create a new layer consists of polygon
>by using digitizepolygon features?
>any idea of this?
>I hope you can help me out.
>Thank you very much
>
>Regards,
>Kencana


><< digPolygon.jsp >>


><< findparcelfunctions.jsp >>


><< polygon.xml >>


><< savePolygonLayer.jsp >>


>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
>For additional commands, e-mail: users-help at mapguide.osgeo.org

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





More information about the Mapguide-users mailing list