[mapguide-users] Re: malformed syntax error
Hi Jason et al, I solved this actually, and am happy to say it was neither a mapserver or a MGOS problem, but an IIS 6 issue. In short, the web site in IIS 6 was configured with a host header value which did not relate to the external URL being used by MGOS. Making that blank fixed the problem. Cheers Jo -- View this message in context: http://n2.nabble.com/malformed-syntax-error-tp4562221p4581513.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
Re: [mapguide-users] Zooming to extent of multiple selections
Hi Jason, Yes- but all it was telling me was that the argument was null. No clue as to which argument though! Is there another level of detail you can get out of the error handling, like a more verbose message? Thanks Jo Jason Birch wrote: > > If it's any comfort, I had no clue from the look I took :) > > Are you using try/catch exception handling? It can make it easier to > figure out what's going on sometimes. > > Jason > > On 2009-12-22, Jo Cook wrote: >> >> Answered my own question :-) >> >> For information, and future people having a similar problem, the issue >> was >> not with the code but with the fact that the layer came from an odbc data >> source, so consequently had no geometry or extents. I figured that out >> using >> the web tier tests. Once I realised that (which was no doubt obvious to >> most >> people) I could extract the values for the coordinates from the table and >> use that to construct an envelope for zooming to. >> >> Jo >> > > > -- View this message in context: http://n2.nabble.com/Zooming-to-extent-of-multiple-selections-tp4199009p4205116.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
Re: [mapguide-users] Zooming to extent of multiple selections
Answered my own question :-) For information, and future people having a similar problem, the issue was not with the code but with the fact that the layer came from an odbc data source, so consequently had no geometry or extents. I figured that out using the web tier tests. Once I realised that (which was no doubt obvious to most people) I could extract the values for the coordinates from the table and use that to construct an envelope for zooming to. Jo Jo Cook wrote: > > OK, with some serious searching through the mailing lists, and looking at > the showgeom.php example in the schemareport folder, I have learnt a > little more about GetExtents, but I'm still stuck and would very much > appreciate some assistance. My code is as follows: > > MgInitializeWebTier ($webconfigFilePath); > > $userInfo = new MgUserInformation($sessionId); > $siteConnection = new MgSiteConnection(); > $siteConnection->Open($userInfo); > > echo "Map: ".$mapName.""; > $map = new MgMap($siteConnection); > $map->Open($mapName); > > $cfilter = "POSTCODE = '$ccode'"; > echo "Query: ".$cfilter.''; > > > $queryOptions = new MgFeatureQueryOptions(); > $queryOptions->SetFilter($cfilter); > > echo "Layer: ".$SMAlayer.''; > $layers = $map->GetLayers(); > $selLayer = $layers->GetItem($SMAlayer); > > > $featureresourceID = new > MgResourceIdentifier($selLayer->GetFeatureSourceId()); > //print_r($featureresourceID); > $featureclassname = $selLayer->GetFeatureClassName(); > $featureService = > $siteConnection->CreateService(MgServiceType::FeatureService); > $dataReader = > $featureService->SelectFeatures($featureresourceID, $featureclassname, > $queryOptions); > $dataReader->ReadNext(); > $resourceService = > $siteConnection->CreateService(MgServiceType::ResourceService); > > $selection = new MgSelection($map); > $selection->AddFeatures($selLayer, $dataReader, 0); > > $selection->Save($resourceService, $mapName); > $dataReader->Close(); > > > $count = > $selection->GetSelectedFeaturesCount($selLayer,$featureclassname); > echo 'Count: '.$count.''; > > $agfReaderWriter = new MgAgfReaderWriter(); > // this seems to be the problem line > $spatialcontextReader = > $featureService->GetSpatialContexts($featureresourceID, false); > while ($spatialcontextReader->ReadNext()) > { > // Finds the extent > $extentByteReader = > $spatialcontextReader->GetExtent(); > > } > $spatialcontextReader->Close(); > > > > // Get the extent geometry from the spatial context > $extentGeometry = > $agfReaderWriter->Read($extentByteReader); > > $iterator = $extentGeometry->GetCoordinates(); > while($iterator->MoveNext()) > { > $x = $iterator->GetCurrent()->GetX(); > $y = $iterator->GetCurrent()->GetY(); > if($firstTime) > { > $maxX = $x; > $minX = $x; > $maxY = $y; > $minY = $y; > $firstTime = false; > } > if($maxX<$x) > $maxX = $x; > if($minX>$x||$minX==0) > $minX = $x; > if($maxY<$y) > $maxY = $y; > if($minY>$y||$minY==0) > $minY = $y; > } > > echo "extent lower left: ".$minX.",".$minY.""; > > > } > > When this runs I get an error that "the argument is null". I believe the > error is something to do with the spatialcontextreader line, but I can't > figure out what's wrong with it. > > Any thoughts? > > Jo > > -- View this message in context: http://n2.nabble.com/Zooming-to-extent-of-multiple-selections-tp4199009p4203040.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
Re: [mapguide-users] Zooming to extent of multiple selections
OK, with some serious searching through the mailing lists, and looking at the showgeom.php example in the schemareport folder, I have learnt a little more about GetExtents, but I'm still stuck and would very much appreciate some assistance. My code is as follows: MgInitializeWebTier ($webconfigFilePath); $userInfo = new MgUserInformation($sessionId); $siteConnection = new MgSiteConnection(); $siteConnection->Open($userInfo); echo "Map: ".$mapName.""; $map = new MgMap($siteConnection); $map->Open($mapName); $cfilter = "POSTCODE = '$ccode'"; echo "Query: ".$cfilter.''; $queryOptions = new MgFeatureQueryOptions(); $queryOptions->SetFilter($cfilter); echo "Layer: ".$SMAlayer.''; $layers = $map->GetLayers(); $selLayer = $layers->GetItem($SMAlayer); $featureresourceID = new MgResourceIdentifier($selLayer->GetFeatureSourceId()); //print_r($featureresourceID); $featureclassname = $selLayer->GetFeatureClassName(); $featureService = $siteConnection->CreateService(MgServiceType::FeatureService); $dataReader = $featureService->SelectFeatures($featureresourceID, $featureclassname, $queryOptions); $dataReader->ReadNext(); $resourceService = $siteConnection->CreateService(MgServiceType::ResourceService); $selection = new MgSelection($map); $selection->AddFeatures($selLayer, $dataReader, 0); $selection->Save($resourceService, $mapName); $dataReader->Close(); $count = $selection->GetSelectedFeaturesCount($selLayer,$featureclassname); echo 'Count: '.$count.''; $agfReaderWriter = new MgAgfReaderWriter(); // this seems to be the problem line $spatialcontextReader = $featureService->GetSpatialContexts($featureresourceID, false); while ($spatialcontextReader->ReadNext()) { // Finds the extent $extentByteReader = $spatialcontextReader->GetExtent(); } $spatialcontextReader->Close(); // Get the extent geometry from the spatial context $extentGeometry = $agfReaderWriter->Read($extentByteReader); $iterator = $extentGeometry->GetCoordinates(); while($iterator->MoveNext()) { $x = $iterator->GetCurrent()->GetX(); $y = $iterator->GetCurrent()->GetY(); if($firstTime) { $maxX = $x; $minX = $x; $maxY = $y; $minY = $y; $firstTime = false; } if($maxX<$x) $maxX = $x; if($minX>$x||$minX==0) $minX = $x; if($maxY<$y) $maxY = $y; if($minY>$y||$minY==0) $minY = $y; } echo "extent lower left: ".$minX.",".$minY.""; } When this runs I get an error that "the argument is null". I believe the error is something to do with the spatialcontextreader line, but I can't figure out what's wrong with it. Any thoughts? Jo -- View this message in context: http://n2.nabble.com/Zooming-to-extent-of-multiple-selections-tp4199009p4199822.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] Zooming to extent of multiple selections
Dear All, I have a select and zoom to extents problem in the ajax viewer. The user chooses a postcode from a list, and this returns multiple results. I simply want the map to zoom to the combined extent of these results. I thought the right option to use is GetExtents, but when I try and derive the coordinates from the envelope this creates (as a method of checking the php is correct before moving on to the javascript), it returns the same value each time, which I assume is probably the value for the entire layer. I have checked that the correct number of features are returned, so I know it's not that. Any thoughts would be greatly appreciated. My code is as follows: MgInitializeWebTier ($webconfigFilePath); $userInfo = new MgUserInformation($sessionId); $siteConnection = new MgSiteConnection(); $siteConnection->Open($userInfo); echo $mapName.""; $map = new MgMap($siteConnection); $map->Open($mapName); $cfilter = "POSTCODE = '$ccode'"; echo $cfilter.''; $queryOptions = new MgFeatureQueryOptions(); $queryOptions->SetFilter($cfilter); echo $SMAlayer.''; $layers = $map->GetLayers(); $selLayer = $layers->GetItem($SMAlayer); $featureresourceID = new MgResourceIdentifier($selLayer->GetFeatureSourceId()); $featureclassname = $selLayer->GetFeatureClassName(); $featureService = $siteConnection->CreateService(MgServiceType::FeatureService); $dataReader = $featureService->SelectFeatures($featureresourceID, $featureclassname, $queryOptions); $dataReader->ReadNext(); //$resourceService = $siteConnection->CreateService(MgServiceType::ResourceService); $selection = new MgSelection($map); $selection->AddFeatures($selLayer, $dataReader, 0); //$selection->Save($resourceService, $mapName); $count = $selection->GetSelectedFeaturesCount($selLayer,$featureclassname); echo 'Count: '.$count.''; $dataReader->Close(); $extent = $selection->GetExtents($featureService); $upperRightY = $extent->GetUpperRightCoordinate()->GetY(); $lowerLeftX=$extent->GetLowerLeftCoordinate()->GetX(); $width = $extent->GetWidth(); $height = $extent->GetHeight(); $centreX = $lowerLeftX + ($width)/2; $centreY = $upperRightY - ($height)/2; echo "Centre Coordinates: ".$centreX.",".$centreY; Thanks Jo -- View this message in context: http://n2.nabble.com/Zooming-to-extent-of-multiple-selections-tp4199009p4199009.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
RE: [mapguide-users] Mix of selectfeature and selectaggregate query
Hi Jackie, Well, I'm making progress, in that the query now returns results- as well as your changes I had to change the type of the featureservice. However, despite the presence of a groupingfilter and selectdistinct being true, it's still returning all the results. Any thoughts? I'm assuming it's something to do with the order of the queryoptions but I'm not having much luck getting it to work. Many thanks for your help Jo Jackie Ng wrote: > > Two things I see: > > - It looks like 'Postcode' is not part of the properties to be returned. > Only 'Postcodegroup' is there. > - You're closing the $dataReader before you're iterating through your > results, and that call is not correct PHP syntax ($dataReader->Close() > instead of $dataReader.close()) > > Hope that helps > > - Jackie > > > > -- View this message in context: http://n2.nabble.com/Mix-of-selectfeature-and-selectaggregate-query-tp4176453p4187804.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
RE: [mapguide-users] Mix of selectfeature and selectaggregate query
Hi Dave, Thanks for that- I've tried to implement it as a single selectaggregate query, but I'm still missing something. I suspect (though I don't really understand what I'm doing) that it's falling over at the dataReader section. If you (or someone could have a look at my code I'd really appreciate it. The relevant code is as follows: MgInitializeWebTier ($webconfigFilePath); $userInfo = new MgUserInformation($sessionId); $siteConnection = new MgSiteConnection(); $siteConnection->Open($userInfo); $map = new MgMap($siteConnection); $map->Open($mapName); $filter = "POSTCODE LIKE '$SMAlocation%'"; //echo $filter; $queryOptions = new MgFeatureAggregateOptions(); $queryOptions->SelectDistinct(true); $queryOptions->AddFeatureProperty("Postcodegroup"); $queryOptions->SetFilter($filter); $layers = $map->GetLayers(); $selLayer = $layers->GetItem($SMAlayer); $featureresourceID = new MgResourceIdentifier($selLayer-> GetFeatureSourceID()); $featureclassname = $selLayer->GetFeatureClassName(); $featureService = new MgFeatureService; $dataReader = $featureService->SelectAggregate($featureresourceID, $featureclassname, $queryOptions); print_r($dataReader); $dataReader.close(); echo "Postcodes matching your criteria:"; while ($dataReader->ReadNext()) { $postcode = $dataReader->GetString('Postcode'); echo $postcode.""; } echo""; } Thanks Jo Dave Wilson wrote: > > There is a filter on SelectAggregates just like SelectFeatures. You should > be able to add a PostalCode LIKE clause using this if I am not mistaken. > > Dave > > > -- View this message in context: http://n2.nabble.com/Mix-of-selectfeature-and-selectaggregate-query-tp4176453p4186257.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
RE: [mapguide-users] Mix of selectfeature and selectaggregate query
Hi Dave, The problem with this approach is that I need to narrow down the available postcodes first (there are many) so I need some way of passing a filter to the selectaggregates query and I can't see how to do that. The only options seem to be spatialfilters and groupingfilters, whereas I want a simple text filter, unless I'm mistaken? Thanks Jo Dave Wilson wrote: > > I think you want to do your initial query using SelectAggregates and set > the Distinct flag to get a unique list of Postal Codes. From your result > page the user could select a code and then you would use a SelectFeatures > query to return all the actual points adding them to a SelectionSet and > zooming to that. > > Dave > > > > -- View this message in context: http://n2.nabble.com/Mix-of-selectfeature-and-selectaggregate-query-tp4176453p4176798.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
Re: [mapguide-users] changing position of task bar
Thanks Kenneth, You've confirmed what I wanted to hear- which is that there isn't a simple approach. I have persuaded the client to stick with the standard viewer layout for now. Jo Kenneth Skovhede, GEOGRAF A/S wrote: > > The approach mentioned by Chris will leave you with the legend and > taskpane side by side, rather than on top. > While it is possible to modify the viewer, there are two things going > against it: > > 1) It was not made for modification, which will make it hard to fit in > customizations > 2) Any change has to be re-implemented when your client upgrades to the > next version of MG > > Number 1) implies that you will spend a lot of time, and number 2) > implies that you will do it multiple times. > > For these reasons, Fusion was built. > While I can see issues with Fusion, it is meant to be customized, and I > would recommend that you either > "roll your own" viewer or use Fusion, if the basic viewer is not enough. > > Regards, Kenneth Skovhede, GEOGRAF A/S > > On 14-12-2009 18:48, Chris Claydon wrote: >> Without trying it, I'm not sure if this would work but it might be worth >> a try... >> >> 1) In MG Studio or equivalent, open your basic layout and disable the >> properties pane and task pane. >> 2) Set URL hyperlinks to open in a specified frame, and pick a new unique >> name for the frame. >> 3) Set all commands that are currently targeted at the task pane also to >> open in that specified frame. >> 4) Modify the AJAX viewer to add a new frame with the unique name below >> the legend. >> >> It shouldn't take a huge amount of effort to figure out if it's actually >> going to work. >> >> Chris. >> >> -Original Message- >> From: mapguide-users-boun...@lists.osgeo.org >> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jo Cook >> Sent: Monday, December 14, 2009 7:54 AM >> To: mapguide-users@lists.osgeo.org >> Subject: [mapguide-users] changing position of task bar >> >> >> Dear all, >> >> I would like to change the position of the task bar in the ajax viewer >> for >> MGOS 2.1. I have seen the posts about changing it to the left-hand side, >> and >> have implemented that, but ideally I want to ditch the properties pane >> and >> integrate the task pane (with a custom properties task included) below >> the >> legend. When I look in the developer's guide at the layout of the frames >> within the ajax viewer, it doesn't look like this is going to be >> possible, >> as both the legend and the properties panes are integrated within the >> main >> mapframe. >> >> Is there a way to do what I want, by changing the order of frames within >> the >> various templates, or am I wasting my time? For a number of regions, the >> client wants the ajax viewer rather than fusion. >> >> Thanks >> >> Jo >> > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://n2.nabble.com/changing-position-of-task-bar-tp4164478p4176665.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] Mix of selectfeature and selectaggregate query
Dear All, I have a layer of postcodes, which has more than one point per postcode (eg all the houses with that postcode). I would like people to be able to do a "fuzzy selection" to choose their postcode, eg "RM14" returns all the postcodes with RM14 at the beginning. I would then like the results of this to be grouped and listed, so that only one entry per postcode is given. People should then be able to select that postcode, and zoom in to the total spatial extent of all the points with that postcode. I hope that makes sense! I have implemented the initial selection using SelectFeature with the appropriate queryoption, so the fuzzy search works and returns multiple values. However, I can't figure out whether I can rewrite this using SelectAggregate and the same queryoption as the documentation only seems to talk about a groupingfilter and I'm not sure that's what I want. I'm then wondering if I can either convert the results returned from the SelectFeature query into a list of unique values directly in php, or whether I can do a SelectAggregate query on the results, or if indeed there's a much better way that I'm missing! If someone could talk me through the basic steps, I'd be very grateful- it's hard for me to copy code over as I'm working in a chain of windows remote desktop servers that don't allow copy and paste. Thanks Jo -- View this message in context: http://n2.nabble.com/Mix-of-selectfeature-and-selectaggregate-query-tp4176453p4176453.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] changing position of task bar
Dear all, I would like to change the position of the task bar in the ajax viewer for MGOS 2.1. I have seen the posts about changing it to the left-hand side, and have implemented that, but ideally I want to ditch the properties pane and integrate the task pane (with a custom properties task included) below the legend. When I look in the developer's guide at the layout of the frames within the ajax viewer, it doesn't look like this is going to be possible, as both the legend and the properties panes are integrated within the main mapframe. Is there a way to do what I want, by changing the order of frames within the various templates, or am I wasting my time? For a number of regions, the client wants the ajax viewer rather than fusion. Thanks Jo -- View this message in context: http://n2.nabble.com/changing-position-of-task-bar-tp4164478p4164478.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
Re: [mapguide-users] Changing the status bar unit spelling
Hi Jackie, Yes, you're right. The wkt version of EPSG 27700 (British National Grid) has "Meter" as the unit. Looks like I'm stuck with it then! Thanks for your detective work! Jo Jackie Ng wrote: > > I was just following the trail of source code and it originates all the > way back to the coordinate system of the map. At mapframe.php line 97: > > if($srs != "") > { > $csFactory = new MgCoordinateSystemFactory(); > $cs = $csFactory->Create($srs); > $metersPerUnit = > $cs->ConvertCoordinateSystemUnitsToMeters(1.0); > $unitsType = $cs->GetUnits(); > } > else > { > $metersPerUnit = 1.0; > $unitsType = GetLocalizedString("DISTANCEMETERS", $locale); > } > > $cs is an instance of MgCoordinateSystem > > $unitsType is the value that gets written to the ajaxmappanel.templ > template and what the status bar uses to write the current position. > > The localized value DISTANCEMETERS defaults to "Meters" in localized\en. > Since your one is in upper case it must have come from the coordinate > system definition. > > So the culprit would seem to be the coordinate system of your map. > > - Jackie > > -- View this message in context: http://n2.nabble.com/Changing-the-status-bar-unit-spelling-tp4163318p4163840.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
Re: [mapguide-users] Changing the status bar unit spelling
Hi Jackie, That allows me to change the strings in the viewer options in the task bar, but not the bottom status bar, as far as I can see- unless I'm missing something obvious! Thanks Jo Jackie Ng wrote: > > Hi Jo, > > All localisable UI text strings should be originating from the > localized\en file > > - Jackie > > > Jo Cook wrote: >> >> Dear All, >> >> Is it possible to change the spelling of "METER" in the ajax viewer >> status bar to the british "Metre(s)"? I have looked in the template files >> but can't seem to find where it's defined- only where to change it to >> Miles. >> This is with Mapguide Open Source 2.1. >> >> Thanks >> >> Jo >> > > -- View this message in context: http://n2.nabble.com/Changing-the-status-bar-unit-spelling-tp4163318p4163508.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] Changing the status bar unit spelling
Dear All, Is it possible to change the spelling of "METER" in the ajax viewer status bar to the british "Metre(s)"? I have looked in the template files but can't seem to find where it's defined- only where to change it to Miles. This is with Mapguide Open Source 2.1. Thanks Jo -- View this message in context: http://n2.nabble.com/Changing-the-status-bar-unit-spelling-tp4163318p4163318.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
Re: [mapguide-users] wms from other providers
Hi Jason, For this data I need a range of options (some of the files are behind a firewall so direct connections are problematic). I definitely seem to need to add the width and height parameters to the config.xml file for the wms FeatureSource, so it would be interesting to see if anyone else has this issue, in which case I think the documentation needs updating. I have dealt with the bounding box issue by removing any references to other EPSG codes- when it's all in EPSG 27700 it seems happy enough. Actually the biggest thing that I've learnt is that dealing with mapinfo data is problematic, especially when it's someone else's... Thanks Jo Jason Birch wrote: > > Jo, > Is it an option to use MapGuide as the WMS provider, or to connect to the > MapInfo files directly? These are both not solutions, but maybe worth > trying if the files are in your control. I'm thinking that the OGR > provider > should allow you to connect to the MapInfo files. > > Jason > > 2009/10/5 Jo Cook > > > -- View this message in context: http://n2.nabble.com/wms-from-other-providers-tp3755455p3776398.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
RE: [mapguide-users] wms from other providers
Hi Gary, Yes, I've figured that out. Unfortunately the data that I have to work with is mapinfo format, which geoserver doesn't seem to currently support. I have, however, got a few tentative steps further- if I add the Width and Height parameters into the config file for my wms FeatureSource, in the section where you can add Time and Elevation parameters, then they are included in the GetMap request, but not all the time, and I'm not sure which changes I made in the interim that stopped them being called. I'm also having issues with the bounding box for the layer being sent in the wrong SRS but I'm not sure yet whether this is a problem with MGOS or mapserver. Thanks Jo Gary Morin wrote: > > I'm not sure if its any help what so ever, but both WMS and WFS work with > GeoServer > > > Regards > > Gary > > > > -- View this message in context: http://n2.nabble.com/wms-from-other-providers-tp3755455p3769449.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
Re: [mapguide-users] wms from other providers
Dear All, I'm bumping my question here, as this is a bit of an urgent deal-breaker type problem for me, and I can't see where in the code to change the format of the getmap request that mapguide sends out. Further digging into the issue with mapserver suggests that width and height are required parameters as per the OGC specs for wms and mapserver has made them a requirement since version 5.0 (it's now on 5.6). Can someone help me out with this? Thanks Jo Jo Cook wrote: > > Dear All, > > I am trying to create a layer from a mapserver wms layer in Mapguide 2.1 > with Maestro. I have followed the instructions in the wiki on how to > create a wms layer, and Maestro reports no errors. When I do getcapability > and getmap requests directly in the browser all is fine. However, the > layer does not display in Mapguide. I have enabled debugging in mapserver, > and it tells me that the getmap request is missing "width which is a > required parameter. When I check in my apache access logs I can see the > getmap request in full, and yes, it is missing both width and height > parameters. > > I understand that making width and height required parameters in mapserver > is quite a recent thing, so how can I ensure that they are sent by > mapguide? I have tried adding them to the server URL for my dataconnection > in mapguide, but while they are included in the getcapabilities request > they are not included in the getmap request. > > Thanks > > Jo > -- View this message in context: http://n2.nabble.com/wms-from-other-providers-tp3755455p3768029.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] wms from other providers
Dear All, I am trying to create a layer from a mapserver wms layer in Mapguide 2.1 with Maestro. I have followed the instructions in the wiki on how to create a wms layer, and Maestro reports no errors. When I do getcapability and getmap requests directly in the browser all is fine. However, the layer does not display in Mapguide. I have enabled debugging in mapserver, and it tells me that the getmap request is missing "width which is a required parameter. When I check in my apache access logs I can see the getmap request in full, and yes, it is missing both width and height parameters. I understand that making width and height required parameters in mapserver is quite a recent thing, so how can I ensure that they are sent by mapguide? I have tried adding them to the server URL for my dataconnection in mapguide, but while they are included in the getcapabilities request they are not included in the getmap request. Thanks Jo -- View this message in context: http://n2.nabble.com/wms-from-other-providers-tp3755455p3755455.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
Re: [mapguide-users] Troubleshooting WMS display problem
Hi Crispin, Thanks for the heads up about Gaia, that looks very useful, but they are not my servers so I don't think I can install new software on them. The sample dataset that I have tried this with is all EPSG 4326, from the layer definition to the map definition... Thanks Jo Crispin_at_1Spatial wrote: > > Jo, > > The last time I had WMS issues I was pointed towards GAIA by Tom > Fukushima: > http://www.thecarbonproject.com/gaia.php > > This helps you to see all the capabilities to check that your WMS server > is serving OK - and should allow you to compare the layers/capabilities > with the WMS service that currently displays and the one from MG that > doesn't. > > You say all your coord systems are set - so this should not be an issue > but we have seen WMS fail to display in MapGuide where the bounding box at > the individual layer level were defined in a different SRS to the bounding > box at the hop of the capabilities. Individual layer SRS need to be the > same as the .MapDefinition! Was that clear? > -- View this message in context: http://n2.nabble.com/Troubleshooting-WMS-display-problem-tp3514589p3515262.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] Troubleshooting WMS display problem
Dear All, I have a MGOS 2 server, serving a WMS feed (of the Sheboygan Sample dataset), sitting on an internal network. I have an MGOS 2.1 server, sitting in a DMZ, with access to the internal MGOS server. Both servers are running on Windows 2003 server. The internal server is using the bundled apache 2 web server and the DMZ server is running with IIS. My problem is that the MGOS server in the DMZ can correctly display a WMS layer from a different WMS server (Geoserver) over the internet, but cannot display the WMS from the internal MGOS server. What I have done: 1) Followed the instructions on configuring a wms feature source using xml files and mapagent. This correctly creates a WMS data connection, and I create a layer from it. The data connection reports no errors, and I can see the coordinate system of the data. 2) I have checked that my coordinate systems are all consistent throughout. 3) I have checked the logs on the internal MGOS server and it appears (with my limited experience) to be logging attempts to access the data, and reports success. There are no errors in the error log for either server. 4) When I create a map, and try and set the display extents, it defaults to -180, -90, 90, 180, so I set these as the bounds that are reported in the properties of the original layer on the internal MGOS server. 5) I have also tried this with a second data source, and the same thing happens... I cannot get command line access to the servers to run MGOS in debug mode, and at present I don't have access to the MGOS server in the DMZ other than through the web interface and Mapguide Maestro. I am aware that this might be more of a networking issue than a Mapguide issue, but since I can see requests on the internal server that relate to the web server, I am assuming routing is happening correctly. I am also wondering if it's because the internal MGOS server is running version 2 rather than 2.1. Any tips on debugging this, or indeed fixing it, would be very much appreciated! Thanks Jo -- View this message in context: http://n2.nabble.com/Troubleshooting-WMS-display-problem-tp3514589p3514589.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
Re: [mapguide-users] Change order of fields displayed in properties pane?
Hi Jackie, That did the trick, thanks. Jo Jackie Ng wrote: > > The properties are sorted before being displayed in the properties pane. > You could try commenting out or removing the following line of code to see > how things go. > > http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ#L2837 > > - Jackie > > > Jo Cook wrote: >> >> Dear All, >> >> Is it possible to specify the order in which fields are displayed in the >> properties pane? Currently it seems to display them in alphabetical >> order, rather than the order in which they appear in the data source. The >> only way I can think of getting round it at the moment is to number all >> of the properties, which will look a bit strange... >> >> Thanks >> >> Jo >> > > -- View this message in context: http://n2.nabble.com/Change-order-of-fields-displayed-in-properties-pane--tp3438480p3457213.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
Re: [mapguide-users] Change order of fields displayed in properties pane?
Hi Andrew (and James) I tried this and couldn't get the change to show up in my web layout. In fact nothing that I did to the property pane seemed to persist through to the layout, so clearly something is going wrong that needs more investigation. Kenneth- I will need to track down exactly what's happening before I can report this as any kind of coherent bug- at the moment my observations would be quite woolly and useless, but I'll see what I can do. Thanks all Jo Andrew DeMerchant wrote: > > Here's a post from James Card to this group from 2006 that's got a > workaround: > > "The other thing I've done is add leading SPACE charcters to the display > name for the field in the Layer setup. Since HTML collapses multiple > spaces into a single space this allows me to specify exactly which order > they sort in. " > > Andrew > > > > On 8/14/2009 11:33 AM, Dave Wilson wrote: >> >> As far as the AJAX Viewer is concerned the order will still be >> alphabetical as far as I know. Realistically an enhancement that lets >> the user drag the fields in the layer editor into an order should >> actually build the query options with the properties in that order. >> When they are read from the query the order should stay the same. >> >> That's probably and RFC. >> >> Dave >> >> *From:* mapguide-users-boun...@lists.osgeo.org >> [mailto:mapguide-users-boun...@lists.osgeo.org] *On Behalf Of *Kenneth >> Skovhede, GEOGRAF A/S >> *Sent:* Friday, August 14, 2009 7:12 AM >> *To:* MapGuide Users Mail List >> *Subject:* Re: [mapguide-users] Change order of fields displayed in >> properties pane? >> >> The preview release, since two or three preview releases ago. >> >> I don't think the join stuff can influence the order. >> >> If you still get unsaved stuff in the preview, be sure to report it, >> so I can fix it before the next major release. >> >> Regards, Kenneth Skovhede, GEOGRAF A/S >> >> >> >> Jo Cook skrev: >> >> It does? Which version? I am currently using the stable version, which is >> playing hell with the properties- if I change the display name (and save) >> it >> sets it back on reload, and none of my changes seem to persist to the >> viewer. Come to think of it, I'm using a joined layer. Is this likely to >> be >> compounding the issue? >> >> Thanks >> >> Jo >> >> Kenneth Skovhede, GEOGRAF A/S wrote: >> >> >> Maestro supports ordering of the properties, but perhaps the viewer >> >> sorts them afterwards. >> >> >> >> Regards, Kenneth Skovhede, GEOGRAF A/S >> >> >> >> >> >> >> >> James Card skrev: >> >> >> >> On Thu, 13 Aug 2009 07:50:21 -0700, Jo >> Cook <mailto:j.c...@oxfordarch.co.uk> >> >> wrote: >> >> >> >> >> >> Is it possible to specify the order in which fields are >> displayed in >> >> the properties pane? Currently it seems to display them in >> >> alphabetical order, rather than the order in which they >> appear in the >> >> data source. The only way I can think of getting round it at >> the >> >> moment is to number all of the properties, which will look a >> bit >> >> strange... >> >> >> >> I don't know of any way to specify the sort order. The workaround >> we >> >> use, rather than numbering the property names, is to insert >> leading >> >> spaces in the property names. This causes them to be sorted >> according >> >> to number of leading spaces, but since HTML collapses whitespace >> to a >> >> single space the display still looks looks good. >> >> >> >> >> >> ___ >> >> mapguide-users mailing list >> >> mapguide-users@lists.osgeo.org >> <mailto:mapguide-users@lists.osgeo.org> >> >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> >> >> >> >> >> >> >> >> >> >> >&
Re: [mapguide-users] Change order of fields displayed in properties pane?
It does? Which version? I am currently using the stable version, which is playing hell with the properties- if I change the display name (and save) it sets it back on reload, and none of my changes seem to persist to the viewer. Come to think of it, I'm using a joined layer. Is this likely to be compounding the issue? Thanks Jo Kenneth Skovhede, GEOGRAF A/S wrote: > > Maestro supports ordering of the properties, but perhaps the viewer > sorts them afterwards. > > Regards, Kenneth Skovhede, GEOGRAF A/S > > > > James Card skrev: >> On Thu, 13 Aug 2009 07:50:21 -0700, Jo Cook >> wrote: >> >>> Is it possible to specify the order in which fields are displayed in >>> the properties pane? Currently it seems to display them in >>> alphabetical order, rather than the order in which they appear in the >>> data source. The only way I can think of getting round it at the >>> moment is to number all of the properties, which will look a bit >>> strange... >> >> I don't know of any way to specify the sort order. The workaround we >> use, rather than numbering the property names, is to insert leading >> spaces in the property names. This causes them to be sorted according >> to number of leading spaces, but since HTML collapses whitespace to a >> single space the display still looks looks good. >> > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://n2.nabble.com/Change-order-of-fields-displayed-in-properties-pane--tp3438480p3443840.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] Change order of fields displayed in properties pane?
Dear All, Is it possible to specify the order in which fields are displayed in the properties pane? Currently it seems to display them in alphabetical order, rather than the order in which they appear in the data source. The only way I can think of getting round it at the moment is to number all of the properties, which will look a bit strange... Thanks Jo -- View this message in context: http://n2.nabble.com/Change-order-of-fields-displayed-in-properties-pane--tp3438480p3438480.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
RE: [mapguide-users] Creating a static image problem
Hi Chris, In the flash of revelation that you only get *after* you've posted to the mailing list, I realised that I couldn't use the default createmapimage.php file from the developers sample, because it didn't include the MgResourceIdentifier("Library://Maps/Map1.MapDefinition") anywhere. Once I included that, it worked just fine. All a learning experience... Thanks Jo Chris Claydon wrote: > > At a first glance, it looks like you may need to save the map you've > created so that it is actually written to the session repository. > > Chris. > > -Original Message- > From: mapguide-users-boun...@lists.osgeo.org > [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jo Cook > Sent: Wednesday, August 12, 2009 9:40 AM > To: mapguide-users@lists.osgeo.org > Subject: [mapguide-users] Creating a static image problem > > > Dear All, > > I am trying to implement the following: > The user selects a property (for example) from a drop-down list and is > taken > to a page with more details, a thumbnail map of the location, and an > option > to click on a link and go to the main map, where the property will be > zoomed > and highlighted. The setup is MGOS 2.1 with apache and php. > > I have managed to implement the second part, opening the main map page, > highlighting the property and zooming to it, with some judicious use of an > example posted elsewhere on the forum. > > However, I'm stuck trying to implement the thumbnail image. I am using the > property report example from the developers guide as my starting point, > and > using the same code that works for highlighting and zooming to create the > selection for the rendering service. So what I want to do is send the > parameters for the map, the scale, the coordinates etc, the selection and > the session to the createmapimage.php file from the developers guide. That > page fails with a resource not found error, pointing at the map resource > (Session:19bacd00-6982-102c-8000-00142acfcbee_en_7F010AFC0AFB0AFA//Map1.Map). > > Here's the php for the file that sends off the selection: > > $args = ($_SERVER['REQUEST_METHOD'] == 'POST') ? $_POST : $_GET; > $mapScale = 3000; > $imageHeight = 300; > $imageWidth = 300; > $SMAlayer = 'Events'; > $SMAlocation = $args['PKEY']; > try > { > if($SMAlayer && $SMAlocation) { > $userInfo = new MgUserInformation("Anonymous", ""); > > $siteConn = new MgSiteConnection(); > $siteConn->Open($userInfo); > $site = new MgSite(); > $site->Open($userInfo); > $sessionId = $site->CreateSession(); > $userInfo->SetMgSessionId($sessionId); > > $resourceSrvc = > $siteConn->CreateService(MgServiceType::ResourceService); > $map = new MgMap(); > $resId = new > MgResourceIdentifier("Library://Maps/Map1.MapDefinition"); > $mapName = $resId->GetName(); > $map->Create($resourceSrvc, $resId, $mapName); > > $layers = $map->GetLayers(); > $selLayer = $layers->GetItem($SMAlayer); > $featureResourceId = new > MgResourceIdentifier($selLayer->GetFeatureSourceId()); > $featureClassName = $selLayer->GetFeatureClassName(); > > $filter = "PKEY = $SMAlocation"; > echo $filter; > $queryOptions = new MgFeatureQueryOptions(); > $queryOptions->SetFilter($filter); > > $featureSrvc = > $siteConn->CreateService(MgServiceType::FeatureService); > $featureReader = $featureSrvc->SelectFeatures($featureResourceId, > $featureClassName, $queryOptions); > > $selection = new MgSelection($map); > $selection->AddFeatures($selLayer, $featureReader, 1); > $selectionXml = $selection->ToXml(); > print_r($selectionXml); > > //get the coordinates for javascript zoom > $geometryReaderWriter = new MgAgfReaderWriter(); > $featureReader = > $featureSrvc->SelectFeatures($featureResourceId, > $featureClassName, $queryOptions); > if($featureReader->ReadNext()) { > $byteReader = $featureReader->GetGeometry("Geometry"); > $geometry = $geometryReaderWriter->Read($byteReader); > $centerPoint = $geometry->GetCentroid(); >
[mapguide-users] Creating a static image problem
Dear All, I am trying to implement the following: The user selects a property (for example) from a drop-down list and is taken to a page with more details, a thumbnail map of the location, and an option to click on a link and go to the main map, where the property will be zoomed and highlighted. The setup is MGOS 2.1 with apache and php. I have managed to implement the second part, opening the main map page, highlighting the property and zooming to it, with some judicious use of an example posted elsewhere on the forum. However, I'm stuck trying to implement the thumbnail image. I am using the property report example from the developers guide as my starting point, and using the same code that works for highlighting and zooming to create the selection for the rendering service. So what I want to do is send the parameters for the map, the scale, the coordinates etc, the selection and the session to the createmapimage.php file from the developers guide. That page fails with a resource not found error, pointing at the map resource (Session:19bacd00-6982-102c-8000-00142acfcbee_en_7F010AFC0AFB0AFA//Map1.Map). Here's the php for the file that sends off the selection: $args = ($_SERVER['REQUEST_METHOD'] == 'POST') ? $_POST : $_GET; $mapScale = 3000; $imageHeight = 300; $imageWidth = 300; $SMAlayer = 'Events'; $SMAlocation = $args['PKEY']; try { if($SMAlayer && $SMAlocation) { $userInfo = new MgUserInformation("Anonymous", ""); $siteConn = new MgSiteConnection(); $siteConn->Open($userInfo); $site = new MgSite(); $site->Open($userInfo); $sessionId = $site->CreateSession(); $userInfo->SetMgSessionId($sessionId); $resourceSrvc = $siteConn->CreateService(MgServiceType::ResourceService); $map = new MgMap(); $resId = new MgResourceIdentifier("Library://Maps/Map1.MapDefinition"); $mapName = $resId->GetName(); $map->Create($resourceSrvc, $resId, $mapName); $layers = $map->GetLayers(); $selLayer = $layers->GetItem($SMAlayer); $featureResourceId = new MgResourceIdentifier($selLayer->GetFeatureSourceId()); $featureClassName = $selLayer->GetFeatureClassName(); $filter = "PKEY = $SMAlocation"; echo $filter; $queryOptions = new MgFeatureQueryOptions(); $queryOptions->SetFilter($filter); $featureSrvc = $siteConn->CreateService(MgServiceType::FeatureService); $featureReader = $featureSrvc->SelectFeatures($featureResourceId, $featureClassName, $queryOptions); $selection = new MgSelection($map); $selection->AddFeatures($selLayer, $featureReader, 1); $selectionXml = $selection->ToXml(); print_r($selectionXml); //get the coordinates for javascript zoom $geometryReaderWriter = new MgAgfReaderWriter(); $featureReader = $featureSrvc->SelectFeatures($featureResourceId, $featureClassName, $queryOptions); if($featureReader->ReadNext()) { $byteReader = $featureReader->GetGeometry("Geometry"); $geometry = $geometryReaderWriter->Read($byteReader); $centerPoint = $geometry->GetCentroid(); $mapCenterX = $centerPoint->GetCoordinate()->GetX(); $mapCenterY = $centerPoint->GetCoordinate()->GetY(); $sitecode = $featureReader->GetString('SITE_CODE'); } } } catch (MgException $e) { echo '' . $e->GetMessage() . ''; echo '' . $e->GetDetails() . ''; } $selectionEncoded = urlencode($selectionXml); $imageUrl = "./devguide/custom_output/createmapimage.php?SESSION=$sessionId&SELECTION=$selectionEncoded&MAPNAME=$mapName&SCALE=$mapScale" . "&HEIGHT=$imageHeight&WIDTH=$imageWidth&CENTERX=$mapCenterX&CENTERY=$mapCenterY"; ?> This correctly picks up the scale, the coordinates, the sitecode etc. createmapimage.php is un-modified from the base setup. I'm very new to this, so I'm stuck trying to figure out what is wrong with what I'm sending to createmapimage.php. If someone could help, I'd be very grateful! Thanks Jo -- View this message in context: http://n2.nabble.com/Creating-a-static-image-problem-tp3431631p3431631.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
Re: [mapguide-users] Highlight selections problem
Hi, I've taken this a little further. Firebug gives me the following error: Error: There must be exactly one feature in the set. This comes from setselection.php, and in particular the lines if($queryInfo) { //Query feature info for the feature in the selection set. This will return the current set //along with property info //There must be only one feature in the feature set $layers = $sel->GetLayers(); if($layers == null || $layers->GetCount() != 1) { echo "Error: There must be exactly one feature in the set."; ///NOXLATE dbg report only return; } (rather than the other instance of this error in that file). I know that the test polygon I am trying to select comprises one feature, and that I am using a unique id so I can't see how there can be more than one feature selected... Thanks Jo Jo Cook wrote: > > Hi Rodolfo, > > I'm actually using a shapefile for my test implementation (as my > postgresql/postgis setup is version 8.4/1.4 which the fdo provider doesn't > like). The field I am using to make the selection is a unique integer- > should that be enough? > Thanks > > Jo > > Rodolfo Moreno wrote: >> >> Hi Jo, >> I thinks that your problem is with your database. does your table >> containing the geometries have primary key and spatial indexs? >> >> regards, >> >> >> Jo Cook wrote: >>> >>> Dear All, >>> >>> I have the fairly common problem of wanting to pick a feature from a >>> database and have the map automatically zoom to the correct location and >>> highlight the feature. I am doing this in php and javascript (MGOS 2.1 >>> with bundled apache configuration), following some extremely helpful >>> code snippets I found in the forum. Thanks! >>> >>> I have now got stuck at the point where a lot of other people seem to >>> get stuck, namely that the map zooms to the correct location and shows >>> in the status bar that one feature is selected, but the feature doesn't >>> show up as highlighted. I understand, from trawling the forum, that I >>> need to save and refresh in order to highlight the feature. >>> >>> The only problem is that I have tried many combinations of map save and >>> selection save, and have looked in the api documentation, and tried >>> figuring out where in my code it needs to go, and nothing seems to work, >>> and now I'm horribly confused as to which of these I am supposed to be >>> using. Am I saving a selection, or saving a map? >>> >>> This is the relevant section of php: >>> >>> $resourceSrvc = >>> $siteConn->CreateService(MgServiceType::ResourceService); >>> $map = new MgMap(); >>> $resId = new >>> MgResourceIdentifier("Library://maps/map1.MapDefinition"); >>> $mapName = $resId->GetName(); >>> $map->Create($resourceSrvc, $resId, $mapName); >>> >>> >>> $layers = $map->GetLayers(); >>> $selLayer = $layers->GetItem($SMAlayer); >>> $featureResourceId = new >>> MgResourceIdentifier($selLayer->GetFeatureSourceId()); >>> $featureClassName = $selLayer->GetFeatureClassName(); >>> >>> >>> $filter = "site_code = '$SMAlocation'"; >>> >>> $queryOptions = new MgFeatureQueryOptions(); >>> $queryOptions->SetFilter($filter); >>> >>> $featureSrvc = >>> $siteConn->CreateService(MgServiceType::FeatureService); >>> $featureReader = $featureSrvc->SelectFeatures($featureResourceId, >>> $featureClassName, $queryOptions); >>> >>> $selection = new MgSelection($map); >>> $selection->AddFeatures($selLayer, $featureReader, 1); >>> $selectionXml = $selection->ToXml(); >>> $selection->Save($resourceSrvc, $mapName); >>> >>> Then this is the javascript >>> >>> >>> >>> var initTimer; >>> >>> function InitDocument() >>> { >>> //wait for map to be fully initialized >>> //then call the initial function >>> initTimer = setInterval(DelayedInit, 200); >>> >>> } >>> >>&g
Re: [mapguide-users] Highlight selections problem
Hi Rodolfo, I'm actually using a shapefile for my test implementation (as my postgresql/postgis setup is version 8.4/1.4 which the fdo provider doesn't like). The field I am using to make the selection is a unique integer- should that be enough? Thanks Jo Rodolfo Moreno wrote: > > Hi Jo, > I thinks that your problem is with your database. does your table > containing the geometries have primary key and spatial indexs? > > regards, > > > Jo Cook wrote: >> >> Dear All, >> >> I have the fairly common problem of wanting to pick a feature from a >> database and have the map automatically zoom to the correct location and >> highlight the feature. I am doing this in php and javascript (MGOS 2.1 >> with bundled apache configuration), following some extremely helpful code >> snippets I found in the forum. Thanks! >> >> I have now got stuck at the point where a lot of other people seem to get >> stuck, namely that the map zooms to the correct location and shows in the >> status bar that one feature is selected, but the feature doesn't show up >> as highlighted. I understand, from trawling the forum, that I need to >> save and refresh in order to highlight the feature. >> >> The only problem is that I have tried many combinations of map save and >> selection save, and have looked in the api documentation, and tried >> figuring out where in my code it needs to go, and nothing seems to work, >> and now I'm horribly confused as to which of these I am supposed to be >> using. Am I saving a selection, or saving a map? >> >> This is the relevant section of php: >> >> $resourceSrvc = >> $siteConn->CreateService(MgServiceType::ResourceService); >> $map = new MgMap(); >> $resId = new >> MgResourceIdentifier("Library://maps/map1.MapDefinition"); >> $mapName = $resId->GetName(); >> $map->Create($resourceSrvc, $resId, $mapName); >> >> >> $layers = $map->GetLayers(); >> $selLayer = $layers->GetItem($SMAlayer); >> $featureResourceId = new >> MgResourceIdentifier($selLayer->GetFeatureSourceId()); >> $featureClassName = $selLayer->GetFeatureClassName(); >> >> >> $filter = "site_code = '$SMAlocation'"; >> >> $queryOptions = new MgFeatureQueryOptions(); >> $queryOptions->SetFilter($filter); >> >> $featureSrvc = >> $siteConn->CreateService(MgServiceType::FeatureService); >> $featureReader = $featureSrvc->SelectFeatures($featureResourceId, >> $featureClassName, $queryOptions); >> >> $selection = new MgSelection($map); >> $selection->AddFeatures($selLayer, $featureReader, 1); >> $selectionXml = $selection->ToXml(); >> $selection->Save($resourceSrvc, $mapName); >> >> Then this is the javascript >> >> >> >> var initTimer; >> >> function InitDocument() >> { >> //wait for map to be fully initialized >> //then call the initial function >> initTimer = setInterval(DelayedInit, 200); >> >> } >> >> function DelayedInit() { >> try { >> if(parent.ViewerFrame.mapFrame.mapInit) { >>clearInterval(initTimer); >>parent.ViewerFrame.mapFrame.ZoomToView(<?php echo $centerX; >> ?>, <?php echo $centerY; ?>, 2000, true); >> var selectionXml = '<?php echo $selectionXml; ?>'; >> >> parent.ViewerFrame.mapFrame.SetSelectionXML(selectionXml); >> parent.ViewerFrame.mapFrame.ExecuteMapAction(1); >> parent.ViewerFrame.mapFrame.Refresh(); >> >> } >> } >> catch(e) {} >> } >> >> >> >> >> >> >> >> >> >> >> >> >> This doesn't work, but doesn't seem to throw up any errors. Any help >> would be very much appreciated! To reiterate, I have searched the >> documentation and forums, but remain confused... >> >> Thanks >> >> Jo >> -- >> - >> Joanne Cook >> Senior IT Support and Development >>
RE: [mapguide-users] Categories.txt still a problem on linux
Hi Jason, It's 8.04 server. I am away for a fortnight on holiday from now, but I'd be very grateful if you do get to try it out. All the best Jo JasonBirch wrote: > > I don't currently have an Ubuntu VM set up for testing MapGuide... What > version are you running if I can find time to get this going again? > > Jason > > -----Original Message- > From: Jo Cook > Subject: RE: [mapguide-users] Categories.txt still a problem on linux > > I notice that mgserver.sh is supposed to set the variables, but when I > check using printenv they don't show up once mgserver is started. > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/Categories.txt-still-a-problem-on-linux-tp19801069p19905546.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
RE: [mapguide-users] Categories.txt still a problem on linux
Hi Jason, I don't know about monitoring tools, but I guess I can have a look. I have tried starting apache first, then mgserver, but that doesn't help either. I notice that mgserver.sh is supposed to set the variables, but when I check using printenv they don't show up once mgserver is started. Thanks Jo JasonBirch wrote: > > Hi Jo, > > Is there any kind of monitoring tool in Linux that shows failed file > opens? MapGuide is obviously not looking in the right place for the > files, but it's hard to know where it IS looking ;) > > It's odd that none of the files are being picked up... I believe those > environmental variables are case sensitive; assuming you set them up in > uppercase? > > Also... This is probably a server issue, but grasping at straws... I > think that Apache may strip out environmental variables when it starts up. > I wonder if there is a way of setting PROJ_LIB and GDAL_DATA in the apache > conf file? > > Jason > > -Original Message- > From: Joanne Cook > Subject: [mapguide-users] Categories.txt still a problem on linux > > After once managing to sort out my categories.txt problem, and being able > to see all of my coordinate systems in linux, it appears this was a one > off and I now can't, either with my original 2.0.1 installation or 2.0.2. > > > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/Categories.txt-still-a-problem-on-linux-tp19801069p19859506.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
Re: [mapguide-users] Still tortured by lack of coordinate systems- on windows this time
Thanks for this, Of course once I had sent my despairing question to the list, after weeks of battling with this issue, it sorted itself out (in both windows and linux!!!) and I don't for the life of me know what fixed it. It's good to see this set out in black and white though because in the various posts before it wasn't exactly clear what files should be where and what environmental variables should be set. Now I just have to try the same thing with MGOS 2.02... Jo Jackie C. Ng wrote: > > Here's the settings of my vanilla MGOS 2.0.2 installation. > > categories.txt is in: > > - C:\Program Files\MapGuideOpenSource2.0\Server\bin > - C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions\www\nad > > coordinate system dictionaries are in: > > - C:\Program Files\MapGuideOpenSource2.0\Server\nad > - C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions\www\nad > > Registry: > > [HKEY_LOCAL_MACHINE\SOFTWARE\MapGuideOpenSource\CoordSys] > > - PROJ_LIB = C:\Program > Files\MapGuideOpenSource2.0\WebServerExtensions\www\nad > > Environment variables (system) > > - PROJ_LIB = C:\Program > Files\MapGuideOpenSource2.0\WebServerExtensions\www\nad > - GDAL_DATA = C:\Program > Files\MapGuideOpenSource2.0\WebServerExtensions\www\data > > Is your configuration any different from this? > > - Jackie > > > Jo Cook wrote: >> >> Hi All, >> >> In an attempt to figure out why I can't fix the lack of coordinate >> systems error, I installed the latest windows version of mapguide open >> source on my win XP machine. And, ha, ha, I have the same issues as >> before, namely that I can only see the arbitrary X-Y coordinate systems. >> >> My experiences seem slightly different to what I find out when I do a >> search- namely that my environment variables (and registry entries) for >> GDAL_DATA and PROJ_LIB are pointed at the nad and data files in >> C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions\www rather >> than C:\Program Files\MapGuideOpenSource2.0\Server\Bin >> >> I have moved categories.txt into the nad and data files in both >> webserverextensions\www and server\bin, and still have the same problem- >> no access to the coordinate systems other than arbitrary X-Y in either >> mapagent or maestro. I have also uninstalled maestro, cleared out all the >> registry entries relating to it, and reinstalled it, and still no result. >> >> If someone can help me out I'd be extremely grateful, as if I can't get >> this fixed I'll have to ditch mapguide and waste the several years I've >> been battling away with it! >> >> Thanks >> >> Jo >> >> - >> Joanne Cook >> Senior IT Support and Development >> Oxford Archaeology (North) >> 01524 880212 >> http://thehumanjourney.net >> >> >> >> -- >> Files attached to this email may be in ISO 26300 format (OASIS Open >> Document Format). If you have difficulty opening them, please visit >> http://iso26300.info for more information. >> >> ___ >> mapguide-users mailing list >> mapguide-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> >> > > -- View this message in context: http://www.nabble.com/Still-tortured-by-lack-of-coordinate-systems--on-windows-this-time-tp19606335p19625658.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
Re: [mapguide-users] Lack of coordinate systems
Hi Kenneth, It certainly seems to be the same problem, but I have tried the solution (copying categories.txt into the both the nad directory and the data directory and setting the PROJ_LIB environment variable to the nad directory) but it doesn't seem to fix the problem. I have checked permissions and this file has exactly the same permissions as everything else in the directory. When I enumerate the coordinate system categories I still only see the arbitrary X-Y option. Can someone who "fixed" this issue confirm whether they copied or moved the categories.txt file from the server directory, what the permissions are on it once it's moved, and whether they have the GDAL_DATA and PROJ_LIB environment variables set when they start the server. I am starting mgserver as root- is this likely to be part of the problem? Thanks Jo Kenneth Skovhede, GEOGRAF A/S wrote: > > Not sure it is the same problem, but the symptoms sound similar: > http://trac.osgeo.org/mapguide/ticket/582 > > Regards, Kenneth Skovhede, GEOGRAF A/S > > > Jackie Ng skrev: >> Does that file have the correct r/w permissions? >> >> - Jackie >> >> >> Joanne Cook wrote: >> >>> Hi All, >>> >>> I've just finished compiling the latest version of mapguide on Ubuntu >>> 8.04, and I (eventually) got through without any (obvious) failures or >>> errors. BUT, when I try and use coordinate systems in either Mapguide >>> Maestro or the webtier tests, I only have access to arbitrary XY >>> coordinate systems. With the webtier tests, if I try and ennumerate the >>> coordinate systems, the category LatLongs is visible but I get the >>> following error: >>> >>> The coordinate system initialization failed. Could not read the category >>> from the category dictionary. >>> >>> If I try and convert EPSG to WKT I get the following error: >>> >>> The coordinate system conversion failed. Could not convert to WKT from >>> EPSG code: 27700. Internal error: Unable to open EPSG support file >>> gcs.csv. Try setting the GDAL_DATA environment variable to point to the >>> directory containing EPSG csv files. >>> >>> I have found the gcs.csv file (in >>> /usr/local/mapguideopensource/server/bin/data) and have set GDAL_DATA to >>> that folder, but it doesn't seem to make any difference and I get the >>> same >>> error message. >>> >>> Any thoughts? >>> >>> Many thanks >>> >>> Jo >>> >>> - >>> Joanne Cook >>> Senior IT Support and Development >>> Oxford Archaeology (North) >>> 01524 880212 >>> http://thehumanjourney.net >>> >>> >>> >>> -- >>> Files attached to this email may be in ISO 26300 format (OASIS Open >>> Document Format). If you have difficulty opening them, please visit >>> http://iso26300.info for more information. >>> >>> ___ >>> 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 > > -- View this message in context: http://www.nabble.com/Lack-of-coordinate-systems-tp19109875p19158773.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
RE: [mapguide-users] Problems with mapagent in Mapguide OS version2onubuntu?
Hi, Ace! Commenting out both lines: AddHandler mgmapagent_handler fcgi and LoadModule mgmapagent_module modules/mod_mgmapagent.so and restarting both mgserver and apache worked for me! Many Thanks Jo Andy Morsell wrote: > > That line was commented out in mapguide.conf. I uncommented it, restarted > Linux and restarted Apache and I am still seeing the same problem. > > > Andy > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fukushima > Sent: Monday, March 03, 2008 12:14 PM > To: MapGuide Users Mail List > Subject: RE: [mapguide-users] Problems with mapagent in Mapguide OS > version2onubuntu? > > Can you check the mapguide.conf file found in > /usr/local/mapguideopensource/webserverextensions/apache/conf and see if > there is an occurrence of fcgi in there? I think that there needs to be a > line: > AddHandler mgmapagent_handler fcgi > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Traian Stanev > Sent: Monday, March 03, 2008 10:48 AM > To: 'MapGuide Users Mail List' > Subject: RE: [mapguide-users] Problems with mapagent in Mapguide OS > version2 > onubuntu? > > Looks like it is sending you back the actual fcgi executable file. Not > sure > what the fix is... > > Traian > > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:mapguide-users- >> [EMAIL PROTECTED] On Behalf Of Andy Morsell >> Sent: Monday, March 03, 2008 12:43 PM >> To: 'MapGuide Users Mail List' >> Subject: RE: [mapguide-users] Problems with mapagent in Mapguide OS >> version2 onubuntu? >> >> Here's what I get in Fiddler from Studio or from any mapagent >> operation from the web tier tests: >> >> HTTP/1.1 200 OK >> Date: Mon, 03 Mar 2008 09:37:31 GMT >> Server: Apache/2.2.4 (Unix) DAV/2 PHP/5.2.1 >> Last-Modified: Mon, 03 Mar 2008 00:11:21 GMT >> ETag: "28f04d-49088f-3a461c40" >> Accept-Ranges: bytes >> Content-Length: 4786319 >> Content-Type: text/plain >> >> ELF >> >> >> >> >> Andy >> >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Traian >> Stanev >> Sent: Monday, March 03, 2008 9:34 AM >> To: 'MapGuide Users Mail List' >> Subject: RE: [mapguide-users] Problems with mapagent in Mapguide OS >> version2 >> onubuntu? >> >> When connecting with Studio, run a tool like Fiddler, in order to >> examine the exact response you are getting from the server. Studio is >> probably swallowing some exception. >> >> Traian >> >> >> > -Original Message- >> > From: [EMAIL PROTECTED] [mailto:mapguide-users- >> > [EMAIL PROTECTED] On Behalf Of Andy Morsell >> > Sent: Monday, March 03, 2008 12:16 PM >> > To: 'MapGuide Users Mail List' >> > Subject: RE: [mapguide-users] Problems with mapagent in Mapguide OS >> > version 2 onubuntu? >> > >> > I just got to the same point on CentOS 5 and am seeing the exact >> > same problems. MapGuide Server starts successfully, PHP and Apache >> > are working. >> > The PHP test page shows MapGuide API support. I was also able to >> > login to mapadmin and successfully load the Sheboygan package. >> > But, I cannot do anything involving the mapagent including any of >> > the operations from the web tier tests and am prompted to download >> > file type fcgi which looks to be ascii. When trying to connect to >> > the >> site >> > via Autodesk MapGuide Studio 2009, I get an "unexpected error in >> > contacting site URL" error. >> > >> > I concur that the problem looks like it is mapagent related and I am >> > unsure where to start trouble-shooting. The big question is did >> > mapagent not build properly, or is there a configuration problem? >> > >> > Jo, out of curiosity, did you find the configure / make / make >> install >> > to take an exorbitant amount of time? I was finding that each step >> in >> > my case was taking about 6 hours. I also ran into make problems the >> > first time through and ended up doing a build_oem.sh --clean and >> > then restarting the process. After that, the install seemed to > complete. >> > >> > >> > >> > Andy Morsell, P.E. >> > Spatial Integrators, Inc. >> > http://www.SpatialGIS.com >> > >&g
RE: [mapguide-users] Problems with mapagent in Mapguide OS version 2 onubuntu?
Hi Andy, This time I didn't find the time too bad, though I have done in the past, when I put it down to not really having enough ram in my virtual machine. Not sure that ever was the solution really! Jo Andy Morsell wrote: > > > Jo, out of curiosity, did you find the configure / make / make install to > take an exorbitant amount of time? I was finding that each step in my > case > was taking about 6 hours. I also ran into make problems the first time > through and ended up doing a build_oem.sh --clean and then restarting the > process. After that, the install seemed to complete. > > > > Andy Morsell, P.E. > Spatial Integrators, Inc. > http://www.SpatialGIS.com > > > -- View this message in context: http://www.nabble.com/Problems-with-mapagent-in-Mapguide-OS-version-2-on-ubuntu--tp15799952s16610p15810425.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] Problems with mapagent in Mapguide OS version 2 on ubuntu?
Hi, I resolved earlier problems by completely rebuilding my MGOS installation from scratch from the latest svn versions and it seemed to get all the way through without failing. I have even managed to get the server to run, which is a step forward. However, I am having problems with mapagent now, I think. What I can do: 1: Connect to mapadmin and load a package 2: Check the basic pages to ensure apache is working 3: Get to the mapagent pages What I can't do: 1: Connect using webstudio (times out) or mapguide studio (unexpected error contacting site URL), or fusion (times out displaying the sample data) 2: Use mapagent in any way. When I try and use any of the options like "Get Capabilities" I just get to download the mapagent.fcgi file, no xml document. The same thing happens when I try to use "Enumerate Reosources" from the URL as suggested in the documentation. If I try and open the fcgi file (in case it's actually an xml file but mis-named) it's gobbledegook. Neither the mgserver logs or apache logs appear to show anything wrong, but I assume this is a problem with mapagent not building or running properly. I'm not really sure how to find out though. Any thoughts? Jo -- View this message in context: http://www.nabble.com/Problems-with-mapagent-in-Mapguide-OS-version-2-on-ubuntu--tp15799952s16610p15799952.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
RE: [mapguide-users] 2.0 rc4 build failing on Ubuntu 7.10
Hi, Everything was up to date but adding the library seemed to work. However... when I tried to start the server I got the following error: [EMAIL PROTECTED]:~$ /usr/local/mapguideopensource/server/bin/mgserver.sh /usr/local/mapguideopensource/server/bin ~ Running the server interactively as an application instead of as a service. (3017783696) Configuration file "serverconfig.ini" cannot be found or cannot be opened. Exception occurred in method MgConfiguration.LoadConfiguration at line 110 in file System/Configuration.cpp (3017783696) Failed to retrieve message for "MgConnectionNotOpenException". Exception occurred in method MgSiteConnection.GetCurrentUserInfo at line 382 in file System/UserInformation.cpp terminate called after throwing an instance of 'MgConnectionNotOpenException*' /usr/local/mapguideopensource/server/bin/mgserver.sh: line 7: 21933 Aborted ./mgserver run serverconfig.ini is present in the server/bin folder and appears to have the same permissions and ownership as everything else in there, and I can open it and read it using nano. Many thanks Jo Jack Lee-3 wrote: > > Hi, > > There are a couple of things you can check/try: > > 1) There was a change in MgHtmlController::GetMapImage recently. Verify > that Common\MapGuideCommon\Controller\HtmlController.cpp is up to date. > If it is, verify that you are not picking up an older version of > libMgMapGuideCommon.so. > > 2) In Web\src\CgiAgent\Makefile.am, add the library MgMapGuideCommon to > the mapagent_LDADD list. > > > Thanks. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jo Cook > Sent: Thursday, February 28, 2008 9:58 AM > To: mapguide-users@lists.osgeo.org > Subject: RE: [mapguide-users] 2.0 rc4 build failing on Ubuntu 7.10 > > > Hi, > > I get: > > U MgHtmlController::GetMapImage(MgMap*, MgSelection*, > std::basic_string, std:: > allocator> const&, MgPropertyCollection*, bool, bool) > > Which seems to be identical to what was in the error message > > Cheers > > Jo > > Jack Lee-3 wrote: >> >> Hi, >> >> What do you get if you execute >> >> nm -C /home/joc/mgsvn/Web/src/HttpHandler/.libs/libMgHttpHandler.so|grep >> MgHtmlController::GetMapImage >> >> ? >> >> >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Jo Cook >> Sent: Thursday, February 28, 2008 8:27 AM >> To: mapguide-users@lists.osgeo.org >> Subject: [mapguide-users] 2.0 rc4 build failing on Ubuntu 7.10 >> >> >> Hi All, >> >> I had a working build of MGOS from svn that I wanted to upgrade to the >> latest and greatest (build 3038 is the one I now have), but the new build >> is >> now failing. >> >> I get all the way through to the final make, but this fails with the >> following error: >> >> Making all in CgiAgent >> make[3]: Entering directory `/home/joc/mgsvn/Web/src/CgiAgent' >> /bin/sh ../../../libtool --tag=CXX --mode=link g++ -O2 -g -pipe >> -march=i386 >> -mcpu=i686 -fno-use-cxa-atexit -fexceptions -o mapagent -version-info >> 7:0:0 -:0:0 -L../../../Oem/ACE/ACE_wrappers/ace >> -L../../../Oem/dbxml-2.3.10/install/lib >> -L../../../Common/CoordinateSystem >> -L../../../Common/MdfModel -L../../../Common/MdfParser >> -L../../../Common/Foundation -L../../../Common/Geometry >> -L../../../Common/PlatformBase -L../../../Common/MapGuideCommon >> -L../HttpHandler MapAgentGetParser.o CgiPostParser.o CgiResponseHandler.o >> MapAgentStrings.o EchoTest.o CgiAgent.o InitializeWebTier.o -lACE >> -lxerces-c >> -lMgFoundation -lMgGeometry -lMgPlatformBase -lMgMdfModel -lMgMdfParser >> -lMgHttpHandler >> libtool: link: warning: `-version-info' is ignored for programs >> g++ -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fexceptions >> -o >> .libs/mapagent MapAgentGetParser.o CgiPostParser.o CgiResponseHandler.o >> MapAgentStrings.o EchoTest.o CgiAgent.o InitializeWebTier.o >> -L/home/joc/mgsvn/Oem/ACE/ACE_wrappers/ace >> -L/home/joc/mgsvn/Oem/dbxml-2.3.10/install/lib >> -L/home/joc/mgsvn/Common/CoordinateSystem >> -L/home/joc/mgsvn/Common/MdfModel >> -L/home/joc/mgsvn/Common/MdfParser -L/home/joc/mgsvn/Common/Foundation >> -L/home/joc/mgsvn/Common/Geometry -L/home/joc/mgsvn/Common/PlatformBase >> -L/home/joc/mgsvn/Common/MapGuideCommon >> -L/home/joc/mgsvn/Web/src/HttpHandler -lACE -lxerces-c >> /home/joc/mgsvn/Common/Foundation/.libs/libMgFoundation.so >> /home/joc/mgsvn/Common/Geometry/.libs/libMgGeometry.so >> /ho
RE: [mapguide-users] 2.0 rc4 build failing on Ubuntu 7.10
Hi, Everything was up to date but adding the library seemed to work. However... when I tried to start the server I got the following error: [EMAIL PROTECTED]:~$ /usr/local/mapguideopensource/server/bin/mgserver.sh /usr/local/mapguideopensource/server/bin ~ Running the server interactively as an application instead of as a service. (3017783696) Configuration file "serverconfig.ini" cannot be found or cannot be opened. Exception occurred in method MgConfiguration.LoadConfiguration at line 110 in file System/Configuration.cpp (3017783696) Failed to retrieve message for "MgConnectionNotOpenException". Exception occurred in method MgSiteConnection.GetCurrentUserInfo at line 382 in file System/UserInformation.cpp terminate called after throwing an instance of 'MgConnectionNotOpenException*' /usr/local/mapguideopensource/server/bin/mgserver.sh: line 7: 21933 Aborted ./mgserver run serverconfig.ini is present in the server/bin folder and appears to have the same permissions and ownership as everything else in there, and I can open it and read it using nano. Many thanks Jo Jack Lee-3 wrote: > > Hi, > > There are a couple of things you can check/try: > > 1) There was a change in MgHtmlController::GetMapImage recently. Verify > that Common\MapGuideCommon\Controller\HtmlController.cpp is up to date. > If it is, verify that you are not picking up an older version of > libMgMapGuideCommon.so. > > 2) In Web\src\CgiAgent\Makefile.am, add the library MgMapGuideCommon to > the mapagent_LDADD list. > > > Thanks. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jo Cook > Sent: Thursday, February 28, 2008 9:58 AM > To: mapguide-users@lists.osgeo.org > Subject: RE: [mapguide-users] 2.0 rc4 build failing on Ubuntu 7.10 > > > Hi, > > I get: > > U MgHtmlController::GetMapImage(MgMap*, MgSelection*, > std::basic_string, std:: > allocator> const&, MgPropertyCollection*, bool, bool) > > Which seems to be identical to what was in the error message > > Cheers > > Jo > > Jack Lee-3 wrote: >> >> Hi, >> >> What do you get if you execute >> >> nm -C /home/joc/mgsvn/Web/src/HttpHandler/.libs/libMgHttpHandler.so|grep >> MgHtmlController::GetMapImage >> >> ? >> >> >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Jo Cook >> Sent: Thursday, February 28, 2008 8:27 AM >> To: mapguide-users@lists.osgeo.org >> Subject: [mapguide-users] 2.0 rc4 build failing on Ubuntu 7.10 >> >> >> Hi All, >> >> I had a working build of MGOS from svn that I wanted to upgrade to the >> latest and greatest (build 3038 is the one I now have), but the new build >> is >> now failing. >> >> I get all the way through to the final make, but this fails with the >> following error: >> >> Making all in CgiAgent >> make[3]: Entering directory `/home/joc/mgsvn/Web/src/CgiAgent' >> /bin/sh ../../../libtool --tag=CXX --mode=link g++ -O2 -g -pipe >> -march=i386 >> -mcpu=i686 -fno-use-cxa-atexit -fexceptions -o mapagent -version-info >> 7:0:0 -:0:0 -L../../../Oem/ACE/ACE_wrappers/ace >> -L../../../Oem/dbxml-2.3.10/install/lib >> -L../../../Common/CoordinateSystem >> -L../../../Common/MdfModel -L../../../Common/MdfParser >> -L../../../Common/Foundation -L../../../Common/Geometry >> -L../../../Common/PlatformBase -L../../../Common/MapGuideCommon >> -L../HttpHandler MapAgentGetParser.o CgiPostParser.o CgiResponseHandler.o >> MapAgentStrings.o EchoTest.o CgiAgent.o InitializeWebTier.o -lACE >> -lxerces-c >> -lMgFoundation -lMgGeometry -lMgPlatformBase -lMgMdfModel -lMgMdfParser >> -lMgHttpHandler >> libtool: link: warning: `-version-info' is ignored for programs >> g++ -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fexceptions >> -o >> .libs/mapagent MapAgentGetParser.o CgiPostParser.o CgiResponseHandler.o >> MapAgentStrings.o EchoTest.o CgiAgent.o InitializeWebTier.o >> -L/home/joc/mgsvn/Oem/ACE/ACE_wrappers/ace >> -L/home/joc/mgsvn/Oem/dbxml-2.3.10/install/lib >> -L/home/joc/mgsvn/Common/CoordinateSystem >> -L/home/joc/mgsvn/Common/MdfModel >> -L/home/joc/mgsvn/Common/MdfParser -L/home/joc/mgsvn/Common/Foundation >> -L/home/joc/mgsvn/Common/Geometry -L/home/joc/mgsvn/Common/PlatformBase >> -L/home/joc/mgsvn/Common/MapGuideCommon >> -L/home/joc/mgsvn/Web/src/HttpHandler -lACE -lxerces-c >> /home/joc/mgsvn/Common/Foundation/.libs/libMgFoundation.so >> /home/joc/mgsvn/Common/Geometry/.libs/libMgGeometry.so >> /ho
RE: [mapguide-users] 2.0 rc4 build failing on Ubuntu 7.10
Hi, I get: U MgHtmlController::GetMapImage(MgMap*, MgSelection*, std::basic_string, std:: allocator> const&, MgPropertyCollection*, bool, bool) Which seems to be identical to what was in the error message Cheers Jo Jack Lee-3 wrote: > > Hi, > > What do you get if you execute > > nm -C /home/joc/mgsvn/Web/src/HttpHandler/.libs/libMgHttpHandler.so|grep > MgHtmlController::GetMapImage > > ? > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jo Cook > Sent: Thursday, February 28, 2008 8:27 AM > To: mapguide-users@lists.osgeo.org > Subject: [mapguide-users] 2.0 rc4 build failing on Ubuntu 7.10 > > > Hi All, > > I had a working build of MGOS from svn that I wanted to upgrade to the > latest and greatest (build 3038 is the one I now have), but the new build > is > now failing. > > I get all the way through to the final make, but this fails with the > following error: > > Making all in CgiAgent > make[3]: Entering directory `/home/joc/mgsvn/Web/src/CgiAgent' > /bin/sh ../../../libtool --tag=CXX --mode=link g++ -O2 -g -pipe > -march=i386 > -mcpu=i686 -fno-use-cxa-atexit -fexceptions -o mapagent -version-info > 7:0:0 -:0:0 -L../../../Oem/ACE/ACE_wrappers/ace > -L../../../Oem/dbxml-2.3.10/install/lib -L../../../Common/CoordinateSystem > -L../../../Common/MdfModel -L../../../Common/MdfParser > -L../../../Common/Foundation -L../../../Common/Geometry > -L../../../Common/PlatformBase -L../../../Common/MapGuideCommon > -L../HttpHandler MapAgentGetParser.o CgiPostParser.o CgiResponseHandler.o > MapAgentStrings.o EchoTest.o CgiAgent.o InitializeWebTier.o -lACE > -lxerces-c > -lMgFoundation -lMgGeometry -lMgPlatformBase -lMgMdfModel -lMgMdfParser > -lMgHttpHandler > libtool: link: warning: `-version-info' is ignored for programs > g++ -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fexceptions > -o > .libs/mapagent MapAgentGetParser.o CgiPostParser.o CgiResponseHandler.o > MapAgentStrings.o EchoTest.o CgiAgent.o InitializeWebTier.o > -L/home/joc/mgsvn/Oem/ACE/ACE_wrappers/ace > -L/home/joc/mgsvn/Oem/dbxml-2.3.10/install/lib > -L/home/joc/mgsvn/Common/CoordinateSystem > -L/home/joc/mgsvn/Common/MdfModel > -L/home/joc/mgsvn/Common/MdfParser -L/home/joc/mgsvn/Common/Foundation > -L/home/joc/mgsvn/Common/Geometry -L/home/joc/mgsvn/Common/PlatformBase > -L/home/joc/mgsvn/Common/MapGuideCommon > -L/home/joc/mgsvn/Web/src/HttpHandler -lACE -lxerces-c > /home/joc/mgsvn/Common/Foundation/.libs/libMgFoundation.so > /home/joc/mgsvn/Common/Geometry/.libs/libMgGeometry.so > /home/joc/mgsvn/Common/PlatformBase/.libs/libMgPlatformBase.so > /home/joc/mgsvn/Common/MdfModel/.libs/libMgMdfModel.so > /home/joc/mgsvn/Common/MdfParser/.libs/libMgMdfParser.so > /home/joc/mgsvn/Web/src/HttpHandler/.libs/libMgHttpHandler.so > -Wl,/usr/local/mapguideopensource/lib -Wl,--rpath > -Wl,/usr/local/mapguideopensource/webserverextensions/lib > /home/joc/mgsvn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined > reference to `MgHtmlController::GetMapImage(MgMap*, MgSelection*, > std::basic_string, > std::allocator > const&, MgPropertyCollection*, bool, bool)' > collect2: ld returned 1 exit status > make[3]: *** [mapagent] Error 1 > make[3]: Leaving directory `/home/joc/mgsvn/Web/src/CgiAgent' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/joc/mgsvn/Web/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/joc/mgsvn/Web' > make: *** [all-recursive] Error 1 > > I remember a similar problem a few months ago to do with a missing > reference > to liblibjson, which was resolved by adding some extra libraries to > cgiagent/makefile.am, but I'm not really sure where to go with this. > > Can anyone help? > > Many thanks > > Jo > -- > View this message in context: > http://www.nabble.com/2.0-rc4-build-failing-on-Ubuntu-7.10-tp15736315s16610p15736315.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 mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/2.0-rc4-build-failing-on-Ubuntu-7.10-tp15736315s16610p15738163.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] 2.0 rc4 build failing on Ubuntu 7.10
Hi All, I had a working build of MGOS from svn that I wanted to upgrade to the latest and greatest (build 3038 is the one I now have), but the new build is now failing. I get all the way through to the final make, but this fails with the following error: Making all in CgiAgent make[3]: Entering directory `/home/joc/mgsvn/Web/src/CgiAgent' /bin/sh ../../../libtool --tag=CXX --mode=link g++ -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fexceptions -o mapagent -version-info 7:0:0 -:0:0 -L../../../Oem/ACE/ACE_wrappers/ace -L../../../Oem/dbxml-2.3.10/install/lib -L../../../Common/CoordinateSystem -L../../../Common/MdfModel -L../../../Common/MdfParser -L../../../Common/Foundation -L../../../Common/Geometry -L../../../Common/PlatformBase -L../../../Common/MapGuideCommon -L../HttpHandler MapAgentGetParser.o CgiPostParser.o CgiResponseHandler.o MapAgentStrings.o EchoTest.o CgiAgent.o InitializeWebTier.o -lACE -lxerces-c -lMgFoundation -lMgGeometry -lMgPlatformBase -lMgMdfModel -lMgMdfParser -lMgHttpHandler libtool: link: warning: `-version-info' is ignored for programs g++ -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fexceptions -o .libs/mapagent MapAgentGetParser.o CgiPostParser.o CgiResponseHandler.o MapAgentStrings.o EchoTest.o CgiAgent.o InitializeWebTier.o -L/home/joc/mgsvn/Oem/ACE/ACE_wrappers/ace -L/home/joc/mgsvn/Oem/dbxml-2.3.10/install/lib -L/home/joc/mgsvn/Common/CoordinateSystem -L/home/joc/mgsvn/Common/MdfModel -L/home/joc/mgsvn/Common/MdfParser -L/home/joc/mgsvn/Common/Foundation -L/home/joc/mgsvn/Common/Geometry -L/home/joc/mgsvn/Common/PlatformBase -L/home/joc/mgsvn/Common/MapGuideCommon -L/home/joc/mgsvn/Web/src/HttpHandler -lACE -lxerces-c /home/joc/mgsvn/Common/Foundation/.libs/libMgFoundation.so /home/joc/mgsvn/Common/Geometry/.libs/libMgGeometry.so /home/joc/mgsvn/Common/PlatformBase/.libs/libMgPlatformBase.so /home/joc/mgsvn/Common/MdfModel/.libs/libMgMdfModel.so /home/joc/mgsvn/Common/MdfParser/.libs/libMgMdfParser.so /home/joc/mgsvn/Web/src/HttpHandler/.libs/libMgHttpHandler.so -Wl,/usr/local/mapguideopensource/lib -Wl,--rpath -Wl,/usr/local/mapguideopensource/webserverextensions/lib /home/joc/mgsvn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `MgHtmlController::GetMapImage(MgMap*, MgSelection*, std::basic_string, std::allocator > const&, MgPropertyCollection*, bool, bool)' collect2: ld returned 1 exit status make[3]: *** [mapagent] Error 1 make[3]: Leaving directory `/home/joc/mgsvn/Web/src/CgiAgent' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/joc/mgsvn/Web/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/joc/mgsvn/Web' make: *** [all-recursive] Error 1 I remember a similar problem a few months ago to do with a missing reference to liblibjson, which was resolved by adding some extra libraries to cgiagent/makefile.am, but I'm not really sure where to go with this. Can anyone help? Many thanks Jo -- View this message in context: http://www.nabble.com/2.0-rc4-build-failing-on-Ubuntu-7.10-tp15736315s16610p15736315.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] making progress with postgis connection on ubuntu
Hi all, After having yet another attempt at compiling and installing MGOS on Ubuntu 7.10, including all the various fixes that have been suggested, and the latest svn updates I think I'm making some progress. However, my copy of Autodesk Map Studio isn't working at the moment (crashing with a dotnet error when you try and connect to a server- countless uninstalls don't seem to have helped) so I need to get it working just using mapagent and webstudio. When I run "Get Feature Providers" in mapagent the postgis provider now comes through with a fully formed entry (it didn't before), and when I run "Test Connection" I get an error about my connection string being wrong rather than errors about being unable to load the library. I'm taking this a step forward, but I'm kind of stuck as to exactly what the connection string should look like. Can someone either tell me what the connection string should look like for postgis, or send me the xml resource file for a working connection so I can edit it for my setup? Also, I am still unable to make a connection with ogr- I have used the connection string that gives me the correct result for ogrinfo, but get errors for that as well. The string I am using is: PG: host=host user=user password=password dbname=database But this just gives me the error "connect failed" Many thanks Jo -- View this message in context: http://www.nabble.com/making-progress-with-postgis-connection-on-ubuntu-tp14314885s16610p14314885.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
RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu
Hi Jason, That removes the error when I run ldd -r libPostGISProviders.so, but I still can't load the library when I use mapguide studio or when I try the "test connection" option in the webtier tests. I will try rebuilding with that library in place and see what happens... I take it that's worked OK for you? Jo JasonBirch wrote: > > Jo, > > Can you try the following, and see if the PostGIS provider works for > you? > > sudo apt-get install libpq-dev > > ? > > Thanks, > Jason > > -Original Message- > From: Jo Cook > Subject: RE: [mapguide-users] Not much luck with ogr or postgis on > Ubuntu > > I made the change, rebuilt the whole fdo stack (including updating from > the > svn) and it didn't seem to make any difference. When I run ldd -r > libPostGISProviders.so I still get the same error. > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/RE%3A-Not-much-luck-with-ogr-or-postgis-on-%09Ubuntu-tf4924763s16610.html#a14209174 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
RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu
Hi, I made the change, rebuilt the whole fdo stack (including updating from the svn) and it didn't seem to make any difference. When I run ldd -r libPostGISProviders.so I still get the same error. Many thanks Jo gregboone wrote: > > Please generate an FDO Ticket to track this issue so it can be resolved in > an upcoming build/release. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jack Lee > Sent: Friday, November 30, 2007 1:09 PM > To: MapGuide Users Mail List > Subject: RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu > > Hi, > > The crypt library seems to be missing from PostGIS/Src/Makefile.am > > You can try changing > >-lpq > > to > > -lpq \ > -lcrypt > > > in Makefile.am and rebuild. > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Joanne Cook > Sent: Freitag, 30. November 2007 12:35 > To: mapguide-users@lists.osgeo.org > Subject: RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu > > Hi All, > > I seem to be unable to answer mailing list messages in nabble at the > moment, and only get the daily digest otherwise, so here goes: > > 1: Dave suggested there should be Provider.so files in the FDO/bin > directory but I don't have that- only /usr/local/fdo-3.3.0/lib and they > are all in there. Doing a search for one of the other providers seems to > suggest that's the only location for all of them, which may be wrong? > > 2: Running ldd -r on libPostGISProvider.so gives me the following line > that I don't get when I run any of the others (including ogr): undefined > symbol: crypt (./libPostGISProvider.so) > > 3: Not sure how to use LD_LIBRARY_PATH, but running echo $LD_LIBRARY_PATH > doesn't give me anything > > Thanks for all the replies > > Jo > > > > > Message: 40 > Date: Fri, 30 Nov 2007 08:38:14 -0800 > From: "Jason Birch" <[EMAIL PROTECTED]> > Subject: RE: [mapguide-users] Not much luck with ogr or postgis on > Ubuntu > To: "MapGuide Users Mail List" , > <[EMAIL PROTECTED]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="US-ASCII" > > > I ran into the same problem the last time I checked. Perhaps we need to > put the PostGIS and OGR shared libraries into the include path before > running MapGuide or something? I unfortunately don't know enough about > this stuff works on *nix to be able to figure out where to start. Is > there something equivalent to depends.exe on windows? > > > > Are the .so files for the drivers to talk to PostGIS or OGR in some > directory other than the FDO/bin directory? If so then add the path to the > LD_LIBRARY_PATH and try again. Otherwise copy the .so files into the > FDO/bin folder. > > At least that's how the other FDO providers work. The.so files need to be > in the same folder or in the system path. > > Dave > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jason Birch > Sent: Friday, November 30, 2007 9:38 AM > To: MapGuide Users Mail List; [EMAIL PROTECTED] > Subject: RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu > > > I ran into the same problem the last time I checked. Perhaps we need to > put the PostGIS and OGR shared libraries into the include path before > running MapGuide or something? I unfortunately don't know enough about > this stuff works on *nix to be able to figure out where to start. Is > there something equivalent to depends.exe on windows? > > I can't start my VM right now, but if you look in your FDO directory, > can you see whether the appropriate provider library files were built > for these? > > Any FDO folks have any ideas about this? > > Jason > > > > > > > -- > Files attached to this email may be in ISO 26300 format (OASIS Open > Document Format). If you have difficulty opening them, please visit > http://iso26300.info for more information. > > ___ > 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 > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/RE%3A-Not-much-luck-with-ogr-or-postgis-on-%09Ubuntu-tf4924763s16610.html#a14127003 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] Not much luck with ogr or postgis on Ubuntu
Hi All, I have managed to build MGOS2 on Ubuntu 7.04 with help from Jason's great instructions on the wiki. However, when I try and make a new data connection with either postgis or ogr I get errors. In mapguide studio when I try to make a postgis connection I get the default feature editor screen and errors in my error log saying CLNT_8_UNABLE_TO_LOAD_LIBRARY. When I make an ogr connection I get the proper editor (with data source and readonly connection options) but I get a connection failed error when I try and test the connection. The error log says CLNT_4_PROVIDERNOTREGISTERED. I have tested my connection string with ogrinfo and it works, and I have checked that both providers are in my providers.xml file. I have also tested both connection strings with testconnection in the web tier test suite and both give me the CLNT_4_PROVIDERNOTREGISTERED error. Has anyone successfully managed to use either of these connectors with Ubuntu, and how do I begin debugging the problem? Many thanks Jo -- View this message in context: http://www.nabble.com/Not-much-luck-with-ogr-or-postgis-on-Ubuntu-tf4910839s16610.html#a14059963 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
RE: [mapguide-users] MGOS 2 build freezing on Ubuntu 7.10
Hi Jason, I tried to apply your patch and it didn't work (it said it was garbage!) but I made the changes to the makefile.am and it all seemed to install. However, I immediately screeched to a halt when I tried to make a postgis data connection and got the error: An exception occurred in FDO component CLNT_8_UNABLE_TO_LOAD_LIBRARY Exception occurred in method MgFdoConnectionManager.Open at line 262 in file Fdo.ConnectionManager.cpp Have you had any success with the postgis data connector on Ubuntu? Thanks for all your help Jo JasonBirch wrote: > > Hmm. Maybe I'll max mine out and see if I can get a faster build :) > > I've attached a .patch to the ticket that will fix the Makefile.am with > these changes. > > http://trac.osgeo.org/mapguide/ticket/347 > > The easiest way to apply this patch (and others from Trac): > > sudo apt-get install curl > > cd ~/mgsvn/Web/src/CgiAgent > > curl > http://trac.osgeo.org/mapguide/attachment/ticket/347/CgiAgent_Makefile.a > m.patch?format=raw | patch > > Then you just go back to the ~/mgsvn and start again from "Go for the > gusto". Note, I haven't actually tried this without cleaning up > first... not sure how the automake/autoconf thing deals with modified > makefiles. > > Some other tools that are useful: > > sudo apt-get install subversion-tools > > Running svn-clean will remove any files that are not under version > control, so it cleans up nicely after a build. Before running a clean > build, I clear out the /usr/local/ fdo and mapguide directories, run > svn-clean on ~/fdosvn and ~/mgsvn, and then do an svn update. > > Jason > > -Original Message- > From: Jo Cook > Subject: RE: [mapguide-users] MGOS 2 build freezing on Ubuntu 7.10 > > Great, I'll give it a try. I managed to speed it up by doubling the > amount of RAM my VM was trying to use, and that did seem to help. Worth > knowing in future... > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/MGOS-2-build-freezing-on-Ubuntu-7.10-tf4881293s16610.html#a14042562 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
RE: [mapguide-users] MGOS 2 build freezing on Ubuntu 7.10
Hi Jason, Great, I'll give it a try. I managed to speed it up by doubling the amount of RAM my VM was trying to use, and that did seem to help. Worth knowing in future... Jo JasonBirch wrote: > > Wow, that's insane... 12 hours... > > I think I've hacked past it by modifying the Makefile directly. Now I'm > going to have to figure out the build system (configure, etc) to make a > patch. If you're interested, the last line in each of these sections is > what I changed in the Makefile in ~/mgsvn/Web/src/CgiAgent/ > > mapagent_LDADD = -lACE \ > -lxerces-c \ > -lMgFoundation \ > -lMgGeometry \ > -lMgPlatformBase \ > -lMgMdfModel \ > -lMgMdfParser \ > -lMgHttpHandler \ > -llib_json > > mapagent_LDFLAGS = -version-info 7:0:0 \ > -L../../../Oem/ACE/ACE_wrappers/ace \ > -L../../../Oem/dbxml-2.3.10/install/lib \ > -L$(top_builddir)/$(map_coordsys_dir_path) \ > -L../../../Common/MdfModel \ > -L../../../Common/MdfParser \ > -L../../../Common/Foundation \ > -L../../../Common/Geometry \ > -L../../../Common/PlatformBase \ > -L../../../Common/MapGuideCommon \ > -L../HttpHandler \ > -L../../../Oem/jsoncpp/lib > > Jason > > http://trac.osgeo.org/mapguide/ticket/347 > > -Original Message- > From: Jo Cook > Subject: RE: [mapguide-users] MGOS 2 build freezing on Ubuntu 7.10 > > After letting the build run for over 12 hours it finally got through > that issue... and failed at the missing json file that you filed the bug > ticket for. Have you managed to get it past this point yet? I was using > revision 2520, but the later ones don't seem to address your ticket. > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/MGOS-2-build-freezing-on-Ubuntu-7.10-tf4881293s16610.html#a14031523 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
RE: [mapguide-users] MGOS 2 build freezing on Ubuntu 7.10
Hi Jason, After letting the build run for over 12 hours it finally got through that issue... and failed at the missing json file that you filed the bug ticket for. Have you managed to get it past this point yet? I was using revision 2520, but the later ones don't seem to address your ticket. All the best Jo JasonBirch wrote: > > > I don't think I've done anything differently than the 7.10 wiki page > specifies; I was confirming and editing as I went along and I've done it > twice from scratch now (but not back to bare-bones for installed > packages). I do have OpenSSH server installed, but I think that's it? > I am running a different version of VMWare than you (6.0.1b55017). > > I'll see if I can find time to do the whole thing from OS level sometime > this week. Building FDO and MapGuide on this VM takes a _long_ time > though. :) > > Jason > > -Original Message- > From: Jo Cook > Subject: RE: [mapguide-users] MGOS 2 build freezing on Ubuntu 7.10 > > I've tried the whole thing from scratch today, with a brand new virtual > machine and the latest download, and it still seems to be freezing at > exactly the same point. I am trying a 7.04 server this time, but the > instructions hold and like I said it stops at exactly the same point. I > left it for several hours in the hope that I was just being impatient > but it didn't progress. It seems to be freezing at something to do with > the ServerFeatureServiceBuild. The odd thing is that the disk icon on > the vm goes from flashing on and off to constantly on- like the vm is > working really hard at this point. > > Am now worried that it's something to do with the version of VMware that > I'm using (version 5)- are you using a VM? Have you done anything > different to the instructions on the wiki? > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/MGOS-2-build-freezing-on-Ubuntu-7.10-tf4881293s16610.html#a14022554 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
RE: [mapguide-users] MGOS 2 build freezing on Ubuntu 7.10
Hi Jason, I've tried the whole thing from scratch today, with a brand new virtual machine and the latest download, and it still seems to be freezing at exactly the same point. I am trying a 7.04 server this time, but the instructions hold and like I said it stops at exactly the same point. I left it for several hours in the hope that I was just being impatient but it didn't progress. It seems to be freezing at something to do with the ServerFeatureServiceBuild. The odd thing is that the disk icon on the vm goes from flashing on and off to constantly on- like the vm is working really hard at this point. Am now worried that it's something to do with the version of VMware that I'm using (version 5)- are you using a VM? Have you done anything different to the instructions on the wiki? Cheers Jo JasonBirch wrote: > > Hmm... > > I just got through building 2517 (mostly) and I think I got farther than > you did but then ran into a missing jsoncpp reference: > > http://trac.osgeo.org/mapguide/ticket/347 > > Jason > > -Original Message- > From: Jo Cook > Subject: RE: [mapguide-users] MGOS 2 build freezing on Ubuntu 7.10 > > It's revision 2514, updated earlier on today > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/MGOS-2-build-freezing-on-Ubuntu-7.10-tf4881293s16610.html#a14003827 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
RE: [mapguide-users] MGOS 2 build freezing on Ubuntu 7.10
Hi Jason, It's revision 2514, updated earlier on today Thanks Jo JasonBirch wrote: > > Hi Jo, > > do you know what revision of the SVN repository you are working with? I > can see if I can replicate it here... > > Jason > > -----Original Message- > From: Jo Cook > Subject: [mapguide-users] MGOS 2 build freezing on Ubuntu 7.10 > > I'm working through the instructions on the wiki for installing mgos on > ubuntu 7.10, and getting most of the way through the build (to the final > make in fact), and it gets some way through the build then seems to stop > responding. > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/MGOS-2-build-freezing-on-Ubuntu-7.10-tf4881293s16610.html#a13974995 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] MGOS 2 build freezing on Ubuntu 7.10
Hi All, I'm working through the instructions on the wiki for installing mgos on ubuntu 7.10, and getting most of the way through the build (to the final make in fact), and it gets some way through the build then seems to stop responding. No errors, just stops. I left it overnight in case it was just slow, but it didn't progress. I'm building this in a vm and the hard disk icon seems to suggest there's disk activity but nothing's happening... I'm having trouble transferring the log file off my vm at the moment, but it seems to be freezing in the services/rendering section, if that's any help. Has anyone else had problems like this? All the best Jo -- View this message in context: http://www.nabble.com/MGOS-2-build-freezing-on-Ubuntu-7.10-tf4881293s16610.html#a13969464 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
RE: [mapguide-users] Problems with new fdo ogr build on Ubuntu 6.06
Hi, I checked out an updated version, and sure enough the file then appeared. However, the build then failed at a slightly different point: === make[2]: Leaving directory `/home/joc/fdosvn/Providers/PostGIS/Src/Overrides' Making all in Provider make[2]: Entering directory `/home/joc/fdosvn/Providers/PostGIS/Src/Provider' if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"FDOPOSTGIS\" -DPACKAGE_TARNAME=\"fdopostgis\" -DPACKAGE_VERSION=\"3.3.0\" -DPACKAGE_STRING=\"FDOPOSTGIS\ 3.3.0\" -DPACKAGE_BUGREPORT=\"http://fdo.osgeo.org\"; -DPACKAGE=\"fdopostgis\" -DVERSION=\"3.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I../ -I../../Inc -I../Message/Inc/ -I../../../../Fdo/Unmanaged/Inc -I../../../../Utilities/Common/Inc -I../../../../Thirdparty/pgsql/include-O2 -MMD -MT -D__USE_GNU -DLINUX -DLINUX_IA32 -MT ApplySchemaCommand.lo -MD -MP -MF ".deps/ApplySchemaCommand.Tpo" -c -o ApplySchemaCommand.lo ApplySchemaCommand.cpp; \ then mv -f ".deps/ApplySchemaCommand.Tpo" ".deps/ApplySchemaCommand.Plo"; else rm -f ".deps/ApplySchemaCommand.Tpo"; exit 1; fi mkdir .libs g++ -DPACKAGE_NAME=\"FDOPOSTGIS\" -DPACKAGE_TARNAME=\"fdopostgis\" -DPACKAGE_VERSION=\"3.3.0\" "-DPACKAGE_STRING=\"FDOPOSTGIS 3.3.0\"" -DPACKAGE_BUGREPORT=\"http://fdo.osgeo.org\"; -DPACKAGE=\"fdopostgis\" -DVERSION=\"3.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I../ -I../../Inc -I../Message/Inc/ -I../../../../Fdo/Unmanaged/Inc -I../../../../Utilities/Common/Inc -I../../../../Thirdparty/pgsql/include -O2 -MMD -MT -D__USE_GNU -DLINUX -DLINUX_IA32 -MT ApplySchemaCommand.lo -MD -MP -MF .deps/ApplySchemaCommand.Tpo -c ApplySchemaCommand.cpp -fPIC -DPIC -o .libs/ApplySchemaCommand.o In file included from Connection.h:20, from Command.h:20, from ApplySchemaCommand.h:20, from ApplySchemaCommand.cpp:20: SchemaDescription.h:24:33: warning: boost/noncopyable.hpp: No such file or directory In file included from Connection.h:22, from Command.h:20, from ApplySchemaCommand.h:20, from ApplySchemaCommand.cpp:20: PgUtility.h:26:33: warning: boost/tuple/tuple.hpp: No such file or directory In file included from ApplySchemaCommand.h:20, from ApplySchemaCommand.cpp:20: Command.h:29:28: warning: boost/format.hpp: No such file or directory In file included from ApplySchemaCommand.cpp:22: PgGeometry.h:22:29: warning: boost/cstdint.hpp: No such file or directory PgGeometry.h:23:33: warning: boost/type_traits.hpp: No such file or directory PgGeometry.h:24:35: warning: boost/static_assert.hpp: No such file or directory SchemaDescription.h:40: error: 'boost' has not been declared SchemaDescription.h:41: error: expected class-name before '{' token PgUtility.h:39: error: 'boost' has not been declared PgUtility.h:40: error: expected initializer before '<' token Connection.h:269: error: 'pgconn_params_t' in namespace 'fdo::postgis::details' does not name a type Command.h: In member function 'void fdo::postgis::Command::PgGenerateExecParams(fdo::postgis::details::pgexec_params_t&)': Command.h:301: error: 'boost' has not been declared Command.h:301: error: there are no arguments to 'format' that depend on a template parameter, so a declaration of 'format' must be available Command.h:301: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) Command.h:307: error: 'boost' has not been declared Command.h:307: error: there are no arguments to 'format' that depend on a template parameter, so a declaration of 'format' must be available Command.h:312: error: 'boost' has not been declared Command.h:312: error: there are no arguments to 'format' that depend on a template parameter, so a declaration of 'format' must be available PgGeometry.h: At global scope: PgGeometry.h:29: error: 'boost' has not been declared PgGeometry.h:54: error: 'boost' has not been declared PgGeometry.h: In static member function 'static Target fdo::postgis::ewkb::read_data::from(const uint8_t*)': PgGeometry.h:56: error: 'boost' has not been declared PgGeometry.h:56: error: 'is_integral' was not declared in this scope PgGeometry.h:56: error: expected primary-expression before '>' token PgGeometry.h:56: error: '::value' has not been declared PgGeometry.h:56: error: there are no arguments to 'BOOST_STATIC_ASSERT' that depend on a template parameter, so a declaration of 'BOOST_STATIC_ASSERT' must be available PgGeometry.h: At global scope: PgGeometry.h:74: error: 'boost' has not been declared PgGeometry.h: In static member function 'static double fdo:
RE: [mapguide-users] Problems with new fdo ogr build on Ubuntu 6.06
Hi Jack, Sorry for being a n00b about this, but do you mean using subversion, eg just checking I have the most up to date version of that file or something else? Thanks Jo Jack Lee-3 wrote: > > Hi, > > We had a problem with building the PostGIS provider. I think this error is > referring to the PostGIS provider. > You should do a sync on Providers/PostGIS/Doc/Makefile.am. > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jo Cook > Sent: Friday, October 26, 2007 4:50 AM > To: mapguide-users@lists.osgeo.org > Subject: [mapguide-users] Problems with new fdo ogr build on Ubuntu 6.06 > > > Hi All, > > Having just discovered that the postgis and ogr fdo connectors have been > added to the fdo svn trunk (and therefore been made available to the > standard mapguide build) I thought I would give it a go building on Ubuntu > 6.06 as per the instructions on the wiki. > > Build_Thirdparty went through without a hitch, all I needed to do was add > a > /usr/local/fdo-3.3.0 directory and give it the appropriate ownership. > However, build_linux failed at (I think) the ogr point and I can't really > figure out what the problem is from the build log. The section relating to > the ogr build is as follows: > > === > > make[1]: Entering directory `/home/joc/fdosvn/Providers/OGR' > test -z "/usr/local/fdo-3.3.0/lib" || mkdir -p -- > "/usr/local/fdo-3.3.0/lib" > /bin/sh ./libtool --mode=install /usr/bin/install -c 'libOGRProvider.la' > '/usr/local/fdo-3.3.0/lib/libOGRProvider.la' > libtool: install: warning: relinking `libOGRProvider.la' > (cd /home/joc/fdosvn/Providers/OGR; /bin/sh ./libtool --tag=CXX > --mode=relink g++ -MMD -MT -D__USE_GNU -DLINUX -DLINUX_IA32 -o > libOGRProvider.la -rpath /usr/local/fdo-3.3.0/lib -shared -release 3.3.0 > -L/home/joc/fdosvn/Thirdparty/gdal/lib -L../../Thirdparty/gdal/lib > OgrFdoUtil.lo OgrProvider.lo ProjConverter.lo > ../../Fdo/Unmanaged/Src/libFDO.la -lgdal ) > g++ -shared -nostdlib > /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crti.o > /usr/lib/gcc/i486-linux-gnu/4.0.3/crtbeginS.o .libs/OgrFdoUtil.o > .libs/OgrProvider.o .libs/ProjConverter.o -Wl,--rpath > -Wl,/usr/local/fdo-3.3.0/lib -L/home/joc/fdosvn/Thirdparty/gdal/lib > -L/usr/local/fdo-3.3.0/lib -lFDO -lgdal > -L/usr/lib/gcc/i486-linux-gnu/4.0.3 > -L/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib > -L/usr/lib/gcc/i486-linux-gnu/4.0.3/../../.. -L/lib/../lib > -L/usr/lib/../lib > -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.0.3/crtendS.o > /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crtn.o -Wl,-soname > -Wl,libOGRProvider-3.3.0.so -o .libs/libOGRProvider-3.3.0.so > /usr/bin/install -c .libs/libOGRProvider-3.3.0.soT > /usr/local/fdo-3.3.0/lib/libOGRProvider-3.3.0.so > (cd /usr/local/fdo-3.3.0/lib && { ln -s -f libOGRProvider-3.3.0.so > libOGRProvider.so || { rm -f libOGRProvider.so && ln -s > libOGRProvider-3.3.0.so libOGRProvider.so; }; }) > /usr/bin/install -c .libs/libOGRProvider.lai > /usr/local/fdo-3.3.0/lib/libOGRProvider.la > PATH="$PATH:/sbin" ldconfig -n /usr/local/fdo-3.3.0/lib > -- > Libraries have been installed in: >/usr/local/fdo-3.3.0/lib > > If you ever happen to want to link against installed libraries > in a given directory, LIBDIR, you must either use libtool, and > specify the full pathname of the library, or use the `-LLIBDIR' > flag during linking and do at least one of the following: >- add LIBDIR to the `LD_LIBRARY_PATH' environment variable > during execution >- add LIBDIR to the `LD_RUN_PATH' environment variable > during linking >- use the `-Wl,--rpath -Wl,LIBDIR' linker flag > > See any operating system documentation about shared libraries for > more information, such as the ld(1) and ld.so(8) manual pages. > -- > make[1]: Nothing to be done for `install-data-am'. > make[1]: Leaving directory `/home/joc/fdosvn/Providers/OGR' > acinclude.m4:7: warning: underquoted definition of FDO_HELP_STRING > run info '(automake)Extending aclocal' > or see > http://sources.redhat.com/automake/automake.html#Extending-aclocal > acinclude.m4:12: warning: underquoted definition of FDO_SUBST > acinclude.m4:19: warning: underquoted definition of FDO_FAST_OUTPUT > acinclude.m4:25: warning: underquoted definition of FDO_GEN_CONFIG_VARS > acinclude.m4:66: warning: underquoted definition of FDO_GENERATE_MAKEFILES > acinclude.m4:73: warning: underquoted defin
Re: [mapguide-users] Problems with new fdo ogr build on Ubuntu 6.06
Hi, In addition I've also noticed that Ubuntu 6.06 comes with g++ 4.03 whereas the OGR components have been tested with 3.4 and 4.1. I will build a VM using 7.04 and see if the problem reoccurs... Jo Jo Cook wrote: > > Hi, > > Automake --version gives me 1.9.6- this was the version that worked for me > when I installed MGOS from the svn branch rather than the trunk... > > I will try what you suggest though > > edit: your suggestion just tells me that automake version is 1.9 as well > > Jo > > > François Van Der Biest-2 wrote: >> >> François Van Der Biest a écrit : >>> Have you tried: sudo update-*alternatives* --config *automake >>> >> (without the stars - of course): >> >> sudo update-alternatives --config automake >> >> >> F. >> ___ >> mapguide-users mailing list >> mapguide-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> >> > > -- View this message in context: http://www.nabble.com/Problems-with-new-fdo-ogr-build-on-Ubuntu-6.06-tf4695940s16610.html#a13424190 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
Re: [mapguide-users] Problems with new fdo ogr build on Ubuntu 6.06
Hi, Automake --version gives me 1.9.6- this was the version that worked for me when I installed MGOS from the svn branch rather than the trunk... I will try what you suggest though Jo François Van Der Biest-2 wrote: > > François Van Der Biest a écrit : >> Have you tried: sudo update-*alternatives* --config *automake >> > (without the stars - of course): > > sudo update-alternatives --config automake > > > F. > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/Problems-with-new-fdo-ogr-build-on-Ubuntu-6.06-tf4695940s16610.html#a13424154 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] Problems with new fdo ogr build on Ubuntu 6.06
Hi All, Having just discovered that the postgis and ogr fdo connectors have been added to the fdo svn trunk (and therefore been made available to the standard mapguide build) I thought I would give it a go building on Ubuntu 6.06 as per the instructions on the wiki. Build_Thirdparty went through without a hitch, all I needed to do was add a /usr/local/fdo-3.3.0 directory and give it the appropriate ownership. However, build_linux failed at (I think) the ogr point and I can't really figure out what the problem is from the build log. The section relating to the ogr build is as follows: === make[1]: Entering directory `/home/joc/fdosvn/Providers/OGR' test -z "/usr/local/fdo-3.3.0/lib" || mkdir -p -- "/usr/local/fdo-3.3.0/lib" /bin/sh ./libtool --mode=install /usr/bin/install -c 'libOGRProvider.la' '/usr/local/fdo-3.3.0/lib/libOGRProvider.la' libtool: install: warning: relinking `libOGRProvider.la' (cd /home/joc/fdosvn/Providers/OGR; /bin/sh ./libtool --tag=CXX --mode=relink g++ -MMD -MT -D__USE_GNU -DLINUX -DLINUX_IA32 -o libOGRProvider.la -rpath /usr/local/fdo-3.3.0/lib -shared -release 3.3.0 -L/home/joc/fdosvn/Thirdparty/gdal/lib -L../../Thirdparty/gdal/lib OgrFdoUtil.lo OgrProvider.lo ProjConverter.lo ../../Fdo/Unmanaged/Src/libFDO.la -lgdal ) g++ -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.0.3/crtbeginS.o .libs/OgrFdoUtil.o .libs/OgrProvider.o .libs/ProjConverter.o -Wl,--rpath -Wl,/usr/local/fdo-3.3.0/lib -L/home/joc/fdosvn/Thirdparty/gdal/lib -L/usr/local/fdo-3.3.0/lib -lFDO -lgdal -L/usr/lib/gcc/i486-linux-gnu/4.0.3 -L/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib -L/usr/lib/gcc/i486-linux-gnu/4.0.3/../../.. -L/lib/../lib -L/usr/lib/../lib -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.0.3/crtendS.o /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crtn.o -Wl,-soname -Wl,libOGRProvider-3.3.0.so -o .libs/libOGRProvider-3.3.0.so /usr/bin/install -c .libs/libOGRProvider-3.3.0.soT /usr/local/fdo-3.3.0/lib/libOGRProvider-3.3.0.so (cd /usr/local/fdo-3.3.0/lib && { ln -s -f libOGRProvider-3.3.0.so libOGRProvider.so || { rm -f libOGRProvider.so && ln -s libOGRProvider-3.3.0.so libOGRProvider.so; }; }) /usr/bin/install -c .libs/libOGRProvider.lai /usr/local/fdo-3.3.0/lib/libOGRProvider.la PATH="$PATH:/sbin" ldconfig -n /usr/local/fdo-3.3.0/lib -- Libraries have been installed in: /usr/local/fdo-3.3.0/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. -- make[1]: Nothing to be done for `install-data-am'. make[1]: Leaving directory `/home/joc/fdosvn/Providers/OGR' acinclude.m4:7: warning: underquoted definition of FDO_HELP_STRING run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal acinclude.m4:12: warning: underquoted definition of FDO_SUBST acinclude.m4:19: warning: underquoted definition of FDO_FAST_OUTPUT acinclude.m4:25: warning: underquoted definition of FDO_GEN_CONFIG_VARS acinclude.m4:66: warning: underquoted definition of FDO_GENERATE_MAKEFILES acinclude.m4:73: warning: underquoted definition of FDO_OUTPUT acinclude.m4:82: warning: underquoted definition of FDO_DEFINE_TYPE_RLIM_T acinclude.m4:107: warning: underquoted definition of FDO_SUBST_EXPANDED_ARG acinclude.m4:114: warning: underquoted definition of FDO_EXPORT_ARGUMENTS Putting files in AC_CONFIG_AUX_DIR, `../..'. configure.in:66: required file `Doc/Makefile.in' not found checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3
RE: [mapguide-users] Building MGOS 1.2 on Ubuntu Server 7.04
Hi Jason, Coincidentally I found the postgis and ogr stuff in the fdo svn trunk yesterday and have been trying to build it ever since. It's not working, but that's the subject of another message I think... Jo Hi Jo (and others), If you're feeling adventurous, Greg Boone has just added some preliminary support for Linux builds of PostGIS and OGR to the FDO SVN trunk. There are still some glitches though... :) I've been trying to figure out how to mount a new virtual disk so I can start testing on the minimal Ubuntu server I just downloaded; it's been a while since I've had to do admin-type tasks on *nix... Jason -- View this message in context: http://www.nabble.com/Building-MGOS-1.2-on-Ubuntu-Server-7.04-tf4672059s16610.html#a13423004 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
Re: [mapguide-users] Building MGOS 1.2 on Ubuntu Server 7.04
Hi Ray, Thanks! I went through a lot of pain and torment as well (and still am actually- waiting for a postgis driver I can figure out how to do anything with). But- I got a lot of help from the mapguide development team at Autodesk, and eventually got through it. It's cool to be able to help people in return. Jo Ray Holtz wrote: > > Thanks Jo, > I told Rudy the wrong package, 'build-essential' is what I found I > needed. I posted an explanation a minute or two ago. I also updated the > wiki at > http://wiki.osgeo.org/index.php/Building_Mapguide_on_Ubuntu_7.04_Server > with that package. > > You don't know how much pain and torment I went through trying to > install Mapguide on Ubuntu 6.06, and Fedora Core 4 and 6 systems until I > found your wiki page. It was a lifesaver for me. I have been working > on this off and on since May for a client. It is finally up and running. > > Thanks for your help with this write up, and for helping all of us! > Ray > > Joanne Cook wrote: >> Hi, >> >> I am one of the people that wrote the ubuntu instructions on the wiki, >> and I don't mind you making alterations to it! The only thing I would say >> is that, having checked through the steps I had to take to do the >> installation, I didn't have to have the extra package that you mentioned- >> so there is something odd going on... >> >> All the best >> >> Jo >> >> - >> Joanne Cook >> Information Systems Coordinator >> Oxford Archaeology (North) >> 01524 541000 >> http://thehumanjourney.net >> >> >> >> Message: 1 >> Date: Sun, 21 Oct 2007 15:56:35 -0700 >> From: "Jason Birch" <[EMAIL PROTECTED]> >> Subject: RE: [mapguide-users] Building MGOS 1.2 on Ubuntu Server 7.04 >> To: "MapGuide Users Mail List" >> Message-ID: >> <[EMAIL PROTECTED]> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Understood :) >> >> I still struggle with just going ahead and doing stuff, counting on >> people telling me if they don't like it. It's really the only way to get >> things done in this kind of anarchaic community though ;) Actually, it's >> the preferred way of doing things, unless you're making radical changes >> in structure or functionality. >> >> Jason >> >> >> >> From: Ray Holtz >> Subject: Re: [mapguide-users] Building MGOS 1.2 on Ubuntu Server 7.04 >> >> >> >> I thought about it Jason, I just didn't know if I'd be stepping on >> anyone's feet by updating it. >> >> Thanks! >> >> >> >> >> -- >> Files attached to this email may be in ISO 26300 format (OASIS Open >> Document Format). If you have difficulty opening them, please visit >> http://iso26300.info for more information. >> >> ___ >> 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 > > -- View this message in context: http://www.nabble.com/Building-MGOS-1.2-on-Ubuntu-Server-7.04-tf4672059s16610.html#a13402500 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
Re: [mapguide-users] Virtual machine with Ubuntu Server (6.06 or 7.04) and MGOS 1.2
Hi Rudy, I might be able to help you out with this. I think you should have enough information to get through the build now if you start with a fresh virtual machine, but if you want talk more about providing a virtual machine then contact me off list. All the best Jo rudy.pavan wrote: > > Hi, > there is anyone which have a virtual machine ready for use with Ubuntu > Server (6.06 or 7.04) and MGOS 1.2 installed? > It's too important for me! > > Thanks > > Rudy > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/Virtual-machine-with-Ubuntu-Server-%286.06-or-7.04%29-and-MGOS-1.2-tf4682911s16610.html#a13402493 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] Whatever happened to the Mapguide Logo?
Hi List, I was just wondering what happened to the contest for a mapguide logo. I want something to put on a web page but there doesn't seem to be anything and the page on the contest (which finished last June) is blank. Thanks Jo -- View this message in context: http://www.nabble.com/Whatever-happened-to-the-Mapguide-Logo--tf4272942s16610.html#a12161531 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
Re: [mapguide-users] Building Mapguide Open Source on Ubuntu 6.06: Success
Glad to help! I can't guarantee it will work on any other version, in fact I'm fairly sure it won't due to the different version of gcc. Let me know how you get on: jo dot k dot cook at googlemail dot com Jo Jose Manuel C G wrote: > > Thank you very much! > > Ubuntu is my distro, and I've tried compile them withouth success. > -- View this message in context: http://www.nabble.com/Building-Mapguide-Open-Source-on-Ubuntu-6.06%3A-Success-tf4109593s16610.html#a11686599 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] Building Mapguide Open Source on Ubuntu 6.06: Success
Hi All, After a lot of trial and error and help from the Autodesk development team, I have managed to build the svn version of mapguide open source on Ubuntu 6.06 server. I have put a page up on the wiki at: http://wiki.osgeo.org/index.php/Building_Mapguide_on_Ubuntu_6.06_Server Hope this is helpful! Jo -- View this message in context: http://www.nabble.com/Building-Mapguide-Open-Source-on-Ubuntu-6.06%3A-Success-tf4109593s16610.html#a11686333 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
Re: [mapguide-users] [fdo-users] FDO build_thirdparty
Hi, You did run the setenvironment script before starting? (Just checking...) Actually, I've been trying to get mapguide installed on Ubuntu 6.06 for ages and have never managed to get it all the way through the installation process. I am working with the developers at the moment to try and get the latest svn version working on 6.06, so hopefully we'll get somewhere with that soon. If you want to get involved with that then email me at jo dot k dot cook at googlemail dot com Cheers Jo Ray Holtz wrote: > > I am running as root. > > > Traian Stanev wrote: >> Are you running as root? May be the script doesn't have enough >> permissions to put stuff under /usr/local? >> >> Traian >> >> >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Ray Holtz >> Sent: Thursday, July 05, 2007 1:55 PM >> To: FDO Users Mail List >> Cc: MapGuide Users Mail List >> Subject: Re: [fdo-users] FDO build_thirdparty >> >> I ran the build script under Thirdparty\apache and it did not give me >> any errors. The following is the last few lines: >> >> make -C Utils locale >> make[2]: Entering directory >> `/usr/local/maptemp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xal >> anc/Utils' >> ../../../bin/MsgCreator >> /usr/local/maptemp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xala >> nc/NLS/en_US/XalanMsg_en_US.xlf >> -TYPE INMEM -LOCALE en_US >> make -C XalanMsgLib >> make[3]: Entering directory >> `/usr/local/maptemp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xal >> anc/Utils/XalanMsgLib' >> g++ -O2 -DNDEBUG -fno-elide-constructors -Wall -fPIC -DLINUX >> -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c -I/usr/local/maptem >> p/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src >> -I/usr/local/maptemp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/includ >> e >> -I../../../../nls/include >> -I/usr/local/maptemp/OpenSource_FDO/Thirdparty/apache/xml-xerces/c/src/ >> -I/usr/local/maptemp/OpenSource_FDO/Thirdparty/apache/xml-xerces/c/inclu >> de/xercesc >> -I/usr/local/maptemp/OpenSource_FDO/Thirdparty/apache/xml-xerces/c/inclu >> de/ >> -o ../../../../obj/XalanMsgLib.o >> /usr/local/maptemp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xala >> nc/Utils/XalanMsgLib/XalanMsgLib.cpp >> g++ -O2 -DNDEBUG -fno-elide-constructors >> -Wl,-soname,libxalanMsg.so.17 -DLINUX -shared -fPIC -lm -lpthread >> -L/usr/local/maptemp/OpenSource_FDO/Thirdparty/apache/xml-xerces/c/lib >> -lxerces-c ../../../../obj/XalanMsgLib.o -o >> ../../../../lib/libxalanMsg.so.17.0 >> ln -fs libxalanMsg.so.17.0 ../../../../lib/libxalanMsg.so >> ln -fs libxalanMsg.so.17.0 ../../../../lib/libxalanMsg.so.17 >> make[3]: Leaving directory >> `/usr/local/maptemp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xal >> anc/Utils/XalanMsgLib' >> make[2]: Leaving directory >> `/usr/local/maptemp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xal >> anc/Utils' >> make[1]: Leaving directory >> `/usr/local/maptemp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xal >> anc' >> >> Thanks! >> >> >> Greg Boone wrote: >>> Run the 'build' script under '...\Thirdparty\apache' and let me know >>> what the errors are. >>> >>>cd apache >>>./build >>> >>> Greg >>> >>> -Original Message- >>> From: [EMAIL PROTECTED] >>> [mailto:[EMAIL PROTECTED] On Behalf Of Ray Holtz >>> Sent: Wednesday, July 04, 2007 12:14 PM >>> To: MapGuide Users Mail List; [EMAIL PROTECTED] >>> Subject: [fdo-users] FDO build_thirdparty >>> >>> Hi all, Sorry for the doublepost on both lists, but I am almost >> pulling >>> my hair out over this install. >>> >>> I am trying to setup Mapguide 1.1 on an Ubuntu 6.06 LTS server. I have >> >>> installed the aptinstaller fine. I am working on the FDO now. I get >>> stuck with the build_thirdparty.sh script. It ends with the following >> >>> lines: >>> >>> make[1]: Leaving directory >>> `/usr/local/maptemp/OpenSource_FDO/Thirdparty/GDAL1.3/src/apps' >>> make[1]: Entering directory >>> `/usr/local/maptemp/OpenSource_FDO/Thirdparty' >>> make[2]: Entering directory >>> `/usr/local/maptemp/OpenSource_FDO/Thirdparty' >>> make[2]: Nothing to be done for `install-exec-am'. >>> /bin/sh ../mkinstalldirs /usr/local/fdo-3.2.0/lib >>> /usr/bin/install -c -m 644 >> ./apache/xml-xalan/c/lib/libxalan-c.so.17.0 >>> /usr/local/fdo-3.2.0/lib/apache/xml-xalan/c/lib/libxalan-c.so.17.0 >>> /usr/bin/install: cannot create regular file >>> `/usr/local/fdo-3.2.0/lib/apache/xml-xalan/c/lib/libxalan-c.so.17.0': >> No >>> such file or directory >>> /usr/bin/install -c -m 644 >>> ./apache/xml-xalan/c/lib/libxalanMsg.so.17.0 >>> /usr/local/fdo-3.2.0/lib/apache/xml-xalan/c/lib/libxalanMsg.so.17.0 >>> /usr/bin/install: cannot create regular file >>> `/usr/local/fdo-3.2.0/lib/apache/xml-xalan/c/lib/libxalanMsg.so.17.0': >> >>> No such file or directory >>> /usr/bin/install -c -m 644 >>> ./apache/xml-xerces/c/lib/libxerces-c.so.25.0 >>> /usr/local/fdo-3.2.0/lib/apache/xml
Re: [mapguide-users] Question for developers: Linux installer on other distribution (especially Debian or Ubuntu)
Hi, I have been trying to get Mapguide working on Ubuntu for quite a while now, and am working with some of the developers at Autodesk to try and get it to work. We are now at the odd situation where the fdo components have been compiled successfully on one installation, but fail on another, seemingly identical, installation so we are trying to figure out where to go next. It would be really great to collaborate on this- email me ([EMAIL PROTECTED]) if you want to talk off-list at all Jo Krunoslav wrote: > > Hi all. > > Are there any plans to make MGOS work on other disitributions than FC4? It > would be great if there would be apt repositories for Debian stable, or > even for Ubuntu. I'm not Linux expert, but also I'm not totally new with > Linux. When MGOS 1.2 stable comes out, I will try to build apt repository > for Ubuntu, and will report back all errors that are happening. If I fail, > I hope you all will help, to build it once for all. > -- View this message in context: http://www.nabble.com/Question-for-developers%3A-Linux-installer-on-other-distribution-%28especially-Debian-or-Ubuntu%29-tf3896625s16610.html#a11320577 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