RE: RE: RE: [mapserver-users] Gauss-Krüger

2010-11-17 Thread Daiane Fraga
Hi,

Thanks for the answers!
I'll gather all the information and I'll try to adapt to my problem.
I'll post more information about the problem when I get some results or when
I get more information.
Thank you very much for the help!

Daiane Fraga




-
From: Jan Hartmann j.l.h.hartm...@uva.nl
Date: 2010/11/16
Subject: Re: [mapserver-users] Gauss-Krüger
To: Daiane Fraga daiane.a.fr...@gmail.com
Cc: Fuchs Juan Carlos jf...@indec.mecon.gov.ar,
mapserver-users@lists.osgeo.org


 If your map is from 1908, there is a change that its projection is not in
the official modern EPSG table. In that case you need to derive the whole
PROJ4 definition from the legend of the map. As a rule, this is not
difficult, as the theoretical definitions of the common projection have been
known for a long time, it's just a matter of discovering which particular
set of parameters has been chosen for this map. In my experience with old
Dutch maps the main difficulty is finding out which ellipsoid has been used.
In your case, a map of 1908 can in no way have had a WGS84 datum. You
probably have to project it to a modern projection with the original
ellipsoid, and from that to WGS84.

Can you give any details of the maps you are working with and whether their
legends say something said about the projection? Are they part of a larger
map series?

Jan

On 11/16/10 12:02, Daiane Fraga wrote:

Hi,

I understand what you say. But this is not my question. I'm with a map in a
coordinate system outdated (the maps are dated from 1908). And I'm using an
application that interacts with Google Maps, which has caused problems. Did
you know how to do some kind of conversion from the Mapserver?
We can do a conversion to the WGS 1984, but it has to be done manually for
each map.
I'm not sure that may maps have a known Mapserver projection.

I'm using this:
PROJECTION
init=epsg:26915
proj=latlong
ellps=WGS84
datum=WGS84
END


Thanks!

Daiane Fraga




-- Forwarded message --
From: Fuchs Juan Carlos jf...@indec.mecon.gov.ar
Date: 2010/11/12
Subject: RE: [mapserver-users] Gauss-Krüger
To: Daiane Fraga daiane.a.fr...@gmail.com


 Hi Daiane
You have to find in Prij.4 the right EPSG code for your maps
in wich country / region are you interested?

yust to sart with ...

in the .map you have to insert two groups of code

in the header (first zone) goes the poyection of the map you are producing
PROJECTION
  init=epsg:heregoesyourcode
END

for each Layer you call to build the map
Layer

PROJECTION
  init=epsg:heregoesyourcodeof thesourcelayer
END

end

hope it help someway
Cheers
JC


-Mensaje original-
*De:* Daiane Fraga [mailto:daiane.a.fr...@gmail.com]
*Enviado el:* Viernes, 12 de Noviembre de 2010 12:03 p.m.
*Para:* mapserver-users@lists.osgeo.org
*Asunto:* [mapserver-users] Gauss-Krüger

 Hello,

Did someone have any problems using Mapserver with Gauss-Krüger?
I know that Mapserver is compatible with proj.4 library and the proj.4
library supports Gauss-Krüger. But I dont know how to use it.
Somebody could help me?

Thanks.

Daiane




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: mapserver and i18n

2010-11-17 Thread tellett

Hi all, just wanted to update you on this and the mapserver INSPIRE work in
general.

The latest version of the 'Technical Guidance to implement INSPIRE View
Services' has been out for a while. whether its the final doc or not I can't
say, but they have at least focused in on which attributes and service calls
should support multilingualism.  The document now says that the metadata
elements 'title', 'abstract' and 'description' are mandatory to be
translated if other languages are offered and that multilingual service
level error messages and multilingual getfeature and getmap operations are
optional. 

To implement the optional elements, the document suggests replacing the
operation-online-resources in each language specific
GetCapabilities-Response by a specific operation-online-resource for that
language. I presume this is so the getmap and getfeatureinfo specifications
don't have to be extended with the 'language' parameter in requests.

Because only titles, abstracts and descriptions are mandatory to be
translated if multiple languages are supported, I'm guessing (loosely) that
we could implement any one of a number of solutions to solve this. However,
multilingualism seems to be something that a greater number of the community
is interested in so perhaps a slightly more overreaching, permanent solution
should be found, one that deals with 3 areas of multilingualism; Back end
data translation, service and dataset metadata translation and service
operation translation. Theres now a trac on the developer list looking at
INSPIRE support for Mapserver: http://trac.osgeo.org/mapserver/ticket/3608
so I'll add a link there to this discussion and hopefully the developers
will have they're say.

Cheers

Tom
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5747491.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] fedora 14 cannot find -lpgport

2010-11-17 Thread Sebastian E. Ovide
Hi Guys,

I'm building mapserver in Fedora 14 and getting

/usr/bin/ld: cannot find -lpgport
collect2: ld returned 1 exit status

doing

yum list | grep pgport
and
yum provides *pgport*

I cannot see any package with pgport...

any ideas ?


-- 
Sebastian E. Ovide
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: Problem: HTML-Entities in query templates

2010-11-17 Thread rafacabanas

I think we are having the same problem. In my case the attribute data
contains a SELECT query and it doesn't works because it contains html entity
corresponding to the quotes . Therefore, the query fails and mapserver
doesn't return any image.

I know that it is possible to have HTML Entities in a file .map because I
have installed another instance of Mapserver which works properly.

This is the link to my post:
http://osgeo-org.1803224.n2.nabble.com/ascii-code-in-a-map-file-td5744626.html#a5744626
 
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Problem-HTML-Entities-in-query-templates-tp5732384p5748492.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] CGI wrapper scripts

2010-11-17 Thread David Hildebrand
The MapServer documentation has an example of CGI wrapper scripts for a
UNIX environment.  Would there be an equivalent Windows form I could
use?  I was thinking of using PERL.


===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca http://www.afsc.ca
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] CGI wrapper scripts

2010-11-17 Thread P Kishor
On Wed, Nov 17, 2010 at 11:20 AM, David Hildebrand
david.hildebr...@afsc.ca wrote:
 The MapServer documentation has an example of CGI wrapper scripts for a
 UNIX environment.  Would there be an equivalent Windows form I could
 use?  I was thinking of using PERL.



You could just write one based on the shell wrapper script. Something
like (untested)

$mapserv = /path/to/mapserv.exe;
$mapfile = /path/to/mapfile.map;

if ($ENV{'REQUEST_METHOD'} eq 'GET') {
$ENV{'QUERY_STRING'} .= map=$mapfile;
exec($mapserv);
}
else {
die Sorry, I only understand GET requests\n;
}


-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
---
Assertions are politics; backing up assertions with evidence is science
===
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] CGI wrapper scripts

2010-11-17 Thread Paul Spencer
David, if you are using Apache then you might be able to use mod_rewrite to do 
a similar thing.  For instance, I put the following into a .htaccess file in my 
cgi-bin directory to obscure map paths in fusion - basically you use 
map=namesession=sessionid and it will internally redirect to 
map=/tmp/sess_sessionid/name.map.  There are two rules in case the order of 
map and session changes.

RewriteEngine on
RewriteCond %{QUERY_STRING} !redirected
RewriteCond %{QUERY_STRING} session=([a-z0-9]+).*map=([a-z0-9-_]+)
RewriteRule ^.*$ 
%{REQUEST_URI}?redirected=truemap=/tmp/sess_%1/%2.map%{QUERY_STRING} [L]
RewriteCond %{QUERY_STRING} !redirected
RewriteCond %{QUERY_STRING} map=([a-z0-9-_]+).*session=([a-z0-9]+)
RewriteRule ^.*$ 
%{REQUEST_URI}?redirected=truemap=/tmp/sess_%2/%1.map%{QUERY_STRING} [L]

You could do something similar for just obscuring the map= part

RewriteEngine on

# if not redirected and contains map= then fire a 403 error
RewriteCond %{QUERY_STRING} !redirected
RewriteCond %{QUERY_STRING} map=
RewriteRule mapserv %{REQUEST_URI} [F]

# if not redirected and no map= redirect to mapserv with map=
 RewriteCond %{QUERY_STRING} !redirected
 RewriteCond %{QUERY_STRING} !map=
 RewriteRule gmap 
/cgi-bin/mapserv.exe?redirected=truemap=/ms4w/apps/gmap/htdocs/gmap75.map%{QUERY_STRING}

then any requests with map= in them will be forbidden unless they also contain 
'redirected'

http://server/cgi-bin/mapserv?map=  - will be forbidden

and requests for gmap will be redirected to mapserv.exe with map=/ in them

http://server/cgi-bin/gmap? - redirected

In a production environment you would change 'redirected' to some random, 
unguessable string in the 3 places it occurs

Cheers

Paul


On 2010-11-17, at 12:20 PM, David Hildebrand wrote:

 The MapServer documentation has an example of CGI wrapper scripts for a
 UNIX environment.  Would there be an equivalent Windows form I could
 use?  I was thinking of using PERL.
 
 
 ===
 David V. Hildebrand
 Agriculture Financial Services Corporation
 (403) 782-8239   
 
 www.afsc.ca http://www.afsc.ca
 This communication is intended for the use of the recipient to which it
 is addressed, and may contain confidential, personal and/or privileged
 information. Please contact Agriculture Financial Services Corporation
 immediately if you are not the intended recipient of this communication,
 and do not copy, distribute, or take action relying on it. Any
 communication received in error, or subsequent reply, should be deleted
 or destroyed. Please consider the environment before printing this
 email.
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


__

   Paul Spencer
   Chief Technology Officer
   DM Solutions Group Inc
   http://research.dmsolutions.ca/

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users