Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

326
Vistas
Transforming coordinates from EPSG:3857 to EPSG:32633 using Proj4js

I'm trying to transform coordinates from EPSG:3857 to EPSG:32633 using Proj4js. I added this script and the code is as follows:

        <script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.3/proj4.js"></script>

        Proj4js.defs["EPSG:3857"] = "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs";
        Proj4js.defs["EPSG:32633"] = "+proj=utm +zone=33 +ellps=WGS84 +datum=WGS84 +units=m +no_defs";
        var source = new Proj4js.Proj('EPSG:3857');    
        var dest = new Proj4js.Proj('EPSG:32633');

        var coorXNew = new Proj4js.Point( minX, maxX );   
        var coorYNew = new Proj4js.Point( minY, maxY ); 

        var transXCoords = Proj4js.transform(source, dest, coorXNew);      
        var transYCoords = Proj4js.transform(source, dest, coorYNew); 

I keep getting this error: Uncaught ReferenceError: Proj4js is not defined.

What am I doing wrong? Thanks for answers!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

A quick look at the docs and at the proj4.js file shows that Proj4js object doesn't exist. It's proj4. Make sure to have a look at the doc next time before asking!

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda