It was my understanding that the raster config file is parsed by FDO, which
has no understanding of MapGuide aliases, but based on user request the
ability to do this was added to Maestro:

http://trac.osgeo.org/mapguide/ticket/1664

Perhaps maestro needs to substitute the value of the path alias (if that can
be determined via the API) into the config file?

J

2011/6/24 Andrew DeMerchant <andrew.demerch...@gemtec.ca>

> **
> The terms have all changed with this latest Maestro version - it's pretty
> confusing in my books! What I gave you was the xml for the data....I think
> that we're on the same page - just not sure why yours looks so different
> from mine (and has a config doc).
>
>
> On 11/06/24 2:15 PM, Dave Boyle wrote:
>
>  How about in the data definition, I think that’s where the paths to the
> actual tif files? Sorry if I’ve confused things here****
>
> ** **
>
> ** **
>
> *From:* Andrew DeMerchant 
> [mailto:andrew.demerch...@gemtec.ca<andrew.demerch...@gemtec.ca>]
>
> *Sent:* 24 June 2011 18:09
> *To:* d...@daveboyle.co.uk; MapGuide Users Mail List
> *Subject:* Re: [mapguide-users] Using MG_DATA_PATH_ALIAS****
>
> ** **
>
> You're right, my XML is from the layer definition - but I've got no
> configuration document.
>
>
> On 11/06/24 2:04 PM, Dave Boyle wrote: ****
>
> 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<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["EPSG","4269"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-63],PARAMETER["scale_factor",0.9996],PARAMETER["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<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****
>
>  ****
>
> -- ****
>  ------------------------------
>
> [image: GEMTEC Limited] <http://www.gemtec.ca/>****
>
> *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****
>
>  ****
>
> -- ****
>  ------------------------------
>
> [image: GEMTEC Limited] <http://www.gemtec.ca/>****
>
> *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****
>
> ** **
>
> -- ****
>  ------------------------------
>
> [image: GEMTEC Limited] <http://www.gemtec.ca/>****
>
> *Andrew DeMerchant*
>
> tel: 506.453.1025  /  toll-free: 1.877.243.6832
> fax: 506.453.9470 ****
>
>
> _______________________________________________
> mapguide-users mailing 
> listmapguide-users@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
> --
> ------------------------------
>  [image: GEMTEC Limited] <http://www.gemtec.ca/>
>
> *Andrew DeMerchant*
>
> tel: 506.453.1025  /  toll-free: 1.877.243.6832
> fax: 506.453.9470
>
> This e-mail message (including attachments, if any) is confidential and may
> be privileged. Any unauthorized distribution or disclosure is prohibited.
>  Disclosure to anyone other than the intended recipient does not constitute
> waiver of privilege.  If you have received this e-mail in error, please
> notify us and delete it and any attachments from your computer system and
> records.
> ------------------------------------------------------
> Ce courriel (y compris  les pièces jointes) est confidentiel et peut être
> privilégié.  La distribution ou la divulgation non autorisée de ce courriel
> est interdite.  Sa divulgation à toute personne autre que son destinataire
> ne constitue pas une renonciation de privilège.  Si vous avez reçu ce
> courriel par erreur, veuillez nous aviser et éliminer ce courriel, ainsi que
> les pièces jointes, de votre système informatique et de vos dossiers.
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>

<<gemtec.png>>

<<image/png>>

_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to