ogr2ogr problem!
Ken Lord
kenlord at GMAIL.COM
Wed Jun 15 09:51:39 PDT 2005
Hi Gabriel,
There are a series of EPSG codes that are not in the standard EPSG support
file, 42304 is one of them. These are codes that were created by the
community that were not included in the master list by the EPSG.
Find the 'EPSG' file in your Proj directory, add the following lines to the
end of the file:
## WGS84 / LCC Canada
<42101> +proj=lcc +ellps=WGS84 +lat_0=0 +lon_0=-95 +lat_1=49 +lat_2=77
+x_0=0 +y_0=-8000000.0 +datum=WGS84 +units=m no_defs <>
## NAD83 / BC Albers
<42102> +proj=aea +ellps=GRS80 +lat_0=45 +lon_0=-126.0 +lat_1=50.0 +lat_2=
58.5 +x_0=1000000.0 +y_0=0 +datum=NAD83 +units=m no_defs <>
#
## NAD83 LCC for Canada
<42304> +proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95 +lat_1=49 +lat_2=77
+datum=NAD83 +units=m no_defs <>
I believe recently these projections were added to the standard list, in
the 32xxx range, if someone can point us to a place to download the most
current version of the file.
Cheers,
Ken Lord
Vancouver BC
On 6/15/05, Gabriel Cloutier <gabriel.cloutier at rncan.gc.ca> wrote:
>
> Hi!
> I have a problem with this tool under Unix.
> When I execute:
> ogr2ogr -f "ESRI Shapefile" -select
>
> SNRC_F,CODEBNDT_F,CLASSIFI_F,REVETEME_F,CATEGORI_F,ELEVATION_F,NATURE_F,TYPE_F,REL_SOL_F,EMPLACEMENT_F
> layer BARRAGE_1_012B08.shp -a_srs EPSG:42304 -skipfailures
>
> I have this error:
> ERROR 6: EPSG PCS/GCS code 42304 not found in EPSG support files. Is this
> a
> valid
> EPSG coordinate system?
> Failed to process SRS definition: EPSG:42304
>
> My GDAL_DATA is correctly set on my /data directory.
> I took the data directory of a FWTools Windows installation do you think
> that can be the problem ?
>
> If I use EPSG:4326 my command work fine.
>
> The problem seems to be when the tool try to access to the the file
> cubewerx_extra.wkt.
> This file contain the definition of my projection (EPSG:42304)
>
> Thank you for your help!
>
>
> ----------------------------------------------------------------
> Gabriel Cloutier
> Natural Resources Canada
> Centre for Topographic Information
> Web Services Team
> 2144 King West Street, s. 010
> Sherbrooke, Quebec J1J 2E8
> E-Mail: Gabriel.Cloutier at NRCan.gc.ca
> Tel: (819) 564-5600 #295
> Fax: (819) 564-5698
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050615/16baecf5/attachment.htm>
More information about the MapServer-users
mailing list