Re: [gdal-dev] ESRI text format?

2010-05-28 Thread Christopher Barker

Ralf Suhr wrote:

the text is a edit-session from ArcGIS. ogr2ogr can't read this.


In this case, I need to write it, but thanks -- I'm sure the same applies.

Mateusz Loskot wrote:

Surely it can...with help of simple script in Perl or Python it
could be a few minutes of work.


Sure, and that's what I've done, but then OGR is not writing it, I am 
writing it with Python -- which I agree is not that big a deal but still 
harder than one command line with ogr2ogr.


It doesn't really sound like this is a "format" that it would make sense 
to support -- which is probably why OGR doesn't support it.


-Chris




--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

chris.bar...@noaa.gov
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Draw KML/SHP with OGR?

2010-05-28 Thread Jean-Claude REPETTO

On 05/28/10 15:55, Ryan McKinley wrote:

Is it possible to render KML or SHP to an image using OGR/GDAL?
Obviously lots of the KML info would be lost, but I'm just thinking
something simple.


Try gdal_rasterize :
http://www.gdal.org/gdal_rasterize.html
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Draw KML/SHP with OGR?

2010-05-28 Thread Ryan McKinley
Is it possible to render KML or SHP to an image using OGR/GDAL?
Obviously lots of the KML info would be lost, but I'm just thinking
something simple.

If not, any pointers?  (For SHP, we could use geotools)

Thanks
Ryan
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] gdalwarp -dstnodata

2010-05-28 Thread Benoît Andrieu

Hi Sven,

It's not the role of gdalwarp to tell the color to be rendered with no 
data values.
In your example, gdalwarp tells the renderer to display the pixels with 
values equal to 255 with a color specified by the renderer.

It only adds in the tif files a tag that set the white color as transparent.

For example, with Mapserver as a renderer, you will set in the mapfile 
the background color as white (IMAGECOLOR 255 255 255).


What software are you using to view your files ?
What is the color in the source file that you want as transparent / white ?

Regards,

Benoît


Le 28/05/2010 11:05, Sven Schroeter a écrit :

Hi,
I use the gdalwarp utility to transform geotifs:

gdalwarp -co compress=lzw -s_srs "+proj=tmerc +lat_0=0 +lon_0=6 
+k=1.00

+x_0=250+y_0=0 +ellps=bessel +units=m
+towgs84=590.1181,99.6226,340.1890,1.185095,-1.334952,-2.904521,16.51559" 
-t_srs

"+proj=utm +ellps=GRS80 +datum=WGS84 +zone=32" -dstnodata 255
bbp07231053_2559-wla_0053-1a.tif out/bbp07231053_2559-wla_0053-1a.tif

I want to convert the new "nodata-areas" to be displayed in white (255 
255

255)
if I try -dstnodata 255  or -dstnodata "255 255 255" in every picture 
the no

data areas have other colors but not white. What can I do?

Thanks
Sven


___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] gdalwarp -dstnodata

2010-05-28 Thread Sven Schroeter
Hi,
I use the gdalwarp utility to transform geotifs:

gdalwarp -co compress=lzw -s_srs "+proj=tmerc +lat_0=0 +lon_0=6 +k=1.00 
+x_0=250+y_0=0 +ellps=bessel +units=m 
+towgs84=590.1181,99.6226,340.1890,1.185095,-1.334952,-2.904521,16.51559" 
-t_srs 
"+proj=utm +ellps=GRS80 +datum=WGS84 +zone=32" -dstnodata 255 
bbp07231053_2559-wla_0053-1a.tif out/bbp07231053_2559-wla_0053-1a.tif

I want to convert the new "nodata-areas" to be displayed in white (255 255 
255)
if I try -dstnodata 255  or -dstnodata "255 255 255" in every picture the no 
data areas have other colors but not white. What can I do?

Thanks
Sven ___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] S-57 Driver WRONG Geometry

2010-05-28 Thread Bogdan Grama
//
Thank
You all for your great effort!!!

Bogdan


On 5/27/2010 6:19 PM, Frank Warmerdam wrote:
> Bogdan Grama wrote:
>> Dear Frank
>>
>> Please find in the archive (http://www.wgs.ro/gdal/0_w.zip):
>>
>> -the ENC
>> -GDAL Interpretation
>> -correct  Interpretation
>>
>> The assembled geometry is not according with specifications. Each
>> referenced edge starts and ends with a ConnectedNode. Not all the
>> Connected nodes are present in the feature geometry dump.
>>
>> This is not all. If the file is rendered with Sevencs
>> (http://www.sevencs.com/service-products/download) and few others
>> viewers the rendering is correct.
>> For GDAL, ESRI FME, Caris the geometry is not correct.
>>
>
> Folks,
>
> I have determined this is the same as the previously reported:
>
>   http://trac.osgeo.org/gdal/ticket/2147
>
> for which I neglected to apply the patch.  I have revised the patch
> and applied it in trunk and 1.7 branch.
>
> Best regards,
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev