Quantcast

[pmapper-users] Projection error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[pmapper-users] Projection error

Andreas Douvalis
Can you help me with the javascript error bellow?
"NetworkError: 404 Not Found - /pmapper/projCode/null.js"

My map projection is :
  PROJECTION
    "init=epsg:3857"
  END # PROJECTION
and my config xml
            <unitAndProj>
                <projections>
                    <prj name="WEB-mercator">
                        <definition>init=epsg:3857</definition>
                    </prj>
                    <prj name="lat/lon WGS84">
                        <definition>init=epsg:4326</definition>
                    </prj>
                    <prj name="Greek Grid -EGSA87">
                        <definition>init=epsg:2100</definition>
                    </prj>
                    <prj name="Google Mercator">
                        <definition>init=epsg:900913</definition>
                    </prj>
                </projections>
            </unitAndProj>
            <coordinates>
                <mapPrj name="WEB-mercator" roundTo="0">
                </mapPrj>
                    <prj name="Greek Grid -EGSA87" roundTo="0">
                        <definition>init=epsg:2100</definition>
                    </prj>
                    <prj name="lat/lon WGS84" roundTo="4">
                        <definition>init=epsg:4326</definition>
                    </prj>
                    <prj name="WEB-mercator" roundTo="0">
                        <definition>init=epsg:3857</definition>
                    </prj>
                    <prj name="Google Mercator" roundTo="0">
                        <definition>init=epsg:900913</definition>
                    </prj>
            </coordinates>



------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
pmapper-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] Projection error

Thomas
Hi,

I don't really use proj4s plugin, so I'm not sure but I think you have
to define the projection (3857 here):
-  in the XML (already done as I see below)
- in JS
     - in your js_config.php :
Proj4js.defs["EPSG:2154"]="+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5
+lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0
+units=m +no_defs  ";
     - or with the correct js file in pmapper/plugins/proj4js/defs

Thomas

Le 28/01/2015 11:03, Andreas Douvalis a écrit :

> Can you help me with the javascript error bellow?
> "NetworkError: 404 Not Found - /pmapper/projCode/null.js"
>
> My map projection is :
>    PROJECTION
>      "init=epsg:3857"
>    END # PROJECTION
> and my config xml
>              <unitAndProj>
>                  <projections>
>                      <prj name="WEB-mercator">
>                          <definition>init=epsg:3857</definition>
>                      </prj>
>                      <prj name="lat/lon WGS84">
>                          <definition>init=epsg:4326</definition>
>                      </prj>
>                      <prj name="Greek Grid -EGSA87">
>                          <definition>init=epsg:2100</definition>
>                      </prj>
>                      <prj name="Google Mercator">
>                          <definition>init=epsg:900913</definition>
>                      </prj>
>                  </projections>
>              </unitAndProj>
>              <coordinates>
>                  <mapPrj name="WEB-mercator" roundTo="0">
>                  </mapPrj>
>                      <prj name="Greek Grid -EGSA87" roundTo="0">
>                          <definition>init=epsg:2100</definition>
>                      </prj>
>                      <prj name="lat/lon WGS84" roundTo="4">
>                          <definition>init=epsg:4326</definition>
>                      </prj>
>                      <prj name="WEB-mercator" roundTo="0">
>                          <definition>init=epsg:3857</definition>
>                      </prj>
>                      <prj name="Google Mercator" roundTo="0">
>                          <definition>init=epsg:900913</definition>
>                      </prj>
>              </coordinates>
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> pmapper-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
pmapper-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[pmapper-users] Πρθ: Projection error

Andreas Douvalis


      Στις 12:43 μ.μ. Τετάρτη, 28 Ιανουαρίου 2015, ο/η Andreas Douvalis <[hidden email]> έγραψε:
   

 Thank you!
You are right! I should have defined in js_config.php!
Now it works!
 

     Στις 12:33 μ.μ. Τετάρτη, 28 Ιανουαρίου 2015, ο/η Thomas RAFFIN <[hidden email]> έγραψε:
   

 Hi,

I don't really use proj4s plugin, so I'm not sure but I think you have
to define the projection (3857 here):
-  in the XML (already done as I see below)
- in JS
    - in your js_config.php :
Proj4js.defs["EPSG:2154"]="+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5
+lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0
+units=m +no_defs  ";
    - or with the correct js file in pmapper/plugins/proj4js/defs

Thomas

Le 28/01/2015 11:03, Andreas Douvalis a écrit :

> Can you help me with the javascript error bellow?
> "NetworkError: 404 Not Found - /pmapper/projCode/null.js"
>
> My map projection is :
>    PROJECTION
>      "init=epsg:3857"
>    END # PROJECTION
> and my config xml
>              <unitAndProj>
>                  <projections>
>                      <prj name="WEB-mercator">
>                          <definition>init=epsg:3857</definition>
>                      </prj>
>                      <prj name="lat/lon WGS84">
>                          <definition>init=epsg:4326</definition>
>                      </prj>
>                      <prj name="Greek Grid -EGSA87">
>                          <definition>init=epsg:2100</definition>
>                      </prj>
>                      <prj name="Google Mercator">
>                          <definition>init=epsg:900913</definition>
>                      </prj>
>                  </projections>
>              </unitAndProj>
>              <coordinates>
>                  <mapPrj name="WEB-mercator" roundTo="0">
>                  </mapPrj>
>                      <prj name="Greek Grid -EGSA87" roundTo="0">
>                          <definition>init=epsg:2100</definition>
>                      </prj>
>                      <prj name="lat/lon WGS84" roundTo="4">
>                          <definition>init=epsg:4326</definition>
>                      </prj>
>                      <prj name="WEB-mercator" roundTo="0">
>                          <definition>init=epsg:3857</definition>
>                      </prj>
>                      <prj name="Google Mercator" roundTo="0">
>                          <definition>init=epsg:900913</definition>
>                      </prj>
>              </coordinates>
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> pmapper-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
pmapper-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users


   

   
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
pmapper-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Loading...