The alias is currently pointing to the folder on the C: drive, I wanted to get the alias working, move the files, and then repoint the alias. I'm using MGOS, I think your xml may be the layer definition and not the configuration document (Edit configuration document button in Maestro), which is where I'm working.
I may be able to use another local drive if network share doesn't work. Thanks for your help so far Andrew. Dave From: Andrew DeMerchant [mailto:andrew.demerch...@gemtec.ca] Sent: 24 June 2011 17:40 To: d...@daveboyle.co.uk; MapGuide Users Mail List Subject: Re: [mapguide-users] Using MG_DATA_PATH_ALIAS Is your alias pointing to a mapped drive or UNC, then? My understanding is that that doesn't work (at least, it certainly didn't work in older versions). As far as I know, the alias needs to be local to the MGOS server. I've also checked my XML, and yours looks completely different - are you using MG Enterprise? I only know MGOS, anyway - I've got no idea about the Autocad Raster provider. With MGOS, you need to use the OSGEO Gdal provider - which to me, looks like you're not. Here's a censored version of the XML from one of mine: <?xml version="1.0" encoding="utf-8"?> <FeatureSource xmlns:xsi= <http://www.w3.org/2001/XMLSchema-instance> "http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd= <http://www.w3.org/2001/XMLSchema> "http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd"> <Provider>OSGeo.Gdal</Provider> <Parameter> <Name>DefaultRasterFileLocation</Name> <Value>%MG_DATA_PATH_ALIAS[aliasname]%GIS/air_photos/Oct_14_2010/</Value> </Parameter> <SupplementalSpatialContextInfo> <Name>NAD83 / UTM zone 20N</Name> <CoordinateSystem>PROJCS["NAD83 / UTM zone 20N",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS 1980",6378137,298.2572221010002,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG"," 6269"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["E PSG","4269"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origi n",0],PARAMETER["central_meridian",-63],PARAMETER["scale_factor",0.9996],PAR AMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1, AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","26920"]]</CoordinateSystem> </SupplementalSpatialContextInfo> </FeatureSource> Andrew On 11/06/24 1:24 PM, Dave Boyle wrote: Hi Andrew, Thanks for the input. Yes the alias is set correctly, as are permissions. I've tried <RasterDefinition name="images"> <Location name="%MG_DATA_PATH_ALIAS[OS_Street_Map]%data/"> <Feature name="%MG_DATA_PATH_ALIAS[OS_Street_Map]%data/hp40se.tif"><Band name="RGB" number="1"><Image name="hp40se.tif" frame="1"> And <RasterDefinition name="images"> <Location name="%MG_DATA_PATH_ALIAS[OS_Street_Map]%data/"> <Feature name="%MG_DATA_PATH_ALIAS[OS_Street_Map]%data/\hp40se.tif"><Band name="RGB" number="1"><Image name="hp40se.tif" frame="1"> And <RasterDefinition name="images"> <Location name="MapData"> <Feature name="%MG_DATA_PATH_ALIAS[OS_Street_Map]%data/\hp40se.tif"><Band name="RGB" number="1"><Image name="hp40se.tif" frame="1"> None seem to work. The problem I have is that I need to move the tifs off the C: drive and onto a network drive, as the C: drive is getting full. If you have a similar setup, would you be able to check the way your xml goes please? Regards, Dave From: Andrew DeMerchant [mailto:andrew.demerch...@gemtec.ca] Sent: 24 June 2011 14:34 To: d...@daveboyle.co.uk; MapGuide Users Mail List Subject: Re: [mapguide-users] Using MG_DATA_PATH_ALIAS Well, first, I'm assuming that your alias is set up correctly...but aside from that, the only difference that I see between the 2 "<feature name>" sections is that the path is in the local version, but missing from the aliased version. I'd certainly try putting that path in there....I've never looked at the raw XML for my own raster layers, so I can't help much beyond that. Andrew On 11/06/24 10:20 AM, Dave Boyle wrote: Hi all, Struggling - can someone tell me why this works : <RasterDefinition name="images"> <Location name="C:\Maps/data/"> <Feature name="C:\Maps/data/\hp40se.tif"><Band name="RGB" number="1"><Image name="hp40se.tif" frame="1"> But this doesn't ? <RasterDefinition name="images"> <Location name="%MG_DATA_PATH_ALIAS[OS_Street_Map]%data/"> <Feature name="hp40se.tif"><Band name="RGB" number="1"><Image name="hp40se.tif" frame="1"> Dave _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- _____ <http://www.gemtec.ca/> GEMTEC Limited Andrew DeMerchant tel: 506.453.1025 / toll-free: 1.877.243.6832 fax: 506.453.9470 _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- _____ <http://www.gemtec.ca/> GEMTEC Limited Andrew DeMerchant tel: 506.453.1025 / toll-free: 1.877.243.6832 fax: 506.453.9470
<<image001.png>>
_______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users