Title: GEMTEC Email Signature
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" xmlns:xsd="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]
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

 

--


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

--
GEMTEC Email Signature
GEMTEC
            Limited

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

Reply via email to