Hi Andrew,

I was able to see the PNG image using MapGuide 2.2 build 5029.  This build is a 
little newer than the beta but it should be similar as far as raster is 
concerned.

In Maestro, I specified a coordinate system override on the GDAL feature 
source.  Then I hacked up the extents on the map definition to get the PNG 
image on the screen.  It looks as though MapGuide does not pick up the spatial 
extent properly from the png but still knows where the image is.  I have 
attached an MGP with my test files.  I took a guess on the coordinate system...

I also used an external data file path (alias) when building the feature source 
- "Gemtec"

Regards,
Trevor


From: [email protected] 
[mailto:[email protected]] On Behalf Of Andrew DeMerchant
Sent: August 24, 2010 10:17 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] GDAL problems...

Any luck? Did my images work for you?

Andrew


On 10/08/19 1:46 PM, Andrew DeMerchant wrote:
I sure can - here's the xml that Maestro makes for me currently (ie, new data 
connection) - there is no configuration doc:

<?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[Petitcodiac]%GIS/charts/</Value>
  </Parameter>
  <SupplementalSpatialContextInfo>
    <Name>Oblique_Stereographic</Name>
    <CoordinateSystem>PROJCS["NAD83(CSRS) / New Brunswick 
Stereo",GEOGCS["NAD83(CSRS)",DATUM["NAD83_Canadian_Spatial_Reference_System",SPHEROID["GRS1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG","6140"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4617"]],PROJECTION["Oblique_Stereographic"],PARAMETER["latitude_of_origin",46.5],PARAMETER["central_meridian",-66.5],PARAMETER["scale_factor",0.999912],PARAMETER["false_easting",2500000],PARAMETER["false_northing",7500000],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","2953"]]</CoordinateSystem>
  </SupplementalSpatialContextInfo>
</FeatureSource>

Now here's the xml from one that works (was made a while back, with either an 
old Maestro, or trial of Studio) - again, no configuration doc:

<?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[brunway]%air_photos/</Value>
  </Parameter>
  <SupplementalSpatialContextInfo>
    <Name>unnamed</Name>
    
<CoordinateSystem>PROJCS["CANST-NB83-CSRS",GEOGCS["LL-CSRS",DATUM["CSRS",SPHEROID["GRS1980",6378137.000,298.25722210]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Oblique_Stereographic"],PARAMETER["false_easting",2500000.000],PARAMETER["false_northing",7500000.000],PARAMETER["latitude_of_origin",46.50000000000000],PARAMETER["central_meridian",-66.50000000000000],PARAMETER["scale_factor",0.999912000000],UNIT["Meter",1.00000000000000]]</CoordinateSystem>
  </SupplementalSpatialContextInfo>
</FeatureSource>

Obviously, the coordsystem bit is slightly different - though they are both 
meant to use the same system....I've tried replacing the coord bit in the bad 
connection with the working one, but it has no effect.

Now, for the images - I've tried tifs, jpgs and pngs...all with world files. 
None have worked. Currently, they are in png format (so I can make them 
transparent, once they work!). I've zipped one of the images (and world file) 
and put it here for now: http://www.gemtec.ca/chart_4130_a.zip

Thanks for the help! I really appreciate it....I've got a plan b, if the gdal 
won't play nice...

Andrew


On 10/08/19 12:30 PM, Jason Birch wrote:

Can you post an example image somewhere, along with details on its

projection and bounds, etc.



Also, a copy of the old and new FeatureSource XML and config XML

documents you've been working with.



Jason



On 2010-08-19, Andrew DeMerchant 
<[email protected]><mailto:[email protected]> wrote:

  Looks like I'm on my own....which means stuck without any rasters.



Andrew





On 10/08/16 1:21 PM, Andrew DeMerchant wrote:

Anyone got any suggestions? I can provide a few of my rasters in

question, if need be.



Andrew





On 8/13/2010 5:11 PM, Andrew DeMerchant wrote:

Sorry to add yet another GDAL question.....but for the life of me, I

can't seem to get any new images working in MGOS (tried 2.0 and 2.2).

If I debug and run the service interactively, I get a "(3656) An

exception occurred in FDO component.

Only MOSAIC(), CLIP() and RESAMPLE() are supported." message....I've

seen that before, and had thought that it was coord related - but I

can't even see a layer preview, and have tried the default coord

system, as well the the correct one for my map. Can anyone offer some

additional debug options here? My old rasters seem to still work - I

just can't seem to add any new ones...

--

------------------------------------------------------------------------

GEMTEC Limited <http://www.gemtec.ca/><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

[email protected]<mailto:[email protected]>

http://lists.osgeo.org/mailman/listinfo/mapguide-users





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.

--

------------------------------------------------------------------------

GEMTEC Limited <http://www.gemtec.ca/><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

[email protected]<mailto:[email protected]>

http://lists.osgeo.org/mailman/listinfo/mapguide-users





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.

--

------------------------------------------------------------------------

GEMTEC Limited <http://www.gemtec.ca/><http://www.gemtec.ca/>



*Andrew DeMerchant*



tel: 506.453.1025  /  toll-free: 1.877.243.6832

fax: 506.453.9470





_______________________________________________

mapguide-users mailing list

[email protected]<mailto:[email protected]>

http://lists.osgeo.org/mailman/listinfo/mapguide-users



--
________________________________
[cid:[email protected]]<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

[email protected]<mailto:[email protected]>

http://lists.osgeo.org/mailman/listinfo/mapguide-users





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.

--
________________________________
[cid:[email protected]]<http://www.gemtec.ca/>

Andrew DeMerchant

tel: 506.453.1025  /  toll-free: 1.877.243.6832
fax: 506.453.9470

<<inline: image001.png>>

Attachment: GemtecRaster.mgp
Description: GemtecRaster.mgp

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to