[mapguide-trac] #35: Error calling MgWktReaderWriter.Write from PHP

MapGuide Open Source trac_mapguide at osgeo.org
Thu Apr 5 05:59:47 EDT 2007


#35: Error calling MgWktReaderWriter.Write from PHP
------------------------------+---------------------------------------------
   Reporter:  waltweltonlair  |       Owner:       
       Type:  defect          |      Status:  new  
   Priority:  high            |   Milestone:  1.2  
  Component:  Web API         |     Version:  1.2.0
   Severity:  major           |    Keywords:       
External_id:                  |  
------------------------------+---------------------------------------------
 Reported by Jason Birch:

 This:

 [http://www.jasonbirch.com/temp/test.phps]

 Gives me errors either way I run it (UTM to LL or LL to UTM).

 Fatal error: Type error in argument 1 of !MgWktReaderWriter_Write.
 Expected _p_MgGeometry in C:\Program
 Files\!MapGuideOpenSource\!WebServerExtensions\Apache2\htdocs\parcels\test
 .php on line 42

 It works just fine if I remove the transform as the second optional
 parameter to the WKT reader.  The thing is that these same transforms
 are working correctly on features that I'm reading directly from a
 !FeatureSource.  So what am I missing?

 This is just a test case.  What I really want to do with the transformed
 bounding box is something like:

 $queryOptions->!SetSpatialFilter("Geometry", $bboxUTM10,
 MgFeatureSpatialOperations::!EnvelopeIntersects);

 I'm basically trying to take in a BBOX in LL, transform it to UTM10,
 then use its envelope as a spatial filter.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/35>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list