[Cartoweb-users] problem with PROJECTION in mapfile

karsten vennemann karsten at terragis.net
Tue Dec 11 15:57:14 EST 2007


Milo,

Did you check that your EPSG code actually exists in the proj file (in
proj/nad/epsg)? For geographic projection you would find  this line:

# WGS 84
<4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  no_defs <>

Also check whether you used capital letters for the EPSG code anywhere in
your map file ( I had that problem once... and its case sensitive).

You could also check 

1.)
what the result are - if you set the map projection of the whole map to
PROJECTION
   "init=epsg:4326"
END

2.)
Does the layer work if you skip the EPSG code but define its projection
manually in the map file (replace "init=epsg:4326") with:

  PROJECTION
    "proj=longlat"
    "ellps=WGS84"
    "datum=WGS84"
  END

Karsten 



-----Original Message-----
From: cartoweb-users-bounces at lists.maptools.org
[mailto:cartoweb-users-bounces at lists.maptools.org] On Behalf Of
cartoweb-users-request at lists.maptools.org
Sent: Tuesday, December 11, 2007 09:03
To: cartoweb-users at lists.maptools.org
Subject: Cartoweb-users Digest, Vol 32, Issue 14

Send Cartoweb-users mailing list submissions to
	cartoweb-users at lists.maptools.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.maptools.org/mailman/listinfo/cartoweb-users
or, via email, send a message with subject or body 'help' to
	cartoweb-users-request at lists.maptools.org

You can reach the person managing the list at
	cartoweb-users-owner at lists.maptools.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cartoweb-users digest..."


Today's Topics:

   1. Re: problem with PROJECTION in mapfile (Oliver Christen)
   2. Re: exportPdf.ini (Oliver Christen)
   3. Re: missing legend icon (Oliver Christen)


----------------------------------------------------------------------

Message: 1
Date: Tue, 11 Dec 2007 14:28:01 +0100
From: "Oliver Christen" <oliver.christen at camptocamp.com>
Subject: Re: [Cartoweb-users] problem with PROJECTION in mapfile
To: <mlinden at zeelandnet.nl>, <cartoweb-users at lists.maptools.org>
Message-ID: <A1076FEB707D47998D40DF65B8E9C7A4 at maunakea>
Content-Type: text/plain; charset="iso-8859-1"

I dont have a solution for this problem, but I think it is weird a
projection change would have effect on the way mapserver handle expression.
what's your whole layer definition ?

regards
Oliver
  ----- Original Message ----- 
  From: Milo van der Linden 
  To: cartoweb-users at lists.maptools.org 
  Sent: Tuesday, December 11, 2007 1:06 PM
  Subject: [Cartoweb-users] problem with PROJECTION in mapfile


  Hello list,

  I have a mapfile with layers in different projections. When I try to set a
projection within a LAYER in the mapfile like this:

  PROJECTION
   "init=epsg:4326"
  END

  I get: Error in msEvalExpression(): Cannot evaluate expression, no item
index defined.

  But when I set it to:
  PROJECTION
   "init=epsg:28992"
  END

  which is the same as the map projection, everything goes right, but my
layer shows up at the wrong position.


  My gut feeling tells me that something is wrong with my EPSG codes. What
can be the trick?



----------------------------------------------------------------------------
--


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.maptools.org/pipermail/cartoweb-users/attachments/20071211/793e
1174/attachment-0001.html

------------------------------

Message: 2
Date: Tue, 11 Dec 2007 14:43:53 +0100
From: "Oliver Christen" <oliver.christen at camptocamp.com>
Subject: Re: [Cartoweb-users] exportPdf.ini
To: <michael.hayoz at unifr.ch>, "Cartoweb ML"
	<cartoweb-users at lists.maptools.org>
Message-ID: <72092DFFD9F64D24B6BED5D0EEE7439A at maunakea>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
	reply-type=original

Did you modify the exportPfd.ini ?


> Hello all!
> 
> I'm trying to configure the PDF export (exportPdf.ini). The issue: even
> though I set a title and note or choose not to print the scalebar, query
> results etc., my choice won't appear in the PDF. There seems to be some
> overwriting default settings.
> 
> Any help would be highly appreciated! Thanks ;-)
> 
> Mike
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>


------------------------------

Message: 3
Date: Tue, 11 Dec 2007 14:41:51 +0100
From: "Oliver Christen" <oliver.christen at camptocamp.com>
Subject: Re: [Cartoweb-users] missing legend icon
To: <mlinden at zeelandnet.nl>, "Carolin Latze" <carolin.latze at unifr.ch>
Cc: cartoweb-users at lists.maptools.org
Message-ID: <5BA3220C703B417CBFAC7702B0E8D66F at maunakea>
Content-Type: text/plain; charset="iso-8859-1"

3DSitewindows seems to screw the icon path generation.

you could touch up the layers.tpl and test if you are out of range (meaning
the nap and nam icon would be displayed) by checking the values of  the
$element.nextscale or $element.layerOutRange parameter (in the template) and
set the path directly.

something like:
<img src="{if $element.layerOutRange > 0}/some/path/to/nap.png{else if
$element.layerOutRange <
0}/some/path/to/nam.png{else}$element.layerIcon}{/if}" alt="" class="pic"
...

regards
Oliver
  ----- Original Message ----- 
  From: Milo van der Linden 
  To: Carolin Latze 
  Cc: cartoweb-users at lists.maptools.org 
  Sent: Tuesday, December 11, 2007 2:22 PM
  Subject: Re: [Cartoweb-users] missing legend icon


  Carolin,

  thank you for the response. You set me on the right track!

  I discovered that the URL that is created pointing to the nap.png is
relative to the website root. Since my cartoweb3/htdocs is not at the root
of the website, it fails to find the nap.png

  I solved this by creating a virtual directory in IIS (my webserver of
choice) that points to the gfx directory for the virtual name
http://myserver/gfx/

  I do however think that this will be a hassle when copying projects (what
I do a lot) so it would be better if this is recognized as an issue and
fixed.

  Carolin Latze schreef: 
Hi Milo,

we had the same problem... there should be an icon called nap.png
instead of your layer icon, when it is invisible. I'm not sure how we
solved it... I think, we created a new folder called icons in
<project>/server_conf/<project> and created this png here... Maybe,
you'll find nap.png somewhere else in the cartoweb folder, then you have
to copy it in this newly created icons folder.

As I said, I'm not 100% sure (somebody else fixed this in our project),
but it should be something like this

Bye
Carolin

Milo van der Linden wrote:
  Hello list,

Somehow, no matter what I do to the particular layer "Buurtgrenzen" I
get no legend icon.

Please find my test environment at:

http://cartoweb.bosqom.nl/cartoweb3/htdocs/webGIS.php

Can anyone tell me why there is a redcross in the legend?
-- 


	

Milo van der Linden
skype: milovanderlinden <skype:milovanderlinden?add>
mlinden at zeelandnet.nl <mailto:mlinden at zeelandnet.nl>
milovanderlinden at gmail.com <mailto:milovanderlinden at gmail.com>
milo at 3dsite.nl <mailto:milo at 3dsite.nl>
http://www.3dsite.nl

	  	

De informatie in dit bericht reflecteert mijn persoonlijke mening en
niet die van een bedrijf of instantie. Aan de informatie kunnen geen
rechten worden ontleend. Indien dit bericht onderdeel is van een
forum, mailing-list of community dan gelden automatisch de bij het
betreffende medium behorende voorwaarden. The information in this
message reflects my personal opinion and not that of a company or
public body. All rights reserved.If this message is contained in a
mailing-list or community, the rights on the medium are automatically
adapted.

------------------------------------------------------------------------

_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
  
    
  


  -- 


       Milo van der Linden 
        skype: milovanderlinden
        mlinden at zeelandnet.nl
        milovanderlinden at gmail.com
        milo at 3dsite.nl
        http://www.3dsite.nl

         De informatie in dit bericht reflecteert mijn persoonlijke mening
en niet die van een bedrijf of instantie. Aan de informatie kunnen geen
rechten worden ontleend. Indien dit bericht onderdeel is van een forum,
mailing-list of community dan gelden automatisch de bij het betreffende
medium behorende voorwaarden. The information in this message reflects my
personal opinion and not that of a company or public body. All rights
reserved.If this message is contained in a mailing-list or community, the
rights on the medium are automatically adapted.
       



----------------------------------------------------------------------------
--


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.maptools.org/pipermail/cartoweb-users/attachments/20071211/051e
fb27/attachment-0001.html

------------------------------

_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users


End of Cartoweb-users Digest, Vol 32, Issue 14
**********************************************



More information about the Cartoweb-users mailing list