diff --git a/README.es-ES.md b/README.es-ES.md new file mode 100644 index 0000000..8ec27fb --- /dev/null +++ b/README.es-ES.md @@ -0,0 +1,75 @@ + + +# Tutorial para Instalar Rust GDAL en Windows [repositorio github](https://github.com/aliothor/Windows-Install-Rust-Gdal-Tutorial) + +Español | [简体中文](./README_zh_CN.md) + +#### 1、Descargue el código fuente compilado de gdal c++ y colóquelo en la misma carpeta. + +> https://www.gisinternals.com/release.php + +![paso 1](./imgs/image.png) +![paso 2](./imgs/image-1.png) +![archivo del directorio](./imgs/image-2.png) + +### 2、Configure las variables de entorno, tenga en cuenta la versión de GDAL. + +```shell +// windows path system environment variable +Path:C:\xxxxxx\gdal_lib\release-1930-x64-gdal-mapserver\\bin +Path:C:\xxxxxx\gdal_lib\release-1930-x64-gdal-mapserver\\bin\\gdal\\apps + +// windows global system environment variable +GDAL_HOME=C:\xxxxxx\gdal_lib\release-1930-x64-gdal-mapserver +PKG_CONFIG_PATH=C:\xxxxxx\gdal_lib\release-1930-x64-gdal-mapserver +PROJ_LIB=C:\xxxxxx\gdal_lib\release-1930-x64-gdal-3-7-1-mapserver-8-0-1\bin\proj9\share +GDAL_VERSION=371 +``` + +### 3、Instale choco y pkgconfiglite (pkg-config para Windows). + +> https://github.com/chocolatey/choco/releases + +```bash +choco install pkgconfiglite +``` + +### 4、Verifique la versión de gdal. + +```bash +gdalinfo --version +// GDAL 3.7.1, released 2023/07/06(configured correctly, the command line will print this content) +``` + +### 5、Cree el archivo gdal.pc, tenga en cuenta que la Version:3.7.1 debe ser la misma que en el cuarto paso. + +Ruta del archivo gdal.pc C:\xxxxxx\gdal_lib\release-1930-x64-gdal-mapserver\gdal.pc + +Contenido del archivo gdal.pc + +```text +name=gdal +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${exec_prefix}/include +datadir=${prefix}/share/${name} + +Name: lib${name} +Description: Geospatial Data Abstraction Library +Version: 3.7.1 +Libs: -L${libdir} -l${name} +Cflags: -I${includedir}/${name} +``` + + +### 6、Ejecute los ejemplos oficiales o clone este proyecto. +> https://github.com/georust/gdal + +```bash + +cargo run --example metadata +``` + +#### Hoja de Ruta +1、Enviar el código a la acción de github del repositorio oficial de rust gdal.