Re: [mapserver-users] How do I use ASRP maps in mapserver?

2009-12-15 Thread Alans



Frank Warmerdam wrote:
> 
> Alans wrote:
>> 
>> 
>> Even Rouault wrote:
>>> Alan,
>>>
>>> SRP driver has been added into GDAL SVN trunk a few months ago, so it 
>>> will be part of the GDAL 1.7.0 release.
>>>
>>>
>> 
>> It does not seem to matter which version of GDAL I try, gdalinfo
>> MyFile.IMG
>> always reports 
>> 'MyFile.IMG not recognised as a supported format'. 
>> 
>> The most recent version of GDAL that I tried was
>> gdal-svn-trunk-2009.12.14.
>> 'gdalinfo --version' reports 'GDAL 1.7.0dev, released 2008/11/26'. Where
>> does this strange date come from?
>> 
>> 'gdalinfo --formats' does list SRP as a supported format.
>> srpdataset.cpp is present in the frmts/adrg directory.
>> 
>> Just in case it is important, I had to configure GDAL with '--without
>> -libtool' to get it to build on my system (SLES 10).
> 
> Alan,
> 
> I suspect there is something particular about your file(s) that is causing
> problems for the driver, or perhaps you are missing some associated files.
> 
> Running gdalinfo with the --debug on switch might give some additional
> information.
> 
> eg.
> 
>gdalinfo --debug on A2976101.IMG
> 
> If that doesn't give any help, I would be willing to look into the problem
> if you can provide the data to me.  I would appreciate an opportunity to
> examine the data if it may reflect an issue with the driver.
> 
> Best regards,
> -- 
> ---+--
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmer...@pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush| Geospatial Programmer for Rent
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

Hi Frank,

I ran gdalinfo with debug and it produced the following results:

a...@stratford:~/gdal/gdal-svn-trunk-2009.12.14 15% apps/gdalinfo --debug on
/nashome/noBackup/map_CDs/UK_1to50k/03/ASRP/GUK166/GUK16601.IMG
SRP: NAM=GUK166
SRP: SCA=5
SRP: ZNA=3
SRP: PSP=66.70
GDALPamDataset: In destructor with dirty metadata.
ERROR 4: `/nashome/noBackup/map_CDs/UK_1to50k/03/ASRP/GUK166/GUK16601.IMG'
not recognised as a supported file format.

gdalinfo failed - unable to open
'/nashome/noBackup/map_CDs/UK_1to50k/03/ASRP/GUK166/GUK16601.IMG'.
GDAL: GDALDeregister_GTiff() called.

Does this help diagnose the problem?

The GUK16601.IMG file has the following associated files; GUK16601.GER,
GUK16601.GEN, GUK16601.SOU and GUK16601.QAL.

I am investigating the legalities regarding sending the data file, or
possibly finding other files that exhibit the same issues. Do you know of
any data online that I could use?

Thanks for your interest,
Alan
-- 
View this message in context: 
http://n2.nabble.com/How-do-I-use-ASRP-maps-in-mapserver-tp4139935p4169069.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How do I use ASRP maps in mapserver?

2009-12-14 Thread Frank Warmerdam

Alans wrote:



Even Rouault wrote:

Alan,

SRP driver has been added into GDAL SVN trunk a few months ago, so it 
will be part of the GDAL 1.7.0 release.





It does not seem to matter which version of GDAL I try, gdalinfo MyFile.IMG
always reports 
'MyFile.IMG not recognised as a supported format'. 


The most recent version of GDAL that I tried was gdal-svn-trunk-2009.12.14.
'gdalinfo --version' reports 'GDAL 1.7.0dev, released 2008/11/26'. Where
does this strange date come from?

'gdalinfo --formats' does list SRP as a supported format.
srpdataset.cpp is present in the frmts/adrg directory.

Just in case it is important, I had to configure GDAL with '--without
-libtool' to get it to build on my system (SLES 10).


Alan,

I suspect there is something particular about your file(s) that is causing
problems for the driver, or perhaps you are missing some associated files.

Running gdalinfo with the --debug on switch might give some additional
information.

eg.

  gdalinfo --debug on A2976101.IMG

If that doesn't give any help, I would be willing to look into the problem
if you can provide the data to me.  I would appreciate an opportunity to
examine the data if it may reflect an issue with the driver.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How do I use ASRP maps in mapserver?

2009-12-14 Thread Alans



Even Rouault wrote:
> 
> Alan,
> 
> SRP driver has been added into GDAL SVN trunk a few months ago, so it 
> will be part of the GDAL 1.7.0 release.
> 
> 

It does not seem to matter which version of GDAL I try, gdalinfo MyFile.IMG
always reports 
'MyFile.IMG not recognised as a supported format'. 

The most recent version of GDAL that I tried was gdal-svn-trunk-2009.12.14.
'gdalinfo --version' reports 'GDAL 1.7.0dev, released 2008/11/26'. Where
does this strange date come from?

'gdalinfo --formats' does list SRP as a supported format.
srpdataset.cpp is present in the frmts/adrg directory.

Just in case it is important, I had to configure GDAL with '--without
-libtool' to get it to build on my system (SLES 10).

Any ideas anyone?
-- 
View this message in context: 
http://n2.nabble.com/How-do-I-use-ASRP-maps-in-mapserver-tp4139935p4165318.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How do I use ASRP maps in mapserver?

2009-12-09 Thread Even Rouault

Alan,

SRP driver has been added into GDAL SVN trunk a few months ago, so it 
will be part of the GDAL 1.7.0 release.


Alans a écrit :


Jeff McKenna wrote:
  

First, you should execute 'gdalinfo --formats' on your server to check
if you has SRP support.  Look for something like "SRP (ro) : Standard 
Raster Product (ASRP/USRP)" in the returned list of formats; this will 
verify that your local MapServer/GDAL build can read the ASRP format.





Thanks Jeff,

It looks like my GDAL is out of date. 'gdal --version' reports:

  GDAL 1.6.0dev, FWTools 2.0.6, released 2008/02/03

'gdalinfo --formats' does not list SRP as a supported format.

My GDAL came as part of FWTools. I will attempt to update GDAL and try
again.

Alan
  



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How do I use ASRP maps in mapserver?

2009-12-09 Thread Jeff McKenna

Alans wrote:



Jeff McKenna wrote:


First, you should execute 'gdalinfo --formats' on your server to check
if you has SRP support.  Look for something like "SRP (ro) : Standard 
Raster Product (ASRP/USRP)" in the returned list of formats; this will 
verify that your local MapServer/GDAL build can read the ASRP format.




Thanks Jeff,

It looks like my GDAL is out of date. 'gdal --version' reports:

  GDAL 1.6.0dev, FWTools 2.0.6, released 2008/02/03

'gdalinfo --formats' does not list SRP as a supported format.

My GDAL came as part of FWTools. I will attempt to update GDAL and try
again.

Alan


No problem.  If you are on Windows, MS4W does come with SRP support by 
default (http://www.maptools.org/ms4w/).


You can ask question related to MS4W on its email list (subscribe at 
http://lists.maptools.org/mailman/listinfo/ms4w-users)


-jeff



--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How do I use ASRP maps in mapserver?

2009-12-09 Thread Alans



Jeff McKenna wrote:
> 
> 
> First, you should execute 'gdalinfo --formats' on your server to check
> if you has SRP support.  Look for something like "SRP (ro) : Standard 
> Raster Product (ASRP/USRP)" in the returned list of formats; this will 
> verify that your local MapServer/GDAL build can read the ASRP format.
> 

Thanks Jeff,

It looks like my GDAL is out of date. 'gdal --version' reports:

  GDAL 1.6.0dev, FWTools 2.0.6, released 2008/02/03

'gdalinfo --formats' does not list SRP as a supported format.

My GDAL came as part of FWTools. I will attempt to update GDAL and try
again.

Alan
-- 
View this message in context: 
http://n2.nabble.com/How-do-I-use-ASRP-maps-in-mapserver-tp4139935p4140373.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How do I use ASRP maps in mapserver?

2009-12-09 Thread Jeff McKenna

Jeff McKenna wrote:

Alans wrote:

Can anyone tell me how to use ASRP maps in mapserver, or point me at some
relevant documentation. The GDAL list of supported raster formats 
indicates
that this should be possible 
(http://www.gdal.org/frmt_various.html#SRP) but
I can't find any instructions as to how to specify this format in a 
LAYER of

a .map file.


Hello Alans,

Interesting.  I have never used that format but I can give some hints.

First, you should execute 'gdalinfo --formats' on your server to check
if you has SRP support.  Look for something like "SRP (ro) : Standard 
Raster Product (ASRP/USRP)" in the returned list of formats; this will 
verify that your local MapServer/GDAL build can read the ASRP format.


Next, you can point to the image in your mapfile layer, such as (and I'm 
guessing this, as I don't have your data to test):


LAYER
  NAME "ASRP"
  DATA "myfile.img"
  TYPE RASTER
  STATUS ON
END

(a good document for you to read about raster support in MapServer is 
http://www.mapserver.org/input/raster.html)


Finally, you could test your mapfile with the shp2img commandline 
utility, to see any error reports 
(http://www.mapserver.org/utilities/shp2img.html)


I hope this helps you a little.

-jeff



Sorry Alans,

I forgot an import step:

After verifying SRP support with 'gdalinfo --formats', next step is to 
see if GDAL can read your exact file, by using gdalinfo again:


  gdalinfo myfile.img

You should see some info returned such as Size, Pixel Size, 
Coordinates...etc.


Then you can focus on your mapfile layer.

-jeff



--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How do I use ASRP maps in mapserver?

2009-12-09 Thread Jeff McKenna

Alans wrote:

Can anyone tell me how to use ASRP maps in mapserver, or point me at some
relevant documentation. The GDAL list of supported raster formats indicates
that this should be possible (http://www.gdal.org/frmt_various.html#SRP) but
I can't find any instructions as to how to specify this format in a LAYER of
a .map file.


Hello Alans,

Interesting.  I have never used that format but I can give some hints.

First, you should execute 'gdalinfo --formats' on your server to check
if you has SRP support.  Look for something like "SRP (ro) : Standard 
Raster Product (ASRP/USRP)" in the returned list of formats; this will 
verify that your local MapServer/GDAL build can read the ASRP format.


Next, you can point to the image in your mapfile layer, such as (and I'm 
guessing this, as I don't have your data to test):


LAYER
  NAME "ASRP"
  DATA "myfile.img"
  TYPE RASTER
  STATUS ON
END

(a good document for you to read about raster support in MapServer is 
http://www.mapserver.org/input/raster.html)


Finally, you could test your mapfile with the shp2img commandline 
utility, to see any error reports 
(http://www.mapserver.org/utilities/shp2img.html)


I hope this helps you a little.

-jeff

--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/






___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] How do I use ASRP maps in mapserver?

2009-12-09 Thread Alans

Can anyone tell me how to use ASRP maps in mapserver, or point me at some
relevant documentation. The GDAL list of supported raster formats indicates
that this should be possible (http://www.gdal.org/frmt_various.html#SRP) but
I can't find any instructions as to how to specify this format in a LAYER of
a .map file.
-- 
View this message in context: 
http://n2.nabble.com/How-do-I-use-ASRP-maps-in-mapserver-tp4139935p4139935.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users