List Info

Thread: cylindrical equal-area not supported by GeoTIFF?




cylindrical equal-area not supported by GeoTIFF?
country flaguser name
United States
2007-03-09 14:18:40
Dear GeoTIFF list,
I'm getting the following error when trying to create a
GeoTIFF using 
geotifcp for data in a cylindrical equal-area projection:

 > geotifcp -g Ml_geo.txt EASE-F13-ML2006166D.19V.tif 
EASE-F13-ML2006166D.19V.geo.tif
Parsing Error at 'CT_CylindricalEqualArea'
Failure in GTIFImport
Exit 255

I have gathered in previous message and online documentation
that 
cylindrical equal-area projections aren't supported yet in 
GeoTIFF/libgeotiff: is this true?, and if so, are there
things in the 
works to have this added? Thanks for your help! At the
bottom of this 
message, I've pasted my GeoTIFF header from the above
command 
(Ml_geo.txt) for reference.
Best Regards,
John Maurer

-- 
John Maurer
Web/Database Applications Engineer
National Snow and Ice Data Center (NSIDC)
University of Colorado at Boulder
http://cires.color
ado.edu/~maurerj
+1-303-735-5316



Geotiff_Information:
   Version: 1
   Key_Revision: 1.0
   Tagged_Information:
      ModelTiepointTag (2,3):
              0             0          0                
      -17334193.540    7344784.825     0                
      ModelPixelScaleTag (1,3):
          25067.525      25067.525     0                
      End_Of_Tags.
   Keyed_Information:
      GTModelTypeGeoKey (Short,1): ModelTypeProjected
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
      GeographicTypeGeoKey (Short,1): User-Defined
      GeogGeodeticDatumGeoKey (Short,1): User-Defined
      GeogLinearUnitsGeoKey (Short,1): Linear_Meter
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree
      GeogSemiMajorAxisGeoKey (Double,1): 6371228.0
      GeogSemiMinorAxisGeoKey (Double,1): 6371228.0
      ProjectedCSTypeGeoKey (Short,1): User-Defined
      ProjCoordTransGeoKey (Short,1):
CT_CylindricalEqualArea
      ProjLinearUnitsGeoKey (Short,1): Linear_Meter
      ProjFalseEastingGeoKey (Double,1): 0
      ProjFalseNorthingGeoKey (Double,1): 0
      ProjNatOriginLongGeoKey (Double,1): 0.0
      ProjStdParallel1GeoKey (Double,1): 30.0
      End_Of_Keys.
   End_Of_Geotiff.


_______________________________________________
Geotiff mailing list
Geotifflists.maptools.org
ht
tp://lists.maptools.org/mailman/listinfo/geotiff

Re: quiet hostap by default
country flaguser name
United States
2007-03-09 13:51:07
I like it 'cause now debug is dynamic.

rtg

Kyle McMartin wrote:
> it's a really annoying driver... lots of console spew
making
> it hard to get a good dmesg trace.
> 
> diff --git a/drivers/net/wireless/hostap/hostap_info.c
b/drivers/net/wireless/hostap/hostap_info.c
> index b6a02a0..6eb8d88 100644
> --- a/drivers/net/wireless/hostap/hostap_info.c
> +++ b/drivers/net/wireless/hostap/hostap_info.c
>  -96,7 +96,6  static void
prism2_info_commtallies(local_info_t *local, unsigned char
*buf,
>  
>  
>  #ifndef PRISM2_NO_STATION_MODES
> -#ifndef PRISM2_NO_DEBUG
>  static const char* hfa384x_linkstatus_str(u16
linkstatus)
>  {
>  	switch (linkstatus) {
>  -116,7 +115,6  static const char*
hfa384x_linkstatus_str(u16 linkstatus)
>  		return "Unknown";
>  	}
>  }
> -#endif /* PRISM2_NO_DEBUG */
>  
>  
>  /* Called only as a tasklet (software IRQ) */
>  -362,9 +360,7  void hostap_info_process(local_info_t
*local, struct sk_buff *skb)
>  	struct hfa384x_info_frame *info;
>  	unsigned char *buf;
>  	int left;
> -#ifndef PRISM2_NO_DEBUG
>  	int i;
> -#endif /* PRISM2_NO_DEBUG */
>  
>  	info = (struct hfa384x_info_frame *) skb->data;
>  	buf = skb->data + sizeof(*info);
>  -389,16 +385,16  void
hostap_info_process(local_info_t *local, struct sk_buff
*skb)
>  		break;
>  #endif /* PRISM2_NO_STATION_MODES */
>  
> -#ifndef PRISM2_NO_DEBUG
>  	default:
> -		PDEBUG(DEBUG_EXTRA, "%s: INFO - len=%d
type=0x%04xn",
> -		       local->dev->name, info->len,
info->type);
> -		PDEBUG(DEBUG_EXTRA, "Unknown info
frame:");
> -		for (i = 0; i < (left < 100 ? left : 100);
i++)
> -			PDEBUG2(DEBUG_EXTRA, " %02x", buf[i]);
> -		PDEBUG2(DEBUG_EXTRA, "n");
> +		if (hostap_debug) {
> +			PDEBUG(DEBUG_EXTRA, "%s: INFO - len=%d
type=0x%04xn",
> +			       local->dev->name, info->len,
info->type);
> +			PDEBUG(DEBUG_EXTRA, "Unknown info
frame:");
> +			for (i = 0; i < (left < 100 ? left : 100);
i++)
> +				PDEBUG2(DEBUG_EXTRA, " %02x", buf[i]);
> +			PDEBUG2(DEBUG_EXTRA, "n");
> +		}
>  		break;
> -#endif /* PRISM2_NO_DEBUG */
>  	}
>  }
>  
> diff --git a/drivers/net/wireless/hostap/hostap_main.c
b/drivers/net/wireless/hostap/hostap_main.c
> index 9077e6e..2015ab3 100644
> --- a/drivers/net/wireless/hostap/hostap_main.c
> +++ b/drivers/net/wireless/hostap/hostap_main.c
>  -46,6 +46,14  MODULE_VERSION(PRISM2_VERSION);
>  /* FIX: */
>  #define PRISM2_MAX_MTU (PRISM2_MAX_FRAME_SIZE - (6 /*
LLC */ + 8 /* WEP */))
>  
> +unsigned int hostap_debug = 0;
> +module_param(hostap_debug, uint, 0644);
> +MODULE_PARM_DESC(hostap_debug, "Enable verbose
debugging output");
> +EXPORT_SYMBOL(hostap_debug);
> +
> +unsigned int hostap_debug_mask = DEBUG_MASK;
> +module_param(hostap_debug_mask, uint, 0644);
> +EXPORT_SYMBOL(hostap_debug_mask);
>  
>  struct net_device * hostap_add_interface(struct
local_info *local,
>  					 int type, int rtnl_locked,
> diff --git a/drivers/net/wireless/hostap/hostap_wlan.h
b/drivers/net/wireless/hostap/hostap_wlan.h
> index 87a54aa..e318f26 100644
> --- a/drivers/net/wireless/hostap/hostap_wlan.h
> +++ b/drivers/net/wireless/hostap/hostap_wlan.h
>  -923,8 +923,6  struct hostap_skb_tx_data {
>  };
>  
>  
> -#ifndef PRISM2_NO_DEBUG
> -
>  #define DEBUG_FID BIT(0)
>  #define DEBUG_PS BIT(1)
>  #define DEBUG_FLOW BIT(2)
>  -935,16 +933,12  struct hostap_skb_tx_data
{
>  #define DEBUG_PS2 BIT(7)
>  #define DEBUG_MASK (DEBUG_PS | DEBUG_AP | DEBUG_HW |
DEBUG_EXTRA)
>  #define PDEBUG(n, args...) 
> -do { if ((n) & DEBUG_MASK) printk(KERN_DEBUG
args); } while (0)
> +do { if (hostap_debug && ((n) &
hostap_debug_mask)) printk(KERN_DEBUG args); } while (0)
>  #define PDEBUG2(n, args...) 
> -do { if ((n) & DEBUG_MASK) printk(args); } while
(0)
> -
> -#else /* PRISM2_NO_DEBUG */
> -
> -#define PDEBUG(n, args...)
> -#define PDEBUG2(n, args...)
> +do { if (hostap_debug && ((n) &
hostap_debug_mask)) printk(args); } while (0)
>  
> -#endif /* PRISM2_NO_DEBUG */
> +extern unsigned int hostap_debug;
> +extern unsigned int hostap_debug_mask;
>  
>  enum { BAP0 = 0, BAP1 = 1 };
>  
> 


-- 
kernel-team mailing list
kernel-teamlists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )