[mapguide-users] findparcelfunctions.aspx

Jason Birch Jason.Birch at nanaimo.ca
Wed Apr 5 17:02:19 EDT 2006

This would be easy if there was a way to represent double quotes in a c#
string literal without escaping.  In PHP I'd just use single quotes, but
those are used for character literals in C#, and verbatim string
literals still require escaping of double quotes (by placing two of them
It would be more useful if the sample applications could to do this
programmatically.  I think that it should be possible with some minor
changes to the application.  Either pass the current MgMap into the
CreateParcelMarkerFeatureSource function as a new parameter, where you
could just do a ->GetMapSRS, or do this outside of the function and pass
in the WKT string as a parameter.
I'm not sure of the importance of the SpatialContext for the individual
features or the sdf file, and I can't see a way of obtaining this from
the map.  I wonder if this could be pulled from the SRS using
/^PROJCS\[\"([^\"]*)/ if it is not empty, otherwise
/GEOJCS\[\"([^\"]*)/, or if the spatial context name is more strongly
codified than this.


From: Chris Tallman [mailto:ctallman at innomap.com] 
Sent: Wednesday, April 05, 2006 10:27
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] findparcelfunctions.aspx

Thanks Jason that did the trick.  
One thing to note.  Copying the CoordinateSystemWkt tag directly does
not work.
Backslashes need to be entered.  See below.
Original text:
Edited text:


From: Jason Birch [mailto:Jason.Birch at nanaimo.ca] 
Sent: Wednesday, April 05, 2006 12:44 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] findparcelfunctions.aspx

That OGC well known text representation of the LL84 Coordinate Reference
System (CRS) is being used to create the marker's SDF feature source:

    MgCreateSdfParams sdfParams = new MgCreateSdfParams("LL84", ll84Wkt,

So I think that it would make sense that it's affecting your markers.

The CreateFeatureSource docs are here:

You can pull the spatial context for one of your existing layers through
the mapagent api tests.
 - Go to http://localhost/mapguide/mapagent/index.html
 - Click on "Resource service API" in the upper left pane
 - Click on "EnumerateResources " in the lower left pane
 - In the right pane, fill in "Library://" as the Resource ID and
"FeatureSource" as the Type and click on Submit.
 - Copy the contents of the <ResourceID> tag for the feature source with
your desired CRS into your clipboard.
    e.g. Library://Samples/Sheboygan/Data/CityLimits.FeatureSource

 - Click on "Feature service API" in the upper left pane
 - Click on "GetSpatialContexts " in the lower left pane
 - Paste the previously copied Resource ID into the Resource ID field in
the right pane and click on Submit

 - The WKT for your CRS should be revealed in the CoordinateSystemWkt



From: Chris Tallman [mailto:ctallman at innomap.com]
Sent: Wednesday, April 05, 2006 08:57
To: users at mapguide.osgeo.org
Subject: [mapguide-users] findparcelfunctions.aspx

Can someone explain this line from the findparcelfunctions.aspx page.

String ll84Wkt = "GEOGCS[\"LL84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS

specifically does it need to be edited if I'm using a different
Coordinate system?  Say IN83-EF.

I think I have everything working with my map reusing the
findparcel.aspx other than the markers are not placed.  I think this
line may be placing the marker off the map.

Chris Tallman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060405/e791c7f2/attachment.html

More information about the Mapguide-users mailing list