[mapguide-users] Re: Coordinate System Problem in Buffer Feature
Hi, I have done this by coordinate system override and setting coordinate system in Map definitions. No issues with this Thank u Padmini -- View this message in context: http://n2.nabble.com/Coordinate-System-Problem-in-Buffer-Feature-tp4539781p4545929.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Re: problem when using same code for MapGuideEnterprise2009 with MapGuideEnterprise2010
Sorry for the late reply, busy with assignment..when i get through the code again i forget to give this code: //create a multi-polygon or a multi-geometry containing the input selected features $inputGeom = MultiGeometryFromSelection($featureSrvc, $map, $selectionXml); // Query all the features belonging the the layer list that intersects with the input geometries $fi = $renderingSrvc->QueryFeatures($map, $layerNames, $inputGeom,MgFeatureSpatialOperations::Intersects, -1); if($fi) { $resultSel = $fi->GetSelection(); if($resultSel) { $selxml=$resultSel->ToXml();//change the selection to XML $selection = new MgSelection($map, $selxml);//get the Intersects Layer on the selection $layers_selection = $selection->GetLayers();//get layers if($layers_selection) { for ($i = 0; $i < $layers_selection->GetCount(); $i++) { $layer = $layers_selection->GetItem($i); $selectlayer_name[$i]=$layer->GetName(); } } } } function MultiGeometryFromSelection($featureSrvc, $map, $selText) { $sel = new MgSelection($map, $selText); $selLayers = $sel->GetLayers(); $geomColl = new MgGeometryCollection(); $agfRW = new MgAgfReaderWriter(); $polyOnly = true; for($i = 0; $i < $selLayers->GetCount(); $i++) { $layer = $selLayers->GetItem($i); // TODO: How to get $selectionSize? $selectionSize = 20; $filters = $sel->GenerateFilters($layer, $layer->GetFeatureClassName(), $selectionSize); $numFilters = $filters->GetCount(); for ($filterIndex = 0; $filterIndex < $numFilters; $filterIndex++) { $filter = $filters->GetItem($filterIndex); if ($filter == "") continue; $query = new MgFeatureQueryOptions(); $query->SetFilter($filter); $featureSource = new MgResourceIdentifier($layer->GetFeatureSourceId()); $features = $featureSrvc->SelectFeatures($featureSource, $layer->GetFeatureClassName(), $query); if($features) { $classDef = $features->GetClassDefinition(); $geomPropName = $classDef->GetDefaultGeometryPropertyName(); $j = 0; $isPoly = true; while($features->ReadNext()) { $geomReader = $features->GetGeometry($geomPropName); $geom = $agfRW->Read($geomReader); if($j ++ == 0) { $type = $geom->GetGeometryType(); if($type == MgGeometryType::MultiPolygon || $type == MgGeometryType::CurvePolygon || $type == MgGeometryType::MultiCurvePolygon) { $isPoly = false; $polyOnly = false; } else if($type != MgGeometryType::Polygon) break; } $geomColl->Add($geom); } $features->Close(); } } } if($geomColl->GetCount() == 0) return null; $gf = new MgGeometryFactory(); if($polyOnly) { $polyColl = new MgPolygonCollection(); for($i = 0; $i < $geomColl->GetCount(); $i++) $polyColl->Add($geomColl->GetItem($i)); return $gf->CreateMultiPolygon($polyColl); } else return $gf->CreateMultiGeometry($geomColl); } i use these code to get the intersect with the select layer, i realize that this code did not return any value from the function MultiGeometryFromSelection.. thanks.. -- View this message in context: http://n2.nabble.com/problem-when-using-same-code-for-MapGuideEnterprise2009-with-MapGuideEnterprise2010-tp4492918p4545782.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] RE: Convert mcs To LonLat in C#
ya..i have searched on net and i got mapguide object model there i got map object have methord "mcsToLonLat" . http://www.mapguide.com/help/R6.3/api/en/MGMap_m_mcsToLonLat.htm above link have how to use the methord but when i tried use in my mapobject i didn't get the methord.. then i got his is mapguide 6.2 object model so the mapguide object model has been updated so what the new methord to do so?? any idea?? thanks in advance -- View this message in context: http://n2.nabble.com/Convert-mcs-To-LonLat-in-C-tp4540965p4545768.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Studio Load Procedure and Maestro File add with Shapefile gets a 404 not found
Has anybody encountered this scenario? Using either Maestro or Studio to load a Shapefile results in a 404 not found error. No issues with any other shapefiles with the same load procedure or Data resource setup from the exact same directory. I can package the data and load it in order to bypass. Stop/starting server has no effect. There is caching enabled on shapefiles. Is there possibly a lock? Shapefile opens and geometry has been repaired in ArcMap, so I don't think it is data related. Cheers, Kori Maleski ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
RE: [mapguide-users] Convert mcs To LonLat in C#
You can bet on that! Maybe India has firewalled google? -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Zac Spitzer Sent: Tuesday, February 09, 2010 2:19 PM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Convert mcs To LonLat in C# did you try googling? On 10 February 2010 00:16, prabhat30 wrote: > > Hi, > How to convert MCS to LatLon using c# . plz Send some sample code to do > so.thanks in advance > > -- > View this message in context: > http://n2.nabble.com/Convert-mcs-To-LonLat-in-C-tp4540965p4540965.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Convert mcs To LonLat in C#
did you try googling? On 10 February 2010 00:16, prabhat30 wrote: > > Hi, > How to convert MCS to LatLon using c# . plz Send some sample code to do > so.thanks in advance > > -- > View this message in context: > http://n2.nabble.com/Convert-mcs-To-LonLat-in-C-tp4540965p4540965.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Convert mcs To LonLat in C#
Hi, How to convert MCS to LatLon using c# . plz Send some sample code to do so.thanks in advance -- View this message in context: http://n2.nabble.com/Convert-mcs-To-LonLat-in-C-tp4540965p4540965.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Re: Change map scale or get min and max scale from layer
I've solved the same problem to gain the ScaleRanges for Visability with the given solution. Unfortunately, I need the current scale to set the Layer shown in an outsourced Legend. Is there a way to achieve the current scale? The method GetViewScale() gives 1.0 to me, too. Thanks for help in advance. Kind regards, Johannes Foell -- View this message in context: http://n2.nabble.com/Change-map-scale-or-get-min-and-max-scale-from-layer-tp1817851p4540806.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Re: Query external files
Hi Sudip, my requirements are simple. I would like to have "query" working with external files. Mapguide detects the layers but do not propagate the properties so, it's impossible to query. How can I make Mapguide detect teh properties of each layer? Thanks in advance -- View this message in context: http://n2.nabble.com/Query-external-files-tp4515007p4539959.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Re: CoordinateSystem (?) Problems with Data from WMS (EPSG: 31468 and 2398)
I'm still stuck with the coordinatesystem-transformation-problem for WMS3. No matter what I've done, the best I get is this: http://sicky.i-networx.de/temp/lung_mgos.PNG but it should look like this: http://sicky.i-networx.de/temp/lung_udig.PNG there has to be a conversion which is able to make it look like in uDig, doesn't it? How can I convert from EPSG:4326 to EPSG:31468 correctly? -- View this message in context: http://n2.nabble.com/CoordinateSystem-Problems-with-Data-from-WMS-EPSG-31468-and-2398-tp4461491p4539815.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Coordinate System Problem in Buffer Feature
Hi, iam using mgos 2.1 and maestro 1.0.0 actuall iam creating buffer for my shape files.But the buffer layer created and 0 buffer features created. The problem is the feature source not taking my shape file project system so what i have to set in Coordinate System Override in Feature source and coordinate system in Mapdefinition... My shape file projection is GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]] Regards, Padmini G. -- View this message in context: http://n2.nabble.com/Coordinate-System-Problem-in-Buffer-Feature-tp4539781p4539781.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users