- Vous êtes ici: Accéder au Wiki GeoRezo » Accueil : Wiki GeoRezo » Les logiciels en géomatique » ShapeLib
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Dernière révision Les deux révisions suivantes | ||
main:logiciels:shapelib [2009/06/19 16:27] Yves |
main:logiciels:shapelib [2009/06/22 10:19] Yves |
||
---|---|---|---|
Ligne 208: | Ligne 208: | ||
==== shpproj ==== | ==== shpproj ==== | ||
- | * **Objectif :** Reprojete des Shapefiles en utilisant PROJ.4 | + | * **Objectif :** Reprojette des Shapefiles en utilisant PROJ.4 |
* **Usage :** shpproj shp_file new_shp ( -i=in_proj_file | -i="in_params" | -i=geographic ) ( -o=out_info_file | -o="out_params" | -o=geographic ) | * **Usage :** shpproj shp_file new_shp ( -i=in_proj_file | -i="in_params" | -i=geographic ) ( -o=out_info_file | -o="out_params" | -o=geographic ) | ||
- | * //param1 :// explain | ||
- | * //param2 :// explain | ||
- | === INPUT === | + | === Entré === |
Input can come from one of three sources. A projection parameter file, directly through parameters or geographic. If the shapefile has an associated prj file, name the same as the shapefile but ending in ".prj" it will be used by default ignoring all other parameters. If input is omitted it defaults to geographic, unless the default prj file exists. | Input can come from one of three sources. A projection parameter file, directly through parameters or geographic. If the shapefile has an associated prj file, name the same as the shapefile but ending in ".prj" it will be used by default ignoring all other parameters. If input is omitted it defaults to geographic, unless the default prj file exists. | ||
- | === OUTPUT === | + | === Sortie === |
Output can come from one of three sources. A projection parameter file, directly through parameters or geographic. If output is omitted it defaults to geographic. | Output can come from one of three sources. A projection parameter file, directly through parameters or geographic. If output is omitted it defaults to geographic. | ||
- | === PROJECTION PARAMETER FILE === | + | === Fichier de paramètres de projection === |
- | This file MUST end with the extension ".prj". It has the form of one projection parameter per line. Parameters can be in any order. The projection parameters are those used to define a PROJ.4 projection. | + | Ce fichier **doit** se terminer avec l'extension ".prj". Il est sous la forme d'un paramètre projection par ligne. Les paramètres peuvent être dans n'importe quel ordre. Les paramètres de projection sont ceux utilisé pour définir une projection PROJ.4. |
- | === PROJECTION PARAMETERS === | + | === Paramètres de projection === |
+ | Les paramètres de projection sont les mêmes que ceux utilisés par proj et invproj. Utilisez | ||
+ | * proj -lP : pour voir les projections disponibles | ||
+ | * proj -lu : pour voir les unités disponibles | ||
+ | * proj -le : pour voir les ellipsoïdes disponibles | ||
- | Are the same as used by proj and invproj. | + | Ou visitez la page web du projet PROJ.4 sur http://www.remotesensing.org/proj pour plus de détails. |
- | use proj -lP to see available projections | + | **Exemples :** |
- | proj -lu to see available units | + | |
- | proj -le to see available ellipsoid | + | |
- | Or visit the PROJ.4 web page at http://www.remotesensing.org/proj for more details. | + | Les exemples suivants projettent un fichier //rowtest// vers //row3//, déplace des données de //Stateplane NAD83 zone 1002// vers //utm zone 16// en mètres |
- | + | ||
- | **Exemple :** | + | |
- | the following example projects file rowtest to row3, moving data from Stateplane NAD83 zone 1002 to utm zone 16 in meters | + | |
shpproj rowtest row -i="init=nad83:1002 units=us-ft" -o="proj=utm zone=16 units=m" | shpproj rowtest row -i="init=nad83:1002 units=us-ft" -o="proj=utm zone=16 units=m" | ||
- | | + | |
shpproj rowtest row3 -o="proj=utm zone=18 units=m" -i="zone=16 proj=utm units=us-ft" | shpproj rowtest row3 -o="proj=utm zone=18 units=m" -i="zone=16 proj=utm units=us-ft" | ||
- | | + | |
shpproj rowtest row3 -o="proj=utm zone=18 units=m" | shpproj rowtest row3 -o="proj=utm zone=18 units=m" | ||
- | | + | |
shpproj rowtest row3 -i=myfile.prj -o=geographic | shpproj rowtest row3 -i=myfile.prj -o=geographic | ||
shpproj rowtest row3 -is=myfile.prj | shpproj rowtest row3 -is=myfile.prj | ||