<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2838" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=076345419-05042006><FONT face=Arial
color=#0000ff size=2>This would be easy if there was a way to represent double
quotes in a c# string literal without escaping. </FONT></SPAN><SPAN
class=076345419-05042006><FONT face=Arial color=#0000ff size=2>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
together).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=076345419-05042006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=076345419-05042006><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=076345419-05042006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=076345419-05042006><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=076345419-05042006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=076345419-05042006><FONT face=Arial
color=#0000ff size=2>Jason</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Chris Tallman
[mailto:ctallman@innomap.com] <BR><B>Sent:</B> Wednesday, April 05, 2006
10:27<BR><B>To:</B> users@mapguide.osgeo.org<BR><B>Subject:</B> RE:
[mapguide-users] findparcelfunctions.aspx<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=456252117-05042006><FONT face=Arial
color=#0000ff size=2>Thanks Jason that did the trick. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=456252117-05042006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=456252117-05042006><FONT face=Arial
color=#0000ff size=2>One thing to note. Copying the CoordinateSystemWkt
tag directly does not work.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=456252117-05042006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=456252117-05042006><FONT face=Arial
color=#0000ff size=2>Backslashes need to be entered. See
below.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=456252117-05042006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=456252117-05042006><FONT face=Arial
color=#0000ff size=2>Original text:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=456252117-05042006><SPAN
class=tx><STRONG><SPAN
class=tx>PROJCS["NAD_1983_StatePlane_Indiana_East_FIPS_1301_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",328083.3333333333],PARAMETER["False_Northing",820208.3333333333],PARAMETER["Central_Meridian",-85.66666666666667],PARAMETER["Scale_Factor",0.9999666666666667],PARAMETER["Latitude_Of_Origin",37.5],UNIT["Foot_US",0.3048006096012192]]</SPAN></STRONG></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=456252117-05042006><SPAN
class=tx><STRONG><SPAN class=tx></SPAN></STRONG></SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=456252117-05042006><SPAN class=tx><SPAN
class=tx><FONT face=Arial color=#0000ff size=2>Edited
text:</FONT></SPAN></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=456252117-05042006><SPAN class=tx><SPAN
class=tx><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></SPAN></SPAN> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff
size=2></FONT><FONT face=Arial color=#0000ff
size=2>PROJCS[\"NAD_1983_StatePlane_Indiana_East_FIPS_1301_Feet\",GEOGCS[\"GCS_North_American_1983\",DATUM[\"D_North_American_1983\",SPHEROID[\"GRS_1980\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",328083.3333333333],PARAMETER[\"False_Northing\",820208.3333333333],PARAMETER[\"Central_Meridian\",-85.66666666666667],PARAMETER[\"Scale_Factor\",0.9999666666666667],PARAMETER[\"Latitude_Of_Origin\",37.5],UNIT[\"Foot_US\",0.3048006096012192]]";</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Jason Birch
[mailto:Jason.Birch@nanaimo.ca] <BR><B>Sent:</B> Wednesday, April 05, 2006 12:44
PM<BR><B>To:</B> users@mapguide.osgeo.org<BR><B>Subject:</B> RE:
[mapguide-users] findparcelfunctions.aspx<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/plain format -->
<P><FONT size=2><FONT face=Arial>That OGC well known text representation of the
LL84 Coordinate Reference System (CRS) is being used to create the marker's SDF
feature source:<BR><BR> MgCreateSdfParams sdfParams = new
MgCreateSdfParams("LL84", ll84Wkt, parcelMarkerSchema);<BR>
featureService.CreateFeatureSource(parcelMarkerDataResId, sdfParams);<BR><BR>So
I think that it would make sense that it's affecting your markers.<BR><BR>The
CreateFeatureSource docs are here:<BR></FONT><A
href="https://mapguide.osgeo.org/nonav/docs/webapi/d5/d10/class_mg_feature_service_ab9a61218e9ea48601edfde782272055.html"><FONT
face=Arial>https://mapguide.osgeo.org/nonav/docs/webapi/d5/d10/class_mg_feature_service_ab9a61218e9ea48601edfde782272055.html</FONT></A><BR><BR><FONT
face=Arial>You can pull the spatial context for one of your existing layers
through the mapagent api tests.<BR> - Go to </FONT><A
href="http://localhost/mapguide/mapagent/index.html"><FONT
face=Arial>http://localhost/mapguide/mapagent/index.html</FONT></A><BR><FONT
face=Arial> - Click on "Resource service API" in the upper left
pane<BR> - Click on "EnumerateResources " in the lower left pane<BR> -
In the right pane, fill in "Library://" as the Resource ID and "FeatureSource"
as the Type and click on Submit.<BR> - Copy the contents of the
<ResourceID> tag for the feature source with your desired CRS into your
clipboard.<BR> e.g.
Library://Samples/Sheboygan/Data/CityLimits.FeatureSource<BR><BR> - Click
on "Feature service API" in the upper left pane<BR> - Click on
"GetSpatialContexts " in the lower left pane<BR> - Paste the previously
copied Resource ID into the Resource ID field in the right pane and click on
Submit<BR><BR> - The WKT for your CRS should be revealed in the
CoordinateSystemWkt tag</FONT></FONT></P>
<P><FONT size=2><FONT
face=Arial>Jason<BR></FONT><BR><BR><BR>________________________________<BR><BR>From:
Chris Tallman [<A
href="mailto:ctallman@innomap.com">mailto:ctallman@innomap.com</A>]<BR>Sent:
Wednesday, April 05, 2006 08:57<BR>To: users@mapguide.osgeo.org<BR>Subject:
[mapguide-users] findparcelfunctions.aspx<BR><BR><BR>Can someone explain this
line from the findparcelfunctions.aspx page.<BR><BR>String ll84Wkt =
"GEOGCS[\"LL84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS
84\",6378137,298.25722293287],TOWGS84[0,0,0,0,0,0,0]],PRIMEM[\"Greenwich\",0],UNIT[\"Degrees\",1]]";<BR><BR>specifically
does it need to be edited if I'm using a different Coordinate system? Say
IN83-EF.<BR><BR>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.<BR><BR><BR><BR>Chris
Tallman<BR>260.407.1761<BR><BR></P></FONT></BODY></HTML>