Re: [mapserver-users] Error compiling mapserver 5.2 with agg

2008-07-17 Thread Milo van der Linden
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Luigi,

Today I compiled Mapserver 5.2 and agg 2.5.0 from source and in that
combination the problem does not exist. It seems to me that the problem
is in the 2.4-2.1 version of agg?

I installed agg this way:

wget http://www.antigrain.com/agg-2.5.0.tar.gz
tar -xzf agg-2.5.0.tar.gz
cd agg-2.5.0
make
cd ..
mv agg-2.5.0 /usr/local/src/agg
ldconfig /usr/local/lib

hope this works for you too.

Kind regards,

Milo

Luigi Castro Cardeles wrote:
> Hi list,
> 
> i tried compile mapserver 5.2 with agg 2.4-2.1 (x86_64) and i am getting
> this error message:
> 
> 
> mapagg.h:37: error: ISO C++ forbids declaration of 'const_row_info' with no
> type
> mapagg.h:37: error: typedef name may not be a nested-name-specifier
> mapagg.h:37: error: expected ';' before '<' token
> mapagg.h:96: error: 'row_data' does not name a type
> 
> and error go on to mapagg.cpp.
> 
> Anyone knows how to fix it?
> Thanks
> 
> 
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIf5JX2oMdf0ahv2kRAh2QAJ9CRWaoln9VhNjzWk4E2Rnk5OFaRQCfSH1Z
V+atMJHt9Crcfs7Fojpqn9Y=
=1H57
-END PGP SIGNATURE-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] High resolution printing

2008-09-30 Thread Milo van der Linden

Hello list!

I have been searching the web for tips and tricks, but basically what I 
need is a method or procedure or (commercial) tool that can enhance my 
mapserver installation to enable high resolution printing.


What I am looking for is the best practice to:

- Add a button to our website
- Let the button start a script or program that processes the active 
layers in the map view based upon the current extent
- Generate a mixture of high-res images and optionally svg or alike for 
linework

- combine the works in a pdf
- present the pdf for download to the user

I would also like to know if there are any commercial, mapserver based, 
solutions for this. I am also willing to hire an expert to achieve this.


Any ideas?

Kind regards,

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


Re: [mapserver-users] Trouble with IIS/WMS service in ArcGIS

2008-10-09 Thread Milo van der Linden
Make sure that the directory where the temporary map images /ms_tmp/ are 
stored is accessible by your server's IIS_XXUSER otherwise no images 
will be served.


Don't trust IIS to arrange this for you, you have to set it yourself at 
system level.


Bistrais, Bob wrote:

I suppose this is more of an ArcGIS question, so I apologize if it's not
appropriate here, but perhaps somebody has a suggestion.  We have a
MapServer WMS service.  It is running on a server which uses IIS instead
of Apache.  We are trying to consume it through ArcGIS.  I can make the
connection in ArcCatalog, and the properties look correct.  But the data
(which is imagery) cannot be seen in ArcGIS, only a white space.  The
spatial extent looks correct.

We had the same imagery in a WMS service, on an Apache server, and it
works fine with ArcGIS.  Does anyone have any suggestions?

Thanks,
Bob





___
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


Re: [MAPSERVER-USERS] SLD benefits

2008-10-09 Thread Milo van der Linden

BrainDrain wrote:

Could someone clarify for me what benefits has SLD's which supported in MS
irrespective of WMS?
Does some handy tools for editing SLD's extists? (desktop apps/web UI's) -
to create theirs separately (by 'publishers') and then applying to mapfile


- SLD's are becoming a standard.
- Content of the SLD's can be validated against the 
StyledLayerDescriptor.xsd
- You could more easily exchange datasets WITH STYLING between geoserver 
/ mapserver (and others?) when using SLD

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


Re: [MAPSERVER-USERS] SLD benefits

2008-10-10 Thread Milo van der Linden
Usability is also an issue with the mapfile for which no easy clients 
have been developed either. But I feel editing SLD with for instance 
Eclipse (Set syntax highlighting to xml) is more easy and user friendly 
already.


I have heard rumors from the FOSS4G that SLD editting software is being 
developed for geoserver, perhaps this will also be usable for mapserver 
(assuming both systems are strict OGC compliant to the SLD schema)


So I think the best thing is to be patient (give developing teams a 
change) be supportive or help projects develop usable tools for this.


Kind regards,

Milo van der Linden

BrainDrain wrote:

What about usability? I suppose editing xml is not convenient/unerring way
for everyone.

Milo van der Linden wrote:

BrainDrain wrote:

Could someone clarify for me what benefits has SLD's which supported in
MS
irrespective of WMS?
Does some handy tools for editing SLD's extists? (desktop apps/web UI's)
-
to create theirs separately (by 'publishers') and then applying to
mapfile

- SLD's are becoming a standard.
- Content of the SLD's can be validated against the 
StyledLayerDescriptor.xsd
- You could more easily exchange datasets WITH STYLING between geoserver 
/ mapserver (and others?) when using SLD

___
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


Re: [mapserver-users] Update: MapServer Documentation Effort

2008-12-23 Thread Milo van der Linden

Great work!

And excellent that these docs are comming from svn.

I already have a remark in 
http://svn.osgeo.org/mapserver/trunk/docs/mapfile/index.txt;


.. seealso::
   :ref:`introduction` for "An Introduction to the Mapfile"

Is ignored.

I tried to go to trac to see if I could attach a ticket, but I noticed 
trac chokes on ref and seealso too. perhaps there is a trac module for 
the documentation structure used?


Anyhow, 3 thumbs up ;-)!


Howard Butler wrote:


On Dec 23, 2008, at 8:46 AM, Fawcett, David wrote:


Let me know if you want me to contribute.


Any and all are welcome to contribute :)

That particular doc's source code is 
http://svn.osgeo.org/mapserver/trunk/docs/introduction.txt  Start by 
filing tickets in Trac under the Documentation component and adding 
your changes to them as patches.


Howard


___
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


Re: [mapserver-users] MapServer on Intel Atom?

2009-01-13 Thread Milo van der Linden

Just out of curiosity,

With what reason would you like to have a mapserver on a mobile device? 
I assume mostly to have some sort of localhost connection from a local 
application, and in that case, I would opt for a solution where one can 
for instance download raster-tiles from a server to the mobile device 
that are then used by the application through more simplified functions, 
for vector the same procedure, download vectors and make them available 
through libraries. Installing a httpserver with mapserver as a cgi app 
sounds like a bit of overkill. Perhaps the mobile app can simply use 
gdal and ogr libraries.





Dan Little wrote:

I agree with where Jukka is going...  Raster layers are usually pretty fast so 
long as they are tuned correctly.


- Original Message 
  

From: Rahkonen Jukka 
To: kreshna_icehe...@yahoo.com; mapserver-users@lists.osgeo.org
Sent: Tuesday, January 13, 2009 6:04:07 AM
Subject: Re: [mapserver-users] MapServer on Intel Atom?

Hi,

You say that your raster layer is slower than vector layers, but do you feel it 
is too slow?  Your image should be served pretty fast by Mapserver.  The key is 
that tiff file is tiled (for zoom-in situation) and that it has overviews (for 
zoom-out case). Could you send the gdalinfo report about your image if you 
suffer from slowness?


-Jukka Rahkonen-



-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
kreshna_icehe...@yahoo.com

Lähetetty: 13. tammikuuta 2009 12:35
Vastaanottaja: mapserver-users@lists.osgeo.org; Dan Little
Aihe: Re: [mapserver-users] MapServer on Intel Atom?

Hi, thanks.

The vectors are quite simple. I've never experienced slow 
down when displayed vector data, not even on an old Toshiba 
M20 laptop.


Raster, on the other hand, is always the biggest problem. 
Compared to polygons, my raster is always slower to zoom, to 
pan, etc (despite the size is only 500 Mb). Is displaying 
raster more CPU-intensive or memory-intensive? If I'm using 
Intel Atom, will my raster be affected severely?


Also, can using bigger RAM (let say, 2GB or so) compensate 
for the lack of processing power of Intel Atom?


Thanks again,
-Kresh


--- On Mon, 1/12/09, Dan Little wrote:

  
From: Dan Little 
Subject: Re: [mapserver-users] MapServer on Intel Atom?

To: kreshna_icehe...@yahoo.com, mapserver-users@lists.osgeo.org
Date: Monday, January 12, 2009, 9:18 PM I think the atom 

will be more 
  

than adequate... depending on the dataset. :-)

Serving 100 points is significantly less intensive than serving 100 
city-boundary polygons.



(Oops forgot to send to the list)


- Original Message 


From: "kreshna_icehe...@yahoo.com"
  
To: mapserver-users@lists.osgeo.org

Sent: Monday, January 12, 2009 8:09:15 PM
Subject: [mapserver-users] MapServer on Intel Atom?

I'll be doing a lot of MapServer demo in the
  

future. I'm quite interested in


Intel Atom-based subnotebooks for the purpose (like
  

Lenovo IdeaPad S10), since


they are light and mobile.

However, I wonder if Intel Atom is adequate to run
  

MapServer. The MapServer will


be run on either ms4w on Windows XP, or directly on
  

Linux. The layers are stored


on postGIS (there are fifteen layers or so), and there
  

is also a 476 megabytes


raster file in .TIFF format.

Will Intel Atom be adequate for the purpose? Will 2GB
  

of memory help? Has anyone


ever done such thing before?

Many thanks,
-Kresh


 
___

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 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapServer on Intel Atom?

2009-01-13 Thread Milo van der Linden
Oops, sorry. Should have read the initial post, for demonstration 
purposes, using datasets that are not to big sounds possible to me.


Dan Little wrote:

I agree with where Jukka is going...  Raster layers are usually pretty fast so 
long as they are tuned correctly.


- Original Message 
  

From: Rahkonen Jukka 
To: kreshna_icehe...@yahoo.com; mapserver-users@lists.osgeo.org
Sent: Tuesday, January 13, 2009 6:04:07 AM
Subject: Re: [mapserver-users] MapServer on Intel Atom?

Hi,

You say that your raster layer is slower than vector layers, but do you feel it 
is too slow?  Your image should be served pretty fast by Mapserver.  The key is 
that tiff file is tiled (for zoom-in situation) and that it has overviews (for 
zoom-out case). Could you send the gdalinfo report about your image if you 
suffer from slowness?


-Jukka Rahkonen-



-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
kreshna_icehe...@yahoo.com

Lähetetty: 13. tammikuuta 2009 12:35
Vastaanottaja: mapserver-users@lists.osgeo.org; Dan Little
Aihe: Re: [mapserver-users] MapServer on Intel Atom?

Hi, thanks.

The vectors are quite simple. I've never experienced slow 
down when displayed vector data, not even on an old Toshiba 
M20 laptop.


Raster, on the other hand, is always the biggest problem. 
Compared to polygons, my raster is always slower to zoom, to 
pan, etc (despite the size is only 500 Mb). Is displaying 
raster more CPU-intensive or memory-intensive? If I'm using 
Intel Atom, will my raster be affected severely?


Also, can using bigger RAM (let say, 2GB or so) compensate 
for the lack of processing power of Intel Atom?


Thanks again,
-Kresh


--- On Mon, 1/12/09, Dan Little wrote:

  
From: Dan Little 
Subject: Re: [mapserver-users] MapServer on Intel Atom?

To: kreshna_icehe...@yahoo.com, mapserver-users@lists.osgeo.org
Date: Monday, January 12, 2009, 9:18 PM I think the atom 

will be more 
  

than adequate... depending on the dataset. :-)

Serving 100 points is significantly less intensive than serving 100 
city-boundary polygons.



(Oops forgot to send to the list)


- Original Message 


From: "kreshna_icehe...@yahoo.com"
  
To: mapserver-users@lists.osgeo.org

Sent: Monday, January 12, 2009 8:09:15 PM
Subject: [mapserver-users] MapServer on Intel Atom?

I'll be doing a lot of MapServer demo in the
  

future. I'm quite interested in


Intel Atom-based subnotebooks for the purpose (like
  

Lenovo IdeaPad S10), since


they are light and mobile.

However, I wonder if Intel Atom is adequate to run
  

MapServer. The MapServer will


be run on either ms4w on Windows XP, or directly on
  

Linux. The layers are stored


on postGIS (there are fifteen layers or so), and there
  

is also a 476 megabytes


raster file in .TIFF format.

Will Intel Atom be adequate for the purpose? Will 2GB
  

of memory help? Has anyone


ever done such thing before?

Many thanks,
-Kresh


 
___

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 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Postgis data source: quoting table name problem

2009-06-22 Thread Milo van der Linden
Hello Marco,


If you do not specify ...using unique geoidnd using SRID=28992'
mapserver will search the table for srid information, again sending the
table name in a query to the database as seen in the error message.

I agree that this might be a tiny bug, but it might be a workaround to
define the srid in the DATA clause.

Kind regards,

Milo van der Linden



On Mon, 2009-06-22 at 15:02 +0200, DeDuikertjes wrote:
> Dear List,
> 
> I've extensively searched the archives, saw a couple of more or less
> related posts, but couldn't find any solutions for my problem.
> 
> In my mapserver application I use postgis as a data source.
> In my application the tables containing geometry columns do need to have
> odd characters like . and - in their names (for clarity: the table names
> that is, not the column names).
> Postgis allows this by double qouting the table name in functions,
> queries and sql statements.
> 
> So in mapserver I like to do that as well as in the following example:
> 
> DATA 'tc_vlak_geometry from "nl_imro_0026_svbbu_0001" using unique geoidn'
> 
> Unfortunately that fails with a message from the WMS:
> 
> msDrawMap(): Image handling error. Failed to draw layer named
> 'geoidNL.IMRO.SVBBU-102-_vlak'. prepare_database(): Query error. Error
> executing POSTGIS DECLARE (the actual query) statement: 'DECLARE
> mycursor BINARY CURSOR FOR SELECT
> asbinary(force_collection(force_2d(tc_vlak_geometry)),'NDR'),geoidn::text
> from "nl_imro_0026_svbbu_0001" WHERE tc_vlak_geometry &&
> setSRID('BOX3D(155016 467631,156758 470080)'::BOX3D,
> find_srid('','"nl_imro_0026_svbbu_0001"','tc_vlak_geometry') )'
> Postgresql reports the error as 'ERROR: find_srid() - couldnt find the
> corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS
> table? Is there an uppercase/lowercase missmatch? ' More Help: Error
> with POSTGIS data variable. You specified 'check your .map file'.
> Standard ways of specifiying are : (1) 'geometry_column from
> geometry_table' (2) 'geometry_column from (sub query) as foo using
> unique column name using SRID=srid#' Make sure you put in the 'using
> unique column name' and 'using SRID=#' clauses in. For more help, please
> see http://postgis.refractions.net/documentation/ Mappostgis.c - version
> of Jan 23/2004
> 
> Removing the quotes works fine and gives a map from the WMS.
> Of course removing the quotes in this example is no problem because
> there are no odd characters like . and -.
> When tablenames do have these characters, the query of course fails.
> 
> Are there any workarounds for this problem other than renaming tables to
> names without odd characters?
> (and yes, I've tried to add using srid = 28992 to the DATA string, but
> that doesn't help).
> (and yes, I've tried escaping double quotes like DATA "'tc_vlak_geometry
> from \"nl_imro_0026_svbbu_0001\" using unique geoidn"')
> 
> Any help greatly appreciated.
> 
> MArco
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


signature.asc
Description: This is a digitally signed message part
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [Mapserver-users] programming with visual basic .net

2009-07-02 Thread Milo van der Linden
I do not want to be rude to the mapserver community, since I moved to
linux 2 years ago I have never abandonned it ;-) but...

If you want to create mapping applications from the dotnet framework,
you might want to consider sharpmap. I have had some really good
experience with their toolkit when I was still programming for windows:

http://sharpmap.codeplex.com/

Maybe it can be of use for you.

Kind regards,

Milo van der Linden

Tamas Szekeres wrote:
> Hi,
>
> You can use the MapScript C# wrapper to achieve the desired
> functionality according to the following steps:
>
> 1. Download the binary package which suits best to your compiler and
> architecture: http://vbkto.dyndns.org:1280/sdk/Default.aspx
> 2. Add reference to the mapscript_csharp.dll in your Visual Studio
> project.
> 3. Copy the dll-s from the /bin and /bin/ms/csharp directory into your
> target directory.
> 4. use the classes of the OSGeo.MapServer namespace to make up your
> application
>
> Refer to the following tutorial for more detailed information
> http://www.paolocorti.net/2006/09/20/mapserver-tutorial-for-c-mapscript-asp-net/
>
> Best regards,
>
> Tamas
>
>
>
>
> 2009/7/2  <mailto:youness.elmedra...@somei.fr>>
>
> Hello,
>
> i'm a new member in this list and i have some questions.
> i want to construct a web site with mapserver and programming with
> visual basic .net (framework 2.0). what i need for that? there is
> some dlls file to compile for work with mapscript vb .net?
>
> help me plz. thanks
>
> with best regards,
> Youness ELMEDRAOUI
> Les informations figurant sur cet e-mail ont un caractère
> strictement confidentiel et sont exclusivement adressées au
> destinataire mentionné ci-dessus.Tout usage, reproduction ou
> divulgation de cet e-mail est strictement interdit si vous n'en
> êtes pas le destinataire.Dans ce cas, veuillez nous en avertir
> immédiatement par la même voie et détruire l'original. Merci
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> <mailto: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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ms_newprojectionobj

2009-07-03 Thread Milo van der Linden
Hello Sven,

I suggest you search for a file called epsg on both systems. It is a
text file containing EPSG projection parameters.
Search both for <31466> and  <4326>
Compare the lines and check to see they match.

Good luck!

Sven Schroeter wrote:
> Hi,
>
> I'm using php-mapscript to project a point from epsg:31466
> (Gauss-Krueger-Zone2) to epsg:4326 (WGS84):
>
> //create point
> $qPoint = ms_newPointObj();
> $qPoint->setXY(2521189,5541667);
>
> // Calculate -> WGS84
> $projInObj = ms_newprojectionobj("init=epsg:31466");
> $projOutObj = ms_newprojectionobj("init=epsg:4326");
> $qPoint->project($projInObj, $projOutObj);
> $WGS_X = round($qPoint->x,6);
> $WGS_Y = round($qPoint->y,6);
> echo 'WGS84: '.$WGS_Y.','.$WGS_X.' ';
>
> I let the script running on two diferent Servers with the same
> Mapserver-Installation:
>
> The first Server calculates the correct coordinates:
> WGS84: 50.010907,6.295043
>
> http://maps.google.de/maps?f=q&source=s_q&hl=de&geocode=&q=50.010907,6.295043&t=h&ie=UTF8&ll=50.010907,6.295043&spn=0.009542,0.015407&z=16&iwloc=near
>
>
>
> The second server calculates the wrong coordinates:
> WGS84: 50.012688,6.295651
>
> http://maps.google.de/maps?f=q&source=s_q&hl=de&geocode=&q=50.012688,6.295651&t=h&ie=UTF8&ll=50.012688,6.295651&spn=0.009542,0.015407&z=16&iwloc=near
>
>
> Both Servers have the same Mapscriptversion:
> MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG
> SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
> INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> What is wrong with the second installation? Is there a different
> geosversion, how can I test this?
> Thanks
> Sven
>
>
>
> ___
> 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


Re: [mapserver-users] WMS in Google Earth

2009-09-29 Thread Milo van der Linden
Hello Josh,

I have three succesfully hosted wms layers withing Google Earth. It
probably has something to do with the image type not being supported or
wms parameters missing.

If you want me to help you can send me the metadata and the map section
snippets of your mapfile.

Josh Hevenor schreef:
> I'm wondering if anyone has had success viewing their mapserver WMS
> services through Google Earth? I can manually enter a GetMap request and
> see the image but when I try to list my layers in the Refresh->WMS
> Parameters section I get an error message stating that "This MWS server
> has no layers which can be rendered by Google Earth"   
>
> Are there any common trip-ups that others have experienced?  I can post
> more details if required...
>
> josh
>
> ___
> 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


Re: [mapserver-users] MapServer Projection Issues (I think).

2009-10-01 Thread Milo van der Linden
 projectionsprojections... it is what differentiates a
geo-specialist from a "regular" programmer

Hello Jelmer,


The wgs84 layer is correct because the ellipsoid/spheroid is the same as
used by the mercator projection.

We in the Netherlands use the Bessel ellipsoid on our
Rijksdriehoekstelsel so you need a +towgs84 transformation too..

http://blog.openstreetmap.nl/index.php/2009/08/27/woorden-schieten-tekort/

Good luck!

Milo van der Linden


Jelmer Baas schreef:
> Hello List,
>
> I've been struggling with OpenLayers and MapServer while using Google
> Maps as a backgroundlayer (thus using Spherical Mercator projection).
> I've been able to figure it out quite well, but I seem to be stuck at a
> reprojection issue.
>
> The request from OL is:
> mapserv.exe?map=test.map&LAYERS=layer1%Clayer2&TRANSPARENT=true&SERVICE=
> WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.og
> c.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=664084.90082266,6
> 838973.7927063,664696.39704883,6839585.2889324&WIDTH=256&HEIGHT=256
>
> This results in an image such as this:
> http://www.cocontheweb.nl/_ftth/test.png
>
> The black line is the original file, in EPSG:28992 (Amersfoort new) and
> has a projection "init=EPSG:28992" in the map file. The green line has
> the default map file projection ("init=epsg:4326") and the file is saved
> as WGS84 with MapInfo. 
>
> The problem now is that the green line is the correct one, the black
> line is offset. I've checked all relevant declarations in my epsg file,
> they are correct. 
>
> Am I doing something wrong? I hope there is another solution besides
> re-saving all files as WGS84.
>
>
> Thanks in advance for any assistance!
>
> With kind regards,
> Jelmer Baas
> ___
> 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


Re: [mapserver-users] MapServer Projection Issues (I think).

2009-10-02 Thread Milo van der Linden
Jelmer,

You're welcome! Glad it was the right solution for you.

Cheers

Milo

Jelmer Baas schreef:
> Milo,
>
> Thanks for the reply. I've changed the definition in my epsg file and it
> works! 
>
> Thanks :)
>
>   

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


Re: [mapserver-users] Adding stackexchange to our support channels

2013-10-04 Thread Milo van der Linden
+1, gives me a new chance to boost my stackexchange score ;-)
Op 4 okt. 2013 12:32 schreef "thomas bonfort" :

> Hi MapServer Users and Power-Users,
>
> As FrankW pointed out during our FOSS4G presentation, I would like to
> propose that we add stackexchange as an "official" support channel for
> MapServer. You can check and subscribe to mapserver related questions
> here: http://stackexchange.com/filters/90617/mapserver
>
> Why?
>
> - Stackexchange questions and answers are very well referenced through
> search engines, which would avoid recurring questions from being
> brought up on the mailing list
> - The answers get up or down-voted by the community, allowing a user
> to immediately flesh out relevant information for a given question
> - Asking a question on stack-exchange might help new users to seek for
> help, instead of having to subscribe and post to a public mailing list
> (which can be intimidating)
>
> How?
>
> - By referencing stackexchange in our "getting help" documentation section
> - Most importantly, by having MapServer power users subscribe and
> participate to the stackexchange questions, providing answers or
> upvoting correct existing answers.
>
> Users, is this something that you would find beneficial?
> Power-users, would you be willing to participate to another support
> channel, knowing that in the long run the aim is to reduce your
> workload as the most common questions will answer themselves ?
> PSC, should we have some kind of motion to vote and officialise this?
>
> best regards,
> Thomas
> ___
> 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

Re: [mapserver-users] NoData Gap between rasters - Tileindex Layer

2014-09-10 Thread Milo van der Linden
Hello Bartlomiej,

Could you post the command you used for gdalwarp? Perhaps you need to set
one or more parameters (f.i. -r where you set the resampling method) to
process the areas that now result in NODATA.

The complete list of parameters can be found here:
http://www.gdal.org/gdalwarp.html



2014-08-28 14:03 GMT+02:00 Bartlomiej Burkot :

>  Dear MS Users
>
> Please look at the attachement and maybe you will recognize the problem. I
> think some of you could have encountered this problem with one pixel gap
> between rasterfiles in tileindex layer?
>
>
> Description:
> I have a set of rasters which I warped to epsg:3857 projection using
> gdalwarp.
> During the reprojecting the new raster had been rotated by small angle.
> After that I created a tileindex shape file using gdaltindex and
> configured layer:
> LAYER
> NAME "myname"
> TILEINDEX "tilindex.shp"
> TYPE RASTER
> OFFSITE 0 0 0
> END
>
> On the result map I see the gaps between raster files in the layer. (See
> the attachment).
> Mayby there is a option in gdalwarp command to extend the new image by
> making it 1 pixel widther? May by something like resampling method or
> algorithm?
> Could you please pint me to the solution of this problem?
>
> Thanks in advance
>
> Bartek
>
>
>
>
> ___
> 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

Re: [mapserver-users] Interface between QGIS2.4 and MapServer

2014-12-10 Thread Milo van der Linden
I do not know if you are on windows or linux, but if your goal is to host
maps and you have no knowledge of mapserver perse, you might try
qgis-server too.

http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial


2014-12-10 17:55 GMT+01:00 Rahkonen Jukka (Tike) 
:

>  Hi,
>
>
>  I believe you can install the plugin still from the experimental QGIS
> plugins. At least I seem to have it installed on QGIS 2.0.1.
>
>
>  I warn you that the plugin creates mapfiles which are about 80% correct.
> For fixing them to work properly you should know relatively well how to
> write good mapfiles by hand.
>
>
>  -Jukka Rahkonen-
>
>
>  Maiorano Pasquale wrote:
>
>
> Dear Sirs,
>
>
>
> I am trying to export my QGIS project to MapServer without success. I
> found several tutorials on Youtube that speak about a pluging named *RT
> Mapserver Export* . It seam does not exist anymore. Can You help me
> giving some advice in how to export my project in order to expose it on the
> WEB via Mapserver?
>
>
>
> The mentioned plugin seems disappeared starting from the QGIS version 1.8
> on.
>
>
>
> Please take into account that my job is locked due to this issue. Many
> thanks in advance.
>
>
>
> Pasquale Maiorano
>
>
>
>
>
> ___
> 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

Re: [mapserver-users] symbol SVG with format image/png

2015-06-12 Thread Milo van der Linden
Hello Marc-André,

I don't know if what you try is supported; getting a symbol from a remote
url. I think the symbol needs to be stored in a folder relative to your
mapfile, but I could be wrong.

2015-06-12 16:12 GMT+02:00 Marc-André Trottier <
marcandre_trott...@hotmail.com>:

> with a getMap request with "format = image/png",
> if i got one layer with a SVG symbol, is it supposed to be rendered ?
> in my case : no.
>
> layer's class :
> CLASS
> NAME "Camera"
> GROUP "DEFAULT"
> STYLE
> SYMBOL 'http://
> geoegl.msp.gouv.qc.ca/gouvouvert/public/images/marqueur/fleche.svg'
> END
> END
>
> mapserver config :
> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
> SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
> SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI
> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
> SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS
> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
 [image: http://www.dogodigi.net] <http://www.dogodigi.net>
*Milo van der Linden*
web: dogodigi <http://www.dogodigi.net>
tel: +31-6-16598808
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] FOSS4G BOF for MapServer

2009-10-02 Thread Milo van der Linden
(Black Eyed Peas, Simple little melody)

Love ain’t technological, like
Auto-bot, auto-bot
Love ain’t robotic, like
Auto-bot, auto-bot
Love ain’t complicated, like
Arithmetic, -rithmetic
Love is stimulating
Let me stimulate and tickle it
Love is elementary, like
1, 2, 3, 1, 2, 3
Love is really simple, just like
A, b, c, a, b, c
--

It is love that is keeping me at home instead of visiting all these
wonderfull BOF's!

;-)


Paul Ramsey schreef:
> Of course, the sessions are at the same time, so I will be using this
> as a loyalty test. Who do you love more, PostGIS or Mapserver? Think
> carefully about your answer, there may be repercussions... :)
>
> p.
>
> On Fri, Oct 2, 2009 at 8:16 AM, Jeff McKenna
>  wrote:
>   
>> I noticed that the PostGIS users are going to get together to share
>> ideas/feedback in a Birds of a Feather session in Sydney (on the Thursday
>> night), and I think this is a great idea for MapServer users as well, so I
>> have entered it in the wiki
>> (http://wiki.osgeo.org/wiki/FOSS4G_2009_BirdsOfAFeather#MapServer_Users_Meeting).
>>  Please add yourself and come along!
>> 
> ___
> 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


Re: [mapserver-users] Rotate parcel labels so that they are normal to their parcel

2009-10-08 Thread Milo van der Linden
as far as I know, adding a column in your dataset with the rotation is
the only option.

I have read about a GSoC project for setting rotation that in qGIS,
perhaps if qGIS offers to store the rotation in the data, that would be
a good starting point?
http://blog.qgis.org/node/133

boesiii schreef:
> Is there a way to have mapserver place a label and rotate it so that the
> rotation is normal to the parcel?  Currently I have Mapserver place labels
> in the CC position.
>
> Thanks,
> Ed
>   

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


[mapserver-users] ASTER GDEM Mapfile

2009-10-09 Thread Milo van der Linden
For those that want to do something with ASTER GDEM's as available at:

http://www.gdem.aster.ersdac.or.jp/

I have a mapfile at:

http://dogodigi.nl/node/23

Which goes up to 300m in height (sorry, the mountains in the Netherlands
do not reach much higher)

Have fun with it!

Kind regards,

Milo van der Linden
dogodigi
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ASTER GDEM Mapfile

2009-10-10 Thread Milo van der Linden
I downloaded a small set (approx. 1Gb) of the aster gdem around the
Netherlands. You can access it (from qGIS for instance) at
http://dogomaps.net/wms/aster?request=GetCapabilities (demo, no uptime
guarantee)

I also found that the best site to donwload aster is here:
http://www.gdem.aster.ersdac.or.jp/  go to that site and click "SEARCH"
in the left sidebar.

Here you can find an example of openstreetmap (via mapserver) combined
with aster:

http://dogomaps.net/osm_aster.png

I am also trying to find out what is possible with the raw corine
landcover dataset,

http://dogomaps.net/openstreetmap_corine.png

I already noticed corine is good for detecting gaps in the openstreetmap
data. For instance here:
http://dogomaps.net/goese-meer.png

Corine clearly shows (in red) that not all urban area's are present in
OSM. still need to figure out licensing, but since the corine resolution
is so low, I think it will be no problem to use it as change detection
in order to find out if you need to "jump on the bike and go outside" 
as an openstreetmapper.


Steve Lime schreef:
> Cool, thanks. Got any sample output maps?
>
> steve
>
>   
>>>> On 10/9/2009 at 4:45 PM, in message <4acfaeec.7020...@zeelandnet.nl>, Milo 
>>>> van
>>>> 
> der Linden  wrote:
>   
>> For those that want to do something with ASTER GDEM's as available at:
>>
>> http://www.gdem.aster.ersdac.or.jp/ 
>>
>> I have a mapfile at:
>>
>> http://dogodigi.nl/node/23 
>>
>> Which goes up to 300m in height (sorry, the mountains in the Netherlands
>> do not reach much higher)
>>
>> Have fun with it!
>>
>> Kind regards,
>>
>> Milo van der Linden
>> dogodigi
>> ___
>> 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


Re: [mapserver-users] msProcessProjection(): Projection library error. no system list, errno: 13

2009-10-12 Thread Milo van der Linden
Hello Adrian,

Change the METADATA section of your mapfile from:

"wms_srs" "EPSG:900913"

to

"wms_srs" "EPSG:900913 EPSG:4326 EPSG:"

the wms_srs parameter for the MAP is a collection of space separated
EPSG codes that tells the wms-server what projections it supports.
Please use this space seperated list ONLY at the MAP section, when in
Layers, wms_srs needs to be a single EPSG-code that is native to the
particular layer


Good luck!

Milo van der Linden


Adrian Popa schreef:
> Hello all!
>
> I'm trying to convert my regular MAP file to be WMS compliant and to
> be able to get the contents through WMS requests. I am following the
> tutorial here: http://mapserver.org/ogc/wms_server.html.
>
> The GetCapabilities request works:
> http://terra/cgi-bin/mapserv?map=/var/www/html/map/rtc_base.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
>
>
> The GetMap request fails:
> http://terra/cgi-bin/mapserv?map=/var/www/html/map/rtc_base.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=GranitaJudete&STYLES=&SRS=EPSG:4326
>
>
> The output returned is:
> 
>  "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd";>
> 
> 
> msProcessProjection(): Projection library error. no system list,
> errno: 13
>
> 
> 
>
>
> The Map file has the following definitions:
> MAP
> ...
> WEB
>   ...
>   METADATA
>  ...
>  "wms_title" "Basic Map"
>"wms_attribution_title" "Basic Map"
>"wms_srs" "EPSG:900913"
>   END
>  END
>
> PROJECTION
>#spherical mercator/google
> "+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 +nadgri...@null +no_defs"
> END
>
> LAYER
>  NAME "GranitaJudete"
>  ...
>  METADATA
>"wms_title" "GranitaJudete"
>"wms_srs" "EPSG:4326"
>END
>PROJECTION
>#WGS84
>"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
>END
>...
> END
>
> END
>
> The thing is (if I remember correctly) my mapserver doesn't really
> recognize projections by their EPSG code, but it works if I supply the
> other definition. I'm not sure how to correct that and I don't know if
> this is the cause.
>
> I've looked into PROJ4 source code and I found refrences to errorcode
> -13 in this function: PJ *pj_latlong_from_proj( PJ *pj_in ) from
> src/pj_utils.c. It returns errorcode -13 if can't find "datum",
> "ellps" or "a".
>
> I'm not sure where to go from here, as google doesn't find this
> particular error code...
>
> Thanks
>

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


Re: [mapserver-users] Glacier symbology

2009-10-13 Thread Milo van der Linden
Hello Bill,

I cannot provide you with a free glacier icon, although I would love to
draw one. I also need to make a symbol for mangrove forest to use in
conjunction with openstreetmap.

However, you triggered me to share some other information: I find that a
good source ánd a good place to share imagery is openclipart:
(www.openclipart.org) I allready have a set of mapsymbols there:

http://openclipart.org/media/people/milovanderlinden contains symbols in
svg that can be manipulated and re-used at will.

There is also a nice snowflake that could be used as a starting point
for your symbol:

http://openclipart.org/media/files/Kliponius/12422

I added a link to OpenClipArt on the SymbologyExchange.

Kind regards,

Milo van der Linden





Bill Thoen schreef:
> I'm looking for an open source pixmap to represent glaciers on a map
> set I'm making. I'd like something more interesting than flat white,
> too. Something like the attached image (which I can't use because it's
> from a COTS GIS):
>
> pixmap for "glacier"
>
> I can make my own, of course, but if one exists already, and it can
> expand into a seamless repeating pattern like this one, I'd rather use
> that and spend the time saved to work on something new.
>
> I dropped by the Symbology Exchange on the MapSeerver Wiki
> (http://trac.osgeo.org/mapserver/wiki/SymbologyExchange) but
> unfortunately that was a great idea that sank without bubbles. There
> hasn't been any activity there for about a year, and there's not one
> pixmap to exchange yet. I think all that page needs is some regular
> exposure to air to let people know it exists, and then the content
> will come. So if you're looking for YARRTS (yet another railroad track
> symbol, the digital cartographer's "hello world") or you seek a little
> world fame, this is one place to share your symbols!
>
> So if anyone has, or knows where to find, a pixmap that whispers
> "glacier" directly into the mind of the viewer, and you're willing to
> share it, please let me know.
>
> TIA,
> -- 
> - Bill Thoen 
>   GISnet - www.gisnet.com
>   303-786-9961
>
> 
>
> ___
> 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


Re: [mapserver-users] Control access to WMS

2009-10-13 Thread Milo van der Linden
You might consider implementing an specific wms access control proxy.
52North offers this on their open source stack:

http://52north.org/maven/project-sites/security/



steve.tout...@inspq.qc.ca schreef:
>
> Hi,
> I defined a WMS Raster layer that I use in my OpenLayers/GeoExt apps,
> I would like to control the access to this WMS, so people can use it
> via my application, but can not "call" the WMS to use it in their
> client application. The reason is there is a "context" that comes with
> this WMS. Without it the data can be misinterpreted.
>
> I already posted this thread on OpenLayers list. It seems that the
> solution could be on the server side with Apache. Someone suggested to
> limit the access with a user and password or other functionality with
> Apache.
>
> My application will be public so there is no user and password but I
> still need to control the access to this particular WMS layer.
> Is there something I can control using MapServer?
>
> thanks for your help!
> Steve
>
>  
>
>
>
> 
>
> ___
> 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


Re: [mapserver-users] Tiled PNG doesn't work for WCS (and WMS)

2009-10-20 Thread Milo van der Linden
Steven,

- tiled png should not be a problem, I use that often.
- It would be good to also set "wms_extent" in your layer defs
- I think that setting the wcs_srs to multiple srs-es at the Layer Level
is not how it should be done. Use a single srs there that corresponds to
the wcs_extent or I guess you will have issues. Set the multiple srs-es
at the wcs_srs and wms_srs on the *MAP* level

Good luck! And send my regards to Mvexel ;-)



Steven M. Ottens schreef:
> Hi all,
>
> I'm trying to setup a WCS with a series of PNGs with world files. I've
> indexed them with gdaltindex.
> When I do a WCS getCoverage or a WMS getMap request I get a white
> image. However when I configure mapserver to use only one tile as
> datasource I get an image (black and white in WCS, color in WMS).
>
> Working singletile datasource WMS: http://bit.ly/smpyA
> Working singletile datasource WCS: http://bit.ly/1hXghB
> not working tiled datasource WMS: http://bit.ly/2k5J11
>
> I'm running Mapserver 5.0.2 on windows
>
> I've tried to convert the PNGs to geotiff, but that didn't matter.
> I've tried using Geoserver and there it does work, so the data appears
> to be correct.
>
> Does mapserver support tiled PNGs?
> Does it support it for WCS?
>
> Regards,
> Steven
>
> The configuration for the two layers::
> single tiledatasource:
> LAYER
>   NAME vec200tile
>   METADATA
> "wcs_label"   "Swiss Topo Vec200 rendering for Tripod" 
> ### required
> "wcs_rangeset_name"   "Vector200Range"   ### required
> to support DescribeCoverage request
> "wcs_rangeset_label"  "Vec200"  ### required to
> support DescribeCoverage request
> "wcs_extent""463179.50 44100.50
> 853179.50 324100.50" ### required for tiled datasets [MVEXEL]
> "wcs_res""1 1" ### from gdalinfo,
> undocumented metadata element
> "wcs_size""1 1" ### from
> gdalinfo, undocumented metadata element
> "wcs_srs""EPSG:21781 EPSG:3035"
>   END
>   EXTENT 463179.50 44100.50 853179.50 324100.50
>
> TEMPLATE "blank.html"
> TYPE RASTER
> UNITS METERS
> STATUS ON
>  data "RT_Vec200_1500/1.0/vec200_1500_0_108.png"
>   PROJECTION
> "init=epsg:21781"
>   END
>   DUMP TRUE ### required
> END
>
> tiled datasource:
>
> LAYER
>   NAME vec200
>   METADATA
> "wcs_label"   "Swiss Topo Vec200 rendering for Tripod" 
> ### required
> "wcs_rangeset_name"   "Vector200Range"   ### required
> to support DescribeCoverage request
> "wcs_rangeset_label"  "Vec200"  ### required to
> support DescribeCoverage request
> "wcs_extent""463179.50 44100.50
> 853179.50 324100.50" ### required for tiled datasets [MVEXEL]
> "wcs_res""1 1" ### from gdalinfo,
> undocumented metadata element
> "wcs_size""1 1" ### from
> gdalinfo, undocumented metadata element
> "wcs_srs""EPSG:27181 EPSG:3035"
>   END
>   EXTENT 463179.50 44100.50 853179.50 324100.50
>
> TEMPLATE "blank.html"
> TYPE RASTER
> UNITS METERS
> STATUS ON
>   TILEINDEX RT_Vec200_1500/1.0/sh1.0.shp
>   TILEITEM "filename"
>
>   PROJECTION
> "init=epsg:21781"
>   END
>   DUMP TRUE ### required
> END
>

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


Re: [mapserver-users] Tiled PNG doesn't work for WCS (and WMS)

2009-10-20 Thread Milo van der Linden
Steven,

At openstreetmap some guys have pretty good knowledge in creating
supertiles by stitching smaller tiles together. Perhaps that would be an
option if you do not want to create subdirs..




Steven M. Ottens schreef:
>
> On Oct 20, 2009, at 5:00 PM, Steve Lime wrote:
>
>> Be interested to hear if the soon-to-be released MapServer 5.6 fares
>> any better speedwise. 5.0.2
>> is pretty darn old. -Steve
>
> If someone has a windows build (pref. with ecw support) I'm happy to
> test it
>
> Steven
>
>

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


Re: [mapserver-users] Mapserver CGI 5.4 crashed my app (Windows 2003)

2009-10-22 Thread Milo van der Linden
I had my IIS crash so severe after a windows update once that it forced
me to switch to ms4w...

Mostly, it has to do with rights/authentication. Are you sure your IIS
user is allowed to connect to your database?

Daniel Walton schreef:
> Paul,
>
> I got various errors with MapServer running in IIS 7.5 until I
> installed the latest build of PHP. Don't know if you've done that
> already, but I thought I would mention it.
>
> Regards,
>
> Dan Walton
> gisfiretools.com 
>
>
> On Thu, Oct 22, 2009 at 9:29 AM, Paul james  > wrote:
>
> Hi Tamas!
> Thanks...
>  
> Yes, thats working on Windows 2003/XP...
> The problem is happening only on Windows 7 (IIS 7.5)  now...
>
>
>  
>
>
> HTTP Error 502.2 - Bad Gateway
>
> Do you have any idea what is that? Its work fine with postgis...
>
> Paul
>
>
> On Wed, Oct 21, 2009 at 5:00 PM, Tamas Szekeres
> mailto:szeker...@gmail.com>> wrote:
>
> Paul,
>
> I've set up your data but it works for me:
>
> http://vbkto.dyndns.org/cgi-bin/mapserv.exe?mode=map&map=mssql2008.map
> 
> 
>
> tried with the following binaries:
>
> http://vbkto.dyndns.org/sdk/release-1500-gdal-1-6-mapserver-5-4.zip
> http://vbkto.dyndns.org/sdk/release-1500-gdal-mapserver.zip
>
> My mapfile:
>
>
> MAP
> NAME "SQL2008"
> STATUS ON
>  SIZE 500 500
> IMAGETYPE PNG
> IMAGECOLOR 254 254 254
>
> EXTENT -79.7892 -44.2426 -24.9958 -9.11775
>
> LAYER   
>
> NAME "tblGeo_AmericaSul"
> TYPE POLYGON
>
> CONNECTIONTYPE PLUGIN
> PLUGIN "msplugin_mssql2008.dll"
> CONNECTION
> "server=.\MSSQLSERVER2008;database=Maps;Integrated Security=true"
> DATA "the_geom from tblGeo_AmericaSul USING
> UNIQUE CodigoAmericaSul USING SRID=0"
> STATUS DEFAULT
>   
> CLASS
> STYLE
> COLOR 255 0 0
> END
>
> END
> END
> END
>
>
> Best regards,
>
> Tamas
>
>
>
>
>
> 2009/10/21 Paul james  >
>
> Tamas, the actual error generated is:
> HTTP Error 502.2 - Bad Gateway
>
> The specified CGI application misbehaved by not returning
> a complete set of HTTP headers. The headers it did return
> are "".
>  
> Using Windos 7 (IIS 7)
>  
> Testing on Windows 2003, I got just a Blank image (no
> error message)...
>  
> You can use the same mssql2008 data I sended you last time...
>  
> Paul
>  
> On Tue, Oct 20, 2009 at 4:56 PM, Tamas Szekeres
> mailto:szeker...@gmail.com>> wrote:
>
> Paul,
>
> I couldn't reproduce your problem by using my data and
> the recent mapserv version.
> 
> http://vbkto.dyndns.org/cgi-bin/mapserv.exe?mode=map&map=sql2008.map
> 
> 
>
> Could you provide your data for testing?
>
> Best regards,
>
> Tamas
>
>
> 2009/10/20 Paul james  >
>
> Hello Tamas
> Did you test that?
> Paul
> On Mon, Oct 19, 2009 at 3:40 PM, Paul james
> mailto:paulj...@gmail.com>>
> wrote:
>
>  Testing :
> 
> http://localhost/cgi-bin-54/mapserv.exe?map=C:/Mapserver/Mapfile/map.map&mode=map
> 
> 
>  
> Using Postgis connection works fine with same
> setup...
> Using that mapfile with MAPSCRIPT/C# works
> fine as well...
>  
> The problem is CGI + MSSQL2008 Plugin
>  
>
> Mapfile:
>  
>  MAP
>  EXTENT -79.7892 -34.2426 -24.9958 6.11775
>  FONTSET "..\Fontes\Fontes.txt"
>  IMAGECOLOR 230 254 254
>  IMAGETYPE png
>  S

Re: [mapserver-users] Re: Print template and WMS

2009-10-22 Thread Milo van der Linden
Phew!

Congratulations on getting this working! It is always nice to crack a nut!

Ruby schreef:
> Steve
>
> That did the trick. print.html displays the WMS layer now!
>
> Thank you so much for the help
> bean
> - Hide quoted text -
>
> On Thu, Oct 22, 2009 at 1:35 PM, Steve
> Lime  > wrote:
>
> The layers tag takes space separated layer names but since you
> have a space in your
> WMS layer name (BLM Claim Names) it's not getting turned on. I
> don't recommend using
> spaces or special characters in layer names for just this reason.
> If you change the
> name to something like BLM_Claim_Names everywhere then I bet
> things start working...
>
> Steve
>
> 
>
> ___
> 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


Re: [mapserver-users] Designing a wrapper around mapserv which can be used with fcgi

2009-11-04 Thread Milo van der Linden
I have:

- mapserver running as fastcgi
- php running as fastcgi

I am currently setting up, not sure how this is going to end up; but I
have the structure you mention in mind too.

I hope that since both processes are fcgi they will enhance each other?
But testing will have to prove it in the near future.

Dan Little schreef:
> If you can you might want to consider python... the syntax is a little 
> cleaner with Mapscript.  Of course, that's an opinion but I also am a little 
> allergic to sigils (I get all itchy).
>
>
> - Original Message 
>   
>> From: Andy Colson 
>> To: Adrian Popa 
>> Cc: mapserver-users@lists.osgeo.org
>> Sent: Wed, November 4, 2009 8:38:52 AM
>> Subject: Re: [mapserver-users] Designing a wrapper around mapserv which can 
>> be used with fcgi
>>
>> 
>>> Andy Colson wrote:
>>>   
> Andy Colson wrote:
>   
>> Adrian Popa wrote:
>> 
>>> Hello everyone,
>>>
>>> I am currently using a wrapper around mapserv which receives the URL 
>>>   
>> parameters, builds the map file (actually I only need to set some filters in 
>> the 
>> map file, but the filters need to be built after running some SQL queries 
>> with 
>> the passed in parameters). After the map file is built, mapserv is called 
>> (as a 
>> shell script), and the map gets sent to the user. Currently this wrapper is 
>> written in perl - so it's not terribly fast as a cgi process.
>> 
>>> While this approach works, it is terribly inefficient. I would like to 
>>> use 
>>>   
>> mapserv as a fcgi process (or something faster than plain cgi). My question 
>> is - 
>> how can I /should I build a wrapper around mapserv that can "customize" the 
>> MAP 
>> file on the fly and run as a fcgi process?
>> 
>>> Any ideas on where I should start? An example of such a wrapper?
>>>
>>> Also, I suspect I can send parameters to mapserver and use some sort of 
>>>   
>> variables in the map file to set up my filters - but I haven't seen an 
>> example. 
>> Can someone point me to such a documentation?
>> 
>>> Thanks,
>>> Adrian
>>>   
>> Have you seen mapscript?  You can use mapserver directly from perl.  And 
>> 
>> perl can do fast-cgi.  Here is a little, ad-hoc, non-tested, perl fcgi:
>> 
>> #!/usr/bin/perl
>>
>> use strict;
>> use mapscript;
>> use FCGI;
>>
>>
>> my $request = FCGI::Request( );
>> while($request->Accept() >= 0)
>> {
>> my($req, $x, $at, $xmap, $xpin, $sid, $y, $q);
>>
>> $req = new mapscript::OWSRequest();
>> $req->loadParams();
>>
>> $xmap = $req->getValueByName('map');
>> $xpin = $req->getValueByName('pin');
>>
>> my $map = new mapscript::mapObj( "/maps/$xmap.map" );
>> if (! $map)
>> {
>> #print STDERR "- Error loading map: $xmap.map\n";
>> print("Content-type: text/text\r\n\r\n");
>> print "cant load $xmap.map";
>> $request->Finish();
>> next;
>> }
>>
>> mapscript::msIO_installStdoutToBuffer();
>>
>> $x = $map->OWSDispatch( $req );
>> if ($x)
>> {
>> print STDERR "OWSDispatch: $x\n";
>> my $errObj = new mapscript::errorObj();
>> while ($errObj) {
>> print STDERR "ERROR: 
>> 
>> $errObj->{code}:$errObj->{message}:$errObj->{routine} \n";
>> 
>> $errObj = $errObj->next();
>> }
>> }
>>
>> my $content_type = 
>> mapscript::msIO_stripStdoutBufferContentType();
>>
>> $x = mapscript::msIO_getStdoutBufferBytes();
>>
>>
>> print("Content-type: $content_type\r\n\r\n");
>> if (mapscript::msGetVersionInt() >= 50500)
>> {
>> print $$x;
>> } else {
>> print $x;
>> }
>>
>> mapscript::msIO_resetHandlers();
>> $request->Finish();
>> }
>>
>>
>>
>> I'd recommend using mapserver 5.6.0.
>>
>> -Andy
>>
>> 
 Adrian Popa wrote:
 
> Thank you,
>
> I will look into it. I guess through mapscript I can redefine the
> parameters that get sent to mapserver? Or do I rewrite the whole map?
>
>   
 You can load a map into memory (I assume you were already doing that). You 
 
>> said "..perl.. receives the URL parameters ...and... builds the map file".
>> 
 I assume your perl does: use mapscript?

 and at some point: my $map = new mapscript::mapObj( "/maps/$xmap.map" );

 You kind of i

RE: [mapserver-users] Google Disruptive business models on Geo Data

2009-11-17 Thread Milo van der Linden
Critical side note: I guess I prefer free above less then free. Google "
world dominance in the information industry" is far more threatening to
future generations then Al Qaida is... What if Google falls in the wrong
hands in twenty years time? Will scenarios sketched in SciFi movies
become reality? Will my children live in a world that is as democratic
as ours?

Those are the questions one needs to ask when accepting less then free.
It might just be you are selling your soul to the devil...

On Tue, 2009-11

-17 at 21:08 +1100, Andrew Williams wrote:
> Agreed Steven. I fall into the category of "it's completely obvious when 
> somebody points it out to you."
> 
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen 
> Woodbridge
> Sent: Sunday, 1 November 2009 6:24 AM
> To: mapserver-users; openlayers user list; OSGeo Discussions
> Subject: [mapserver-users] Google Disruptive business models on Geo Data
> 
> Hi all,
> 
> This is a great article that has a lot of relevance to the
> OpenSource/OpenData world. I thought it was a good read.
> 
> http://abovethecrowd.com/2009/10/29/google-redefines-disruption-the-%E2%80%9Cless-than-free%E2%80%9D-business-model/
> 
> 
> Sorry for the cross-posting.
> 
> -Steve W
> ___
> 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Map from .OSM

2009-11-25 Thread Milo van der Linden
Mapserver cannot read osm directly. That is also because there is no OGR
adapter(yet) for .osm.

If you really don't want to set up postgis:

http://wiki.openstreetmap.org/wiki/Category:OSM_processing

You can browse throug a variety of export/conversion tools. One might
just create the format you need (shp). You can also consider downloading
ready-made shapefiles from the websites:

http://www.cloudmade.com

or

http://www.geofabrik.de


Kind regards,

Milo van der Linden (Miblon)
Moblin powered asus eee pc 1005HA-H
http://www.dogodigi.net

On Wed, 2009-11-25 at 19:01 -0800, abul khayer wrote:
> Can Mapserver render map from .OSM(Open street map) file directly?
> 
> I want to use mapserserver and Openlayer to render a map of .OSM.
> Though i get some help from below tutorial,
> http://trac.osgeo.org/mapserver/wiki/RenderingOsmData
> But it use postgis and there need conversion.
>  
> ...
> Md. Abul Khayer
> GIS Programmer
> CEGIS (www.cegisbd.com)
> Cell: +8801730019572
> Blog: khayer.wordpress.com
> 
> 
> 
> ___
> 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


Re: [mapserver-users] Fatal error: Call to undefined function dl() in C:\ms4w\Apache\htdocs\phpmapscript.php on line 5

2009-11-30 Thread Milo van der Linden
Dear geetha,

This has nothing to do with mapserver/mapscript, but is a php error. The
dl method is (correct me if I am wrong) a little outdated and has to
specifically be set to ENABLED in the php.ini.

Please google a bit on the dl error and see what parameter you need to
change (sorry that I cannot give you a full answer, but I am on 3G in a
train and unable to do some serious googlin')

On Tue, 2009-12-01 at 00:37 -0500, gee...@ttkmaps.com wrote:
> 
> 
> Hi all,
> 
>  
> 
>   I tried to install php/mapscript in windows,I get the above error.I
> use mapserver version 5.4.2,Apache 2.2.11,PHP 5.3.Php works fine.Im
> able to run files with .php extension,but the below coding produces
> error:
> 
> 
> 
> 
>  dl("php_mapscript.dll");
> phpinfo();
> ?>
> 
> 
> 
> 
> My php_mapscript.dll is in ..php/ext folder by default.My php.ini &
> php.exe is in /ms4w/Apache/cgi-bin.Is there any other dll i should
> add?It is said php/mapscript is preconfigured right...then what might
> be wrong?Thanks in advance.
> 
> NewUser.
> 
> 
> 
> 
> 
> ___
> 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


Re: [mapserver-users] Fatal error: Call to undefined function dl() in C:\ms4w\Apache\htdocs\phpmapscript.php on line 5

2009-11-30 Thread Milo van der Linden
Hello Geetha,

Does this mean that the problem is solved? 

On Mon, 2009-11-30 at 22:51 -0800, new wrote:
> Thanks milo,
> 
> I checked with php.ini dl method is enabled.I tried in commmand prompt 
> php C:/ms4w/Apache/htdocs/phpmapscript.php 
> No windows error was reported.
> 
> newuser.
> 
> 
> Milo van der Linden-3 wrote:
> > 
> > Dear geetha,
> > 
> > This has nothing to do with mapserver/mapscript, but is a php error. The
> > dl method is (correct me if I am wrong) a little outdated and has to
> > specifically be set to ENABLED in the php.ini.
> > 
> > Please google a bit on the dl error and see what parameter you need to
> > change (sorry that I cannot give you a full answer, but I am on 3G in a
> > train and unable to do some serious googlin')
> > 
> > On Tue, 2009-12-01 at 00:37 -0500, gee...@ttkmaps.com wrote:
> >> 
> >> 
> >> Hi all,
> >> 
> >>  
> >> 
> >>   I tried to install php/mapscript in windows,I get the above error.I
> >> use mapserver version 5.4.2,Apache 2.2.11,PHP 5.3.Php works fine.Im
> >> able to run files with .php extension,but the below coding produces
> >> error:
> >> 
> >> 
> >> 
> >> 
> >>  >> dl("php_mapscript.dll");
> >> phpinfo();
> >> ?>
> >> 
> >> 
> >> 
> >> 
> >> My php_mapscript.dll is in ..php/ext folder by default.My php.ini &
> >> php.exe is in /ms4w/Apache/cgi-bin.Is there any other dll i should
> >> add?It is said php/mapscript is preconfigured right...then what might
> >> be wrong?Thanks in advance.
> >> 
> >> NewUser.
> >> 
> >> 
> >> 
> >> 
> >> 
> >> ___
> >> 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Position of label

2010-01-26 Thread Milo van der Linden
If your AJAX webmap client of choice happens to be OpenLayers, there are 
better ways to do this.


Assuming you don't want the whole world labeled, you might consider 
using a WFS layer instead of a WMS layer. Then you can use OpenLayers to 
create *real* vector layers that can even have effects such as light up 
or resize *and* make the mouse cursor change when moving over a label or 
object. Plus it will give you the option to open up pop-up balloons, 
something you will hardly get done using a raster-layer only.


Otherwise, you are in there on your own. Your ajax script would need to 
translate real coordinates to pixel coordinates, guess label coordinates 
and stuff.. I would not go there if I where you.


"Don't invent wheels, ride great cars"

Kind regards,

Milo van der Linden

Jan Hartmann wrote:

Hi folks,

Is there a way to get back the exact position of the labels in a 
MapServer map? I want to make the labels clickable with Ajax, so a x-y 
values in image coordinates would be enough. I looked in the Template 
and Mapscript docs, but couldn't find anything about the (computed) 
position of labels.


Jan
___
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] watermark

2010-04-15 Thread Milo van der Linden

Hi list,

I am trying to create a watermark on an wms aerial photo layer using the 
following technique:


- Create a new shp for my area of interest
- hatch the shape with an image
- set the image to a very low opacity
- add this shape as layer to my mapfile
- trying to set the layer to "always on top, always on" for the aerial photo

I am failing at the last step, somehow I cannot get the layer to be 
always on. If I do a wms request calling both layers: aerial_photo and 
watermark, I get the effect I want, but when I only call the 
aerial_photo, my watermark is not showing, whether I set it to ON, 
DEFAULT, or OFF.


Is there a way to make sure this layer is always shown? Or am I trying 
to use a wrong technique?


Any help appreciated!

Kind regards,

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


Re: [mapserver-users] watermark

2010-04-15 Thread Milo van der Linden

I want to thank everyone for the replies, the help is highly appreciated!

Later today I will test the hints and tips and come back with a [SOLVED] 
when I find a good match.


Kind regards,

Milo van der Linden


Rahkonen Jukka wrote:

Hi,

Try something like this on your watermark layer:

STATUS DEFAULT
REQUIRES "[layer_to_be_watermarked]"

-Jukka Rahkonen-

 
Milo van der Linden wrote:


 
  

Hi list,

I am trying to create a watermark on an wms aerial photo 
layer using the 
following technique:


- Create a new shp for my area of interest
- hatch the shape with an image
- set the image to a very low opacity
- add this shape as layer to my mapfile
- trying to set the layer to "always on top, always on" for 
the aerial photo


I am failing at the last step, somehow I cannot get the layer to be 
always on. If I do a wms request calling both layers: 
aerial_photo and 
watermark, I get the effect I want, but when I only call the 
aerial_photo, my watermark is not showing, whether I set it to ON, 
DEFAULT, or OFF.


Is there a way to make sure this layer is always shown? Or am 
I trying 
to use a wrong technique?


Any help appreciated!

Kind regards,

Milo van der Linden
___
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] Small survey

2010-04-19 Thread Milo van der Linden

Hello Oliver,

The national government geo-initiative (geonovum) in the Netherlands is 
doing a survey on tiling. I would like to fill in the answers to the 
following questions:


Does mapserver support WMS-C and what version?

Does mapserver support TMS and what version?

Does mapserver support WMTS and what version?

Does mapserver support Google and what version?

Does mapserver support Bing and what version?

Does mapserver support KML and what version?

Does mapserver support ArcGIS Servber and what version?

Does mapserver support Oracle MapViewer and what version?

Any remarks?

Could someone help me fill in these questions?

Kind regards,

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


Re: [mapserver-users] Problem with OpenStreetMap, osm2pgsql, MapServer, OpenLayers and epsg=900913

2010-05-08 Thread Milo van der Linden
The way you are implementing the combination mapserver / openlayers; you 
are callin mapserver as WMS.


For a WMS server; it is very important that you set the right metadata 
for the map and for the layers. Please read through the documentation at:


http://mapserver.org/ogc/wms_server.html

And if you are still stuck with anything, don't hesitate to ask!

Kind regards,

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


Re: [mapserver-users] Mapserver, OpenStreetMap and hstore - great new possibilities

2010-05-20 Thread Milo van der Linden
This was already possible when setting the --slim option whilst using 
osm2pgsql. Only issue is that when doing so, you get columns that 
contain arrays with key/value pairs. But when installing the arrayint 
postgresql extension it is not to hard to write a couple of functions 
for the database to make these arrays searchable.


Kind regards,


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


Re: [mapserver-users] Projection problems

2011-01-07 Thread Milo van der Linden
Funny,

Everytime I read "projection problems" on this list I think: Hey, this might
be someone from the Netherlands.


You mean you would really like to have your bedrijventerreinen like this?

http://www.locatiemonitor.nl/LocationDetails2.aspx?lid=1437

(please wait for the bedrijventerreinen wms to appear)

I created the wms service for locatiemonitor and as I can see, we are
"fishing in the same vijver"

Please read my blog post at
http://blog.dogodigi.net/2010/08/19/dutch-coordinate-system-ellipsoid-correction/

And write a small thank you comment if it helped you solve your issue

;-)

Kind regards,

Milo van der Linden

2011/1/7 basvmrs 

>
> Hi,
>
> I've created a map server in which I try to output data that was entered
> using Google Maps V2 (drawing polygons). I used openlayers to display the
> results over a Bing layer.
>
> There seems to be a problem in the projection, which is best described
> using
> an image and a link:
>
> http://bir.cipixtest.nl/resources/gis/demo.html Demo
> http://osgeo-org.1803224.n2.nabble.com/file/n5898717/forum.png
>
> Notice how the areas seem to 'shift' when zooming in.
>
> My mapfile looks like this:
>
>
> #
> # Start of map file
> #
> MAP
>NAME BIR
>STATUS ON
>SIZE 600 600
>EXTENT 4.4 51.85 4.6 51.95
>UNITS METERS
>
>IMAGETYPE PNG
>
>PROJECTION
>"init=epsg:900913"
>END
>
>TRANSPARENT ON
>
>LAYER
>NAME bedrijventerreinen
>TYPE POLYGON
>STATUS DEFAULT
>CONNECTIONTYPE OGR
>CONNECTION
> "MySQL:bir,host=X,user=X,password=XXX,port=3306"
>DATA "SELECT * from gis_object"
>DUMP TRUE
>CLASS
>NAME 'Bedrijventerreinen'
>STYLE
>OUTLINECOLOR 0 0 0
>COLOR 200 200 200
>END
>END
>TEMPLATE "object.html"
>
>METADATA
>gml_include_items "all"
>WMS_TITLE "Bedrijventerreinen"
>WMS_ABSTRACT "Bedrijventerreinen in de Regio
> Rotterdam; de gebieden zijn
> een benadering en er kunnen geen rechten aan worden ontleend."
>WMS_SRS "EPSG:28992 EPSG:900913 EPSG:4326"
>END
>END
>
> END # Map File
>
> I don't have a clue why this is happening. I hope that someone can explain
> to me why this is happening and how to fix it.
>
> Kind regards,
> Bas
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Projection-problems-tp5898717p5898717.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Re: Projection problems

2011-01-07 Thread Milo van der Linden
Hello Bas,

That is indeed the trick. In my blogpost I specifically target postgis, but
changing the epsg file is the way to go for mapserver, the parameters stay
the same (of course)

The locatiemonitor was for a previous employer of mine. But it is indeed a
nice tool

Good luck on your implementation!



> Thanks Milo! Looks like a very nice tool you have built.
>
> I also found this article (in Dutch):
> http://web.archiveorange.com/archive/v/J7KtnqcjuwiLWARtBrhN
> http://web.archiveorange.com/archive/v/J7KtnqcjuwiLWARtBrhN
>
> It seems like the proj4 28892-default definition is flawed! I fixed it by
> changing the definition in the epsg file that my mapserver was using:
> # Amersfoort / RD New
> <28992> +proj=sterea +lat_0=52.156160 +lon_0=5.387639 +k=1
> +x_0=155000 +y_0=463000 +ellps=bessel
> +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812
> +units=m
> +no_defs <>
> #<28992> +proj=sterea +lat_0=52.156160 +lon_0=5.387639
> +k=0.079 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs  <>
>
> (note the towgs84-command)
>
> Regards,
> Bas
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Projection-problems-tp5898717p5899397.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Fwd: [mapserver-users] Reporting lat/long from projected map units

2011-01-12 Thread Milo van der Linden
-- Forwarded message --
From: Milo van der Linden 
Date: 2011/1/12
Subject: Re: [mapserver-users] Reporting lat/long from projected map units
To: "Bistrais, Bob" 


Are you talking bout a web-app? Do you use a client like OpenLayers? What
programming language(s) do you use? Is your datasource a database? Like
postgis?

If you can get UTM coordinates from the mouseclick, the next best option (in
my opinion) would be to use proj4js:

http://proj4js.org/

Simply embed the js-library ad an event for mouse handling and convert:
screen->utm->4326.




2011/1/12 Bistrais, Bob 

>  This should be fairly straightforward, but I was wondering what is the
> easiest and quickest way to convert coordinates on the fly.  All my data is
> in UTM coordinates.  I want to report coordinates to the screen in
> Lat/Long.  Changing the projections on the map files to lat/long (*
> EPSG:4326)* is not an option, as this will cause problems elsewhere.  So
> what I want to do is take point coordinates, either from a mouse click or
> from UTM coordinates, project to lat/long, which will be reported in a
> result window.  What is the quickest way to do this?
>
> ___
> 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


Re: [mapserver-users] Reporting lat/long from projected map units

2011-01-12 Thread Milo van der Linden
(Sorry, my last posts went straight to you by accident, I prefer to stay on
the list, but gmail for applications not always agrees with me)

proj4js has project pages including documentation on the OSGeo wiki. The
userguide is here:

http://trac.osgeo.org/proj4js/wiki/UserGuide

and it immediately explains what you want


2011/1/12 Bistrais, Bob 

>  Yes, I can get UTM coordinates back.  Can you elaborate a bit on
> proj4js?  I’m not familiar with that.
>
>
>  --
>
> *From:* Milo van der Linden [mailto:m...@dogodigi.net]
> *Sent:* Wednesday, January 12, 2011 11:10 AM
>
> *To:* Bistrais, Bob
> *Subject:* Re: [mapserver-users] Reporting lat/long from projected map
> units
>
>
>
> Well then one question remains:
>
> Are you able to convert screen coords to UTM capturing an onclick event?
> Because then all you need to do is enhance it with proj4js
>
> 2011/1/12 Bistrais, Bob 
>
> Yes, a web mapping application.  Not using Open Layers.  We are using
> PHP-Mapscript/HTML/JavaScript.  All queryable data is in shapefiles, again,
> all of these are in UTM.
>
>
>  --
>
> *From:* Milo van der Linden [mailto:m...@dogodigi.net]
> *Sent:* Wednesday, January 12, 2011 11:03 AM
> *To:* Bistrais, Bob
>
>
> *Subject:* Re: [mapserver-users] Reporting lat/long from projected map
> units
>
>
>
> Are you talking bout a web-app? Do you use a client like OpenLayers? What
> programming language(s) do you use? Is your datasource a database? Like
> postgis?
>
>
>
> If you can get UTM coordinates from the mouseclick, the next best option
> (in my opinion) would be to use proj4js:
>
> http://proj4js.org/
>
> Simply embed the js-library ad an event for mouse handling and convert:
> screen->utm->4326.
>
>
>2011/1/12 Bistrais, Bob 
>
> This should be fairly straightforward, but I was wondering what is the
> easiest and quickest way to convert coordinates on the fly.  All my data is
> in UTM coordinates.  I want to report coordinates to the screen in
> Lat/Long.  Changing the projections on the map files to lat/long (EPSG:4326)
> is not an option, as this will cause problems elsewhere.  So what I want to
> do is take point coordinates, either from a mouse click or from UTM
> coordinates, project to lat/long, which will be reported in a result
> window.  What is the quickest way to do this?
>
>
> ___
> 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


Re: [mapserver-users] Reporting lat/long from projected map units

2011-01-13 Thread Milo van der Linden
Mmm, that shouldn't be to hard. Let me try;

var source = new Proj4js.Proj(‘EPSG:YOUR_UTM_EPSGCODE’);
var dest = new Proj4js.Proj(‘EPSG:4326’); . . .

// transforming point coordinates
var p = new Proj4js.Point(YOUR_UTM_X,YOUR_UTM_Y);
Proj4js.transform(source, dest, p);

alert(p.x); //WILL ALERT YOUR NEW LON
alert(p.y); //WILL ALERT YOUR NEW LAT


2011/1/13 Bistrais, Bob 

>  I downloaded the code and am looking at the Wiki.  I don’t see anything
> to input screen or UTM coords.  Is it in the code somewhere?
>
>
>  ------
>
> *From:* Milo van der Linden [mailto:m...@dogodigi.net]
> *Sent:* Wednesday, January 12, 2011 12:44 PM
> *To:* mapserver-users
>
> *Subject:* Re: [mapserver-users] Reporting lat/long from projected map
> units
>
>
>
> (Sorry, my last posts went straight to you by accident, I prefer to stay on
> the list, but gmail for applications not always agrees with me)
>
> proj4js has project pages including documentation on the OSGeo wiki. The
> userguide is here:
>
> http://trac.osgeo.org/proj4js/wiki/UserGuide
>
> and it immediately explains what you want
>
>  2011/1/12 Bistrais, Bob 
>
> Yes, I can get UTM coordinates back.  Can you elaborate a bit on proj4js?
> I’m not familiar with that.
>
>
>  --
>
> *From:* Milo van der Linden [mailto:m...@dogodigi.net]
> *Sent:* Wednesday, January 12, 2011 11:10 AM
>
>
> *To:* Bistrais, Bob
> *Subject:* Re: [mapserver-users] Reporting lat/long from projected map
> units
>
>
>
> Well then one question remains:
>
> Are you able to convert screen coords to UTM capturing an onclick event?
> Because then all you need to do is enhance it with proj4js
>
> 2011/1/12 Bistrais, Bob 
>
> Yes, a web mapping application.  Not using Open Layers.  We are using
> PHP-Mapscript/HTML/JavaScript.  All queryable data is in shapefiles, again,
> all of these are in UTM.
>
>
>  --
>
> *From:* Milo van der Linden [mailto:m...@dogodigi.net]
> *Sent:* Wednesday, January 12, 2011 11:03 AM
> *To:* Bistrais, Bob
>
>
> *Subject:* Re: [mapserver-users] Reporting lat/long from projected map
> units
>
>
>
> Are you talking bout a web-app? Do you use a client like OpenLayers? What
> programming language(s) do you use? Is your datasource a database? Like
> postgis?
>
>
>
> If you can get UTM coordinates from the mouseclick, the next best option
> (in my opinion) would be to use proj4js:
>
> http://proj4js.org/
>
> Simply embed the js-library ad an event for mouse handling and convert:
> screen->utm->4326.
>
>2011/1/12 Bistrais, Bob 
>
> This should be fairly straightforward, but I was wondering what is the
> easiest and quickest way to convert coordinates on the fly.  All my data is
> in UTM coordinates.  I want to report coordinates to the screen in
> Lat/Long.  Changing the projections on the map files to lat/long (EPSG:4326)
> is not an option, as this will cause problems elsewhere.  So what I want to
> do is take point coordinates, either from a mouse click or from UTM
> coordinates, project to lat/long, which will be reported in a result
> window.  What is the quickest way to do this?
>
>
> ___
> 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


Re: [mapserver-users] Reporting lat/long from projected map units

2011-01-13 Thread Milo van der Linden
You're welcome!

2011/1/13 Bistrais, Bob 

>  Got it now- I forgot to put in a script tag for the projection
> definitions.
>
> Seems to be working now.
>
>
>
> Thanks Milo!
>
>
>  --------------
>
> *From:* Milo van der Linden [mailto:m...@dogodigi.net]
> *Sent:* Thursday, January 13, 2011 11:09 AM
> *To:* Bistrais, Bob
> *Cc:* mapserver-users
>
> *Subject:* Re: [mapserver-users] Reporting lat/long from projected map
> units
>
>
>
> Mmm, that shouldn't be to hard. Let me try;
>
> var source = new Proj4js.Proj(‘EPSG:YOUR_UTM_EPSGCODE’);
>
> var dest = new Proj4js.Proj(‘EPSG:4326’); . . .
>
>
> // transforming point coordinates
>
> var p = new Proj4js.Point(YOUR_UTM_X,YOUR_UTM_Y);
>
> Proj4js.transform(source, dest, p);
>
>
> alert(p.x); //WILL ALERT YOUR NEW LON
>
> alert(p.y); //WILL ALERT YOUR NEW LAT
>
>
>
> 2011/1/13 Bistrais, Bob 
>
> I downloaded the code and am looking at the Wiki.  I don’t see anything to
> input screen or UTM coords.  Is it in the code somewhere?
>
>
>  --
>
> *From:* Milo van der Linden [mailto:m...@dogodigi.net]
> *Sent:* Wednesday, January 12, 2011 12:44 PM
> *To:* mapserver-users
>
>
> *Subject:* Re: [mapserver-users] Reporting lat/long from projected map
> units
>
>
>
> (Sorry, my last posts went straight to you by accident, I prefer to stay on
> the list, but gmail for applications not always agrees with me)
>
> proj4js has project pages including documentation on the OSGeo wiki. The
> userguide is here:
>
> http://trac.osgeo.org/proj4js/wiki/UserGuide
>
> and it immediately explains what you want
>
> 2011/1/12 Bistrais, Bob 
>
> Yes, I can get UTM coordinates back.  Can you elaborate a bit on proj4js?
> I’m not familiar with that.
>
>
>  --
>
> *From:* Milo van der Linden [mailto:m...@dogodigi.net]
> *Sent:* Wednesday, January 12, 2011 11:10 AM
>
>
> *To:* Bistrais, Bob
> *Subject:* Re: [mapserver-users] Reporting lat/long from projected map
> units
>
>
>
> Well then one question remains:
>
> Are you able to convert screen coords to UTM capturing an onclick event?
> Because then all you need to do is enhance it with proj4js
>
> 2011/1/12 Bistrais, Bob 
>
> Yes, a web mapping application.  Not using Open Layers.  We are using
> PHP-Mapscript/HTML/JavaScript.  All queryable data is in shapefiles, again,
> all of these are in UTM.
>
>
>  --
>
> *From:* Milo van der Linden [mailto:m...@dogodigi.net]
> *Sent:* Wednesday, January 12, 2011 11:03 AM
> *To:* Bistrais, Bob
>
>
> *Subject:* Re: [mapserver-users] Reporting lat/long from projected map
> units
>
>
>
> Are you talking bout a web-app? Do you use a client like OpenLayers? What
> programming language(s) do you use? Is your datasource a database? Like
> postgis?
>
>
>
> If you can get UTM coordinates from the mouseclick, the next best option
> (in my opinion) would be to use proj4js:
>
> http://proj4js.org/
>
> Simply embed the js-library ad an event for mouse handling and convert:
> screen->utm->4326.
>
> 2011/1/12 Bistrais, Bob 
>
> This should be fairly straightforward, but I was wondering what is the
> easiest and quickest way to convert coordinates on the fly.  All my data is
> in UTM coordinates.  I want to report coordinates to the screen in
> Lat/Long.  Changing the projections on the map files to lat/long (EPSG:4326)
> is not an option, as this will cause problems elsewhere.  So what I want to
> do is take point coordinates, either from a mouse click or from UTM
> coordinates, project to lat/long, which will be reported in a result
> window.  What is the quickest way to do this?
>
>
> ___
> 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


Re: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252

2011-02-09 Thread Milo van der Linden
Hello Andreas;

What return type of getfeatureinfo are you using?
There are three possibilities: http://mapserver.org/ogc/wms_server.html

1. text/plain
2. text/html
3. gml

If you use text/html; you can set the character encoding to windows ansi:

http://www.w3.org/International/questions/qa-html-encoding-declarations#quicklookup

If you use GML, because it is a "flavour" of XML, mapserver MUST serve
UNICODE:(UTF-8 or UTF-16);http://www.w3.org/TR/REC-xml/#sec-well-formed  So
if the gml output is not converted to unicode; please file a ticket for this
matter in the osgeo trac database.


2011/2/8 Tom van der Putte 

> Hi Andreas,
>
> i looked it up, you can find it here:
>
> http://resources.arcgis.com/content/kbase?fa=articleShow&d=21106
>
> Unfortunately I'm not aware of any means to automate the process of
> exporting the shapefiles, so you'd have to do it by hand.
>
> Tom
>
> ___
> 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


Re: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252

2011-02-09 Thread Milo van der Linden
I found a ticket that is related to this issue:
http://trac.osgeo.org/gdal/wiki/rfc23_ogr_unicode


2011/2/9 Milo van der Linden 

> Hello Andreas;
>
> What return type of getfeatureinfo are you using?
> There are three possibilities: http://mapserver.org/ogc/wms_server.html
>
> 1. text/plain
> 2. text/html
> 3. gml
>
> If you use text/html; you can set the character encoding to windows ansi:
>
>
> http://www.w3.org/International/questions/qa-html-encoding-declarations#quicklookup
>
> If you use GML, because it is a "flavour" of XML, mapserver MUST serve
> UNICODE:(UTF-8 or UTF-16);http://www.w3.org/TR/REC-xml/#sec-well-formed
> So if the gml output is not converted to unicode; please file a ticket for
> this matter in the osgeo trac database.
>
>
> 2011/2/8 Tom van der Putte 
>
>>  Hi Andreas,
>>
>> i looked it up, you can find it here:
>>
>> http://resources.arcgis.com/content/kbase?fa=articleShow&d=21106
>>
>> Unfortunately I'm not aware of any means to automate the process of
>> exporting the shapefiles, so you'd have to do it by hand.
>>
>> Tom
>>
>> ___
>> 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


Re: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252

2011-02-09 Thread Milo van der Linden
There are errors in the usage of "

I think that:



is the correct one.


http://www.w3.org/International/O-HTTP-charset


2011/2/9 Siegel Andreas 

>  Hi Tom.
>
> Thanks for your reply. But no, it is not an issue with ArcGIS.
> The link you sent me may prove useful anyway since we rely heavy on
> shapefiles and ArcGIS ist used by several of our colleges and contributors.
>
> My issue is this line of code:
>  charset=MacThai">
> Please note the charset MacThai.
> This charset should render my results illegible but it has no effect at
> all.
>
> I test it by using a browser:
>
> http://vogis.cnv.at/mapserver/mapserv?map=a.map&LAYERS=umlauttest&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:31254&BBOX=-49500,246750,-49000,247250&X=250&Y=250&INFO_FORMAT=text/html&QUERY_LAYERS=umlauttest&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30
>
>  and the commandline.
> ./mapserv -nh
> "QUERY_STRING=map=a.map&LAYERS=umlauttest&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:31254&BBOX=-49500,246750,-49000,247250&X=250&Y=250&INFO_FORMAT=text/html&QUERY_LAYERS=umlauttest&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30"
>  The commandline output can be inspected by hexdump -C
>
> ./mapserv -nh
> "QUERY_STRING=map=a.map&LAYERS=umlauttest&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:31254&BBOX=-49500,246750,-49000,247250&X=250&Y=250&INFO_FORMAT=text/html&QUERY_LAYERS=umlauttest&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30"
> | hexdump -c
>
> This allows to inspect the result without some unwanted/unnoticed code
> translations when using an editor or the browser,
>
> This are the HTML-Templates:
> Header:
> 
>
>  http://www.w3.org/TR/html4/transitional.dtd";>
>
> 
>
> 
>
>  
>   charset=MacThai">
>
>  
>
>   table, th, td {
>border:1px solid #e5e5e5;
>border-collapse:collapse;
>font-family: arial;
>font-size: 80%;
>color: #33
>   }
>
>   th, td {
>valign: top;
>text-align: center;
>   }
>
>  th {
>   background-color: #aed7ff
>  }
>
>  caption {
>   border:1px solid #e5e5e5;
>   border-collapse:collapse;
>   font-family: arial;
>   font-weight: bold;
>   font-size: 80%;
>   text-align: left;
>   color: #33;
>  }
>
>  
>  GetFeatureInfo Response
> 
>
> 
>  
>
>   Widmungsart Zeichensatztest ae ä oe ö ue ü AE Ä OE Ö UE Ü
> scharfes s ß Ende
>
>  
>   Kuerzel
>   Widmungsart
>   Flaeche
>   Text
>
>
> TEMPLATE:
>  
>  
>[item name=WI_EM_KN format=$value escape=none]
>[item name=WI_EM_TXT format=$value escape=none]
>[item name=Flaeche format=$value escape=none]
>[item name=FS_TXT  format=$value escape=none]
>  
>
>
> FOOTER:
>  
>
>  
>  
>
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  *Mag Andreas Siegel*
> Landesvermessungsamt Feldkirch
> Johannitergasse 6, A-6800 Feldkirch
> Tel: +43(0) 5522 / 75482 - 60227
> Fax: +43(0) 5522 / 75482 - 6
>  E-Mail: 
> andreas.sie...@vorarlberg.at
> http://www.vorarlberg.at/lva
>
> Rechtsverbindlichen Schriftverkehr
> (zB Anträge, Rechtsmittel) richten Sie an:
> E-Mail: landesvermessungs...@vorarlberg.at
> Fax: +43(0)5522/75482-6
>
>
> ___
> 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] PHP Mapscript, label with self created text

2011-02-23 Thread Milo van der Linden
Hello people,

I have created a piece of mapscript that takes a key/value pair and creates
class-coloring according to this. This works perfectly well except for one
tiny little thing:

I want to add $v as a label to my classes.

My question is: Is it possible to assign static text to a label? Because if
it is not; I would have to query the underlying layer for it's centroid and
create a text label on top of that layer.

For instance something like:
$theme_label[$i]->set("labeltext", $v);



foreach ($mycollection as $k=>$v) {
$theme_class[$i]=ms_newClassObj($theme_layer);
$theme_class[$i]->setExpression($k);
$theme_class[$i]->set("name",
$theme_class[$i]->getExpressionString());
$theme_style[$i]=ms_newStyleObj($theme_class[$i]);
$tc = $theme->getColourValue($v);
$theme_style[$i]->color->setRGB($tc[0],$tc[1],$tc[2]);
$theme_style[$i]->outlinecolor->setRGB(255,255,255);
//$theme_label[$i]=ms_newLabelObj($theme_class[$i]);
//$theme_label[$i]->set("font", "sans");
//$theme_label[$i]->set("type", "truetype");
//$theme_label[$i]->set("size", 10);
//$theme_label[$i]->set("labeltext", $v);
$i++;
}
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Heatmap / choropleth from points attributes

2011-02-23 Thread Milo van der Linden
Turning points into polygons (or voronois) is the "thinking like a GIS
professional" approach. This is valid, but not as good as it can get.
Basically, using imaging techniques would be a better approach.

Perhaps you can take this: http://www.sethoscope.net/heatmap/ as a starting
point? The author has created a nice python script to generate a heatmap.

2011/2/23 Josh Jordan 

> First, you have to turn your points into shapes, theres some algorithm that
> will turn points into polygons with borders midway between each point.
>  Then, you have to add classes to the mapfile.  Add one class per color.
>  You have to calculate the bounds and color for each class like this:
>
> CLASS
> EXPRESSION(([POPULATION] gt 90457) AND ([POPULATION] le 108397))
> STYLE
>   COLOR 10 20 50
> END
> END
>
> If your CSV data isnt joined to the mapserver data, you have to calculate
> what shapes are in each bucket like this-
>
> CLASS
> EXPRESSION(([NAME] = "Shape1") OR ([NAME] = "Shape2"))
> STYLE
>   COLOR 10 20 50
> END
> END
>
> --- On *Tue, 2/22/11, Daniel Cole * wrote:
>
>
> From: Daniel Cole 
> Subject: [mapserver-users] Heatmap / choropleth from points attributes
> To: mapserver-users@lists.osgeo.org
> Date: Tuesday, February 22, 2011, 10:06 PM
>
> I am a new mapserver user and have spent countless hours over the last
> month reading, trying code, etc. before posting here for help.  I am trying
> to generate an image (non-interactive) on a webpage based off of attribute
> data in a points file.  For example, 20 different points equally distributed
> in a field contain data about the moister level of the soil.  I want to make
> the lowest levels blue and the highest levels yellow, or something like that
> with some gradients in between.  If possible I want it to have interpolated
> data between them to show the gradual change, but that isn't a must.   I
> also want to wrap it in a polygon that trims the edges.
>
> I found some python code that I thought might do the trick , but it seems
> lots of heat maps are based off of how many points exist in a certain area,
> and thats now what I am doing.
>
> My points contain numbers in the attributes, 5, 25, 92, 71, etc.   I feel
> like I am missing some easy way to do this right in front of me with gdal or
> something.  If someone has any direction or even demo code that would be
> greatly appreciated.
>
> Thanks,
>
> Daniel
>
> -Inline Attachment Follows-
>
> ___
> 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] PHP Mapscript, label with self created text

2011-02-23 Thread Milo van der Linden
Hi Nicol,

Excellent! It works! Now I only have one more issue:

http://www.dogomaps.net/bikkels/index.html?zoom=9&lat=385827.82031&lon=174867.38281&layers=B

The label is duplicated due to the fact that I am retrieving tiles. Any
experience with that?

2011/2/23 Nicol Hermann 

> Hi Milo,
>
> Try:
> $theme_class[$i]->settext($v);
>
> http://mapserver.org/mapscript/php/index.html#classobj
>
> HTH
> Nicol
>
>
> Am Mittwoch, den 23.02.2011, 16:19 +0100 schrieb Milo van der Linden:
> > Hello people,
> >
> > I have created a piece of mapscript that takes a key/value pair and
> > creates class-coloring according to this. This works perfectly well
> > except for one tiny little thing:
> >
> > I want to add $v as a label to my classes.
> >
> > My question is: Is it possible to assign static text to a label?
> > Because if it is not; I would have to query the underlying layer for
> > it's centroid and create a text label on top of that layer.
> >
> > For instance something like:
> > $theme_label[$i]->set("labeltext", $v);
> >
> >
> >
> > foreach ($mycollection as $k=>$v) {
> > $theme_class[$i]=ms_newClassObj($theme_layer);
> > $theme_class[$i]->setExpression($k);
> > $theme_class[$i]->set("name",
> > $theme_class[$i]->getExpressionString());
> > $theme_style[$i]=ms_newStyleObj($theme_class[$i]);
> > $tc = $theme->getColourValue($v);
> > $theme_style[$i]->color->setRGB($tc[0],$tc[1],$tc[2]);
> > $theme_style[$i]->outlinecolor->setRGB(255,255,255);
> > //$theme_label[$i]=ms_newLabelObj($theme_class[$i]);
> > //$theme_label[$i]->set("font", "sans");
> > //$theme_label[$i]->set("type", "truetype");
> > //$theme_label[$i]->set("size", 10);
> > //$theme_label[$i]->set("labeltext", $v);
> > $i++;
> > }
> >
> > ___
> > 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


Re: [mapserver-users] PHP Mapscript, label with self created text

2011-02-23 Thread Milo van der Linden
Sorry! Found it by scroogling a bit:

Set PROCESSING "LABEL_NO_CLIP=ON" per layer. Everything works now!



2011/2/23 Milo van der Linden 

> Hi Nicol,
>
> Excellent! It works! Now I only have one more issue:
>
>
> http://www.dogomaps.net/bikkels/index.html?zoom=9&lat=385827.82031&lon=174867.38281&layers=B
>
> The label is duplicated due to the fact that I am retrieving tiles. Any
> experience with that?
>
> 2011/2/23 Nicol Hermann 
>
> Hi Milo,
>>
>> Try:
>> $theme_class[$i]->settext($v);
>>
>> http://mapserver.org/mapscript/php/index.html#classobj
>>
>> HTH
>> Nicol
>>
>>
>> Am Mittwoch, den 23.02.2011, 16:19 +0100 schrieb Milo van der Linden:
>> > Hello people,
>> >
>> > I have created a piece of mapscript that takes a key/value pair and
>> > creates class-coloring according to this. This works perfectly well
>> > except for one tiny little thing:
>> >
>> > I want to add $v as a label to my classes.
>> >
>> > My question is: Is it possible to assign static text to a label?
>> > Because if it is not; I would have to query the underlying layer for
>> > it's centroid and create a text label on top of that layer.
>> >
>> > For instance something like:
>> > $theme_label[$i]->set("labeltext", $v);
>> >
>> >
>> >
>> > foreach ($mycollection as $k=>$v) {
>> > $theme_class[$i]=ms_newClassObj($theme_layer);
>> > $theme_class[$i]->setExpression($k);
>> > $theme_class[$i]->set("name",
>> > $theme_class[$i]->getExpressionString());
>> > $theme_style[$i]=ms_newStyleObj($theme_class[$i]);
>> > $tc = $theme->getColourValue($v);
>> > $theme_style[$i]->color->setRGB($tc[0],$tc[1],$tc[2]);
>> > $theme_style[$i]->outlinecolor->setRGB(255,255,255);
>> > //$theme_label[$i]=ms_newLabelObj($theme_class[$i]);
>> > //$theme_label[$i]->set("font", "sans");
>> > //$theme_label[$i]->set("type", "truetype");
>> > //$theme_label[$i]->set("size", 10);
>> > //$theme_label[$i]->set("labeltext", $v);
>> > $i++;
>> > }
>> >
>> > ___
>> > 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


Re: [mapserver-users] Heatmap / choropleth from points attributes

2011-02-26 Thread Milo van der Linden
Very nice example Tamas!

In my opinion there is only one extra step needed; a no-color
transparent section in the final image. Do you think this would also
be possible?

2011/2/23 Tamas Szekeres :
> Daniel,
>
> Not sure if that fully satisfy with your requirements but I've already done
> a similar task with the following steps:
>
> 1. Create a point data source (with attributes) from your points for example
> by using ogr_vrt, something like:
>
> 
>     
>     ponts.csv
>     wkbPoint25D
>      x="lon83" y="lat83" z="attribute"/>
>     
> 
>
> 2. Use gdal_grid to create an interpolated grayscale image from the point
> data dource.
>
> 3. To colorize the raster create (or compute) a LUT for each color band by
> containing the following information:
>
> [src value 1]:[dest value 1],[src value 2]:[dest value 2],...
>
> A template of this vrt should look like this:
>
> 
>   
>     Red
>     
>   {LUT_RED}
>   {SOURCEFILE}
>   1
>    ySize="{SRCYSIZE}"/>
>    ySize="{RASTERYSIZE}"/>
>     
>   
>   
>     Green
>     
>   {LUT_GREEN}
>   {SOURCEFILE}
>   1
>    ySize="{SRCYSIZE}"/>
>    ySize="{RASTERYSIZE}"/>
>     
>   
>   
>     Blue
>     
>   {LUT_BLUE}
>   {SOURCEFILE}
>   1
>    ySize="{SRCYSIZE}"/>
>    ySize="{RASTERYSIZE}"/>
>     
>   
>   
>     Alpha
>     
>   {LUT_ALPHA}
>   {SOURCEFILE}
>   1
>    ySize="{SRCYSIZE}"/>
>    ySize="{RASTERYSIZE}"/>
>  
>   
> 
>
> 4. Use the gdal vrt driver (and gdal_translate) to create the final image
> (see an example attached).
>
>
> Best regards,
>
> Tamas
>
>
>
> 2011/2/23 Daniel Cole 
>>
>> I am a new mapserver user and have spent countless hours over the last
>> month reading, trying code, etc. before posting here for help.  I am trying
>> to generate an image (non-interactive) on a webpage based off of attribute
>> data in a points file.  For example, 20 different points equally distributed
>> in a field contain data about the moister level of the soil.  I want to make
>> the lowest levels blue and the highest levels yellow, or something like that
>> with some gradients in between.  If possible I want it to have interpolated
>> data between them to show the gradual change, but that isn't a must.   I
>> also want to wrap it in a polygon that trims the edges.
>> I found some python code that I thought might do the trick , but it seems
>> lots of heat maps are based off of how many points exist in a certain area,
>> and thats now what I am doing.
>> My points contain numbers in the attributes, 5, 25, 92, 71, etc.   I feel
>> like I am missing some easy way to do this right in front of me with gdal or
>> something.  If someone has any direction or even demo code that would be
>> greatly appreciated.
>> Thanks,
>>
>> Daniel
>> ___
>> 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] problem with setting outline width for polygons

2011-04-27 Thread Milo van der Linden
Hello Hans ;-)

I have no experience using C# with Mapscript, but have you tried this?
http://efreedom.com/Question/1-826851/Dynamic-Map-Layer-Mapservers-CSharp-MapScript

Maybe it has something to do with that your colorvalues should be cast to int32


2011/4/27 Hans Wapenaar (GIS Innovations) :
> Hi,
>
> I'm using mapserver/mapscript in a windows/visual studio environment and I'm
> getting some errors: when I want to add a style to a layer with polygons the
> setting of a width generates an error.
>
> Any idea what the reason is? Setting of colors etc is no problem.
>
>
>
>
>
> Dim classtest As classObj = New classObj(layer)
>
> Dim styletest2 As styleObj = New styleObj(classtest)
>
> styletest2.outlinecolor.setRGB(74, 74, 74)
>
> styletest2.width = 5
>
>
>
> Error Message:
>
> System.EntryPointNotFoundException: Unable to find an entry point named
> 'CSharp_styleObj_width_set' in DLL 'mapscript'.
>
>    at OSGeo.MapServer.mapscriptPINVOKE.styleObj_width_set(HandleRef jarg1,
> Int32 jarg2)
>
>    at OSGeo.MapServer.styleObj.set_width(Int32 value)
>
>
>
>
>
> Hans Wapenaar
>
>
>
> ___
> 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] WFS gml:null

2008-02-18 Thread Milo van der Linden

Hello list!

I have been surfing the list all morning looking for a solution on why 
my mapserver is returning a gml:null.


Couldn't find any documentation.

The problem:

I do a WFS request on a mapfile that contains a esri shapefile. The 
layer I request has a different SRS than the main map.


http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=percelen

it returns


http://mapserver.gis.umn.edu/mapserver";
  xmlns:wfs="http://www.opengis.net/wfs";
  xmlns:gml="http://www.opengis.net/gml";
  xmlns:ogc="http://www.opengis.net/ogc";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd 
  http://mapserver.gis.umn.edu/mapserver http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=percelen&OUTPUTFORMAT=XMLSCHEMA";>

  
 missing
  




Here is my layer definition.

The problem is whatever I do, whether I set wfs_extent or not, it keeps 
returning gml:null


LAYER
   NAME 'percelen'
   TYPE POLYGON
   DEBUG ON
   TOLERANCE 1
   DUMP TRUE
   TEMPLATE 'ttt'
   DATA '..\mapdata\rda\percelen_laag_poly_merged.shp'
   METADATA
 "ows_title" "percelen"
 "ows_srs" "EPSG:28992"
 "gml_featureid" "id" ##REQUIRED
 "wms_feature_info_mime_type"  "text/html"
 "ows_feature_info_mime_type"  "text/html"
   "wms_include_items" 
"NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA"
   "gml_include_items" 
"NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA"

   "gml_NEWFIELD2_alias" "Kadastraleaanduiding"
   "gml_NEWFIELD3_alias" "Adres"
   "gml_NEWFIELD1_alias" "Eigenaar"
   "gml_HECTARES_alias" "Oppervlakte(Ha)"
   "gml_AREA_alias" "Oppervlakte(m)"
   "gml_PERIMETER_alias" "Omtrek(m)"
   END
   STATUS ON
   #TRANSPARENCY 100
   PROJECTION
"init=epsg:28992"
   END
   CLASS
  NAME ''
  STYLE
SYMBOL 0
SIZE 6
OUTLINECOLOR 180 208 208
#COLOR 180 208 208
  END
   END
 END

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


Re: [mapserver-users] WFS gml:null

2008-02-18 Thread Milo van der Linden

Thank you Bart for the response.

I tried BBOX'n my request.

I tried both:
-  SRS=epsg:4326&bbox=-180,-90,-180,-90
and
- -  SRS=epsg:28992&bbox=0,30,30,60

But none of that did the trick..


Bart van den Eijnden (OSGIS) schreef:

What happens if you add a BBOX filter to your request? You probably need to
specify the coordinates in the SRS of your LAYER.

The BBOX filter defaults to the Map's Extent which could be why it's
returning 0 features since of the projection difference.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


- Oorspronkelijk bericht ----
Van: Milo van der Linden <[EMAIL PROTECTED]>
Naar: mapserver-users 
Onderwerp: [mapserver-users] WFS gml:null
Datum: 18/02/08 10:39

  

Hello list!

I have been surfing the list all morning looking for a solution on why 
my mapserver is returning a gml:null.


Couldn't find any documentation.

The problem:

I do a WFS request on a mapfile that contains a esri shapefile. The 
layer I request has a different SRS than the main map.





http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=percelen
  

it returns

<?xml version='1.0' encoding="ISO-8859-1" ?>
<wfs:FeatureCollection
   xmlns:ms="http://mapserver.gis.umn.edu/mapserver";
   xmlns:wfs="http://www.opengis.net/wfs";
   xmlns:gml="http://www.opengis.net/gml";
   xmlns:ogc="http://www.opengis.net/ogc";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://www.opengis.net/wfs

http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd 
  

   http://mapserver.gis.umn.edu/mapserver


http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=percelen&amp;OUTPUTFORMAT=XMLSCHEMA">;
  

   <gml:boundedBy>
  <gml:null>missing</gml:null>
   </gml:boundedBy>
</wfs:FeatureCollection>



Here is my layer definition.

The problem is whatever I do, whether I set wfs_extent or not, it keeps 
returning gml:null


LAYER
NAME 'percelen'
TYPE POLYGON
DEBUG ON
TOLERANCE 1
DUMP TRUE
TEMPLATE 'ttt'
DATA '..mapdatardapercelen_laag_poly_merged.shp'
METADATA
  "ows_title" "percelen"
  "ows_srs" "EPSG:28992"
  "gml_featureid" "id" ##REQUIRED
  "wms_feature_info_mime_type"  "text/html"
  "ows_feature_info_mime_type"  "text/html"
"wms_include_items" 
"NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA"
"gml_include_items" 
"NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA"

"gml_NEWFIELD2_alias" "Kadastraleaanduiding"
"gml_NEWFIELD3_alias" "Adres"
"gml_NEWFIELD1_alias" "Eigenaar"
"gml_HECTARES_alias" "Oppervlakte(Ha)"
"gml_AREA_alias" "Oppervlakte(m)"
"gml_PERIMETER_alias" "Omtrek(m)"
END
STATUS ON
#TRANSPARENCY 100
PROJECTION
 "init=epsg:28992"
END
CLASS
   NAME ''
   STYLE
 SYMBOL 0
 SIZE 6
 OUTLINECOLOR 180 208 208
 #COLOR 180 208 208
   END
END
  END
 
___

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


Re: [mapserver-users] The right tool for the job

2008-02-20 Thread Milo van der Linden

Hello Colin,

Mapserver would be an excelent choice to serve the base map and even 
create the dynamic maps you want.
You can also use the great spatial query possibilities of postGIS to 
create views in the database to create the lines on the fly and then 
serve these views through mapserver.




Colin Wetherbee schreef:

Greetings.

I'm new to using GIS data, and I have a project for which I think GIS 
and MapServer would work well.  I'd like to run the basic idea by this 
list and get your input as to whether I'm choosing the right tool for 
the job.


I have a PostgreSQL 8.2 database with PostGIS extensions installed, 
which stores, in GIS form, coordinates for airports around the world.

Excelent choice!


I also have a rather large Perl web application that accesses other 
things in this database.  This is the application to which I would 
like to add some fancy maps.


Essentially, I'd like a map of the world, 
You can connect to other WMS services such as Demis to display a world 
map, either from a server or from a client (using for instance openlayers)
and I'd like to be able to highlight certain airports and draw 
different types of lines between them, based on dynamic input from the 
user through the Perl application. 
You can use user variables to connect to the mapfile (search for 
"substitute variables" on the mapserver website. I would like to hand 
you the link, but I cannot connect to http://mapserver.gis.umn.edu at 
the moment)
Each web page could potentially include a different sort of map with 
different locations highlighted.  

No problem
At peak usage, I suspect at least 75 maps would need to be generated 
per second, with an average of 30-40 data points and various amounts 
of connecting lines between them per map.
Make sure the server is capable of this with regards to bandwidth, 
memory and processor capacity. This is in essence not a problem for mapserv.


Is this the sort of thing MapServer is good at doing?  I've read some 
of the web site, and really, I can't make heads or tails of quite a 
bit of it, especially with respect to Perl.
I think it is, but it is best to combine it with a strong AJAX viewer to 
get the best dynamic user experience and taking the most (views and 
queries) out of postGIS.


Thanks.

Colin
___
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


Re: [mapserver-users] The right tool for the job

2008-02-20 Thread Milo van der Linden

Colin Wetherbee schreef:


I would like my first step to be putting a static image on a web site. 
The image would be generated by Perl and returned to the browser as a 
simple image/png.


The method I have in mind follows.

Each user has a set of airports and routes with which they are 
concerned.  This set of airports and routes could change as frequently 
as every 30 seconds.  So, for each map generation request, I would 
dynamically create a map file and store it as TEXT in my PostgreSQL 
database, along with some unique ID.  Then, I would output an  
tag to the browser that includes the unique ID of this 
dynamically-generated map file:

Interesting approach. But you could also try:
http://www.someserver.org/cgi-bin/mapserv.exe?map=ergens.map&REQUEST=getmap&Layers=layer1,layer2,layer3&User=MyUser&Airport=1,5,23,56&airline=KLM&;..

The mapfile is able to read user variables; this means

that the value MyUser that is in the variable User can be addressed in 
the mapfile with %User%


Thus making it possible to have a layer that builds it's content from a 
postGIS query dynamically like:


SELECT(THE GEOM) FROM Airports where ActiveUser=%User

This way you don't need to store mapfiles in the database and let the 
form-variables in your webpage feed the dynamic content of the map.


Read the topic on 
http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub


The time stamp can also be set on a layer through a variable like this.







mapImage.pl sees id=1234, pulls map file 1234 out of the database, 
uses the MapServer back-end to generate a map, then outputs this map 
as an image/png.  I think mapImage.pl ends up being pretty simple: 
create a mapserver object, pipe the map file text to it, and get the 
png it generates.  Is that it, or am I thinking too narrowly here?


I may include a time stamp, too, so I can expire map files after some 
length of inactivity.


Does this sound about right?

Thanks for your help. :)

Colin
___
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


Re: [mapserver-users] Re: user support

2008-02-20 Thread Milo van der Linden

Hello Brent and Frank,

I hope you don't mind me joining this rather usefull discussion! I 
stepped on it, because the new title triggered me (an example of how 
using a clear title on the mailing list is of importance).


Yesterday I was doing some translation work on the OSGeo website (I 
signed up for the dutch translation) and I noticed all the mailing lists 
that are hosted there, it had me thinking about mailing-lists and the 
value they hold.
Basically, the mailinglists that are most active, such as the mapserver 
list hold a rich set of solutions, answers, tips, tricks and so on. But 
I find them hard to browse. Most items are not categorized and sometimes 
it is hard to show the trees in the forest. But again, a lot of the 
posts are extremely valuable! I ended up looking for software capable of 
importing mailman lists into Google Groups or into forums or into... and 
I came out blank. But this tought is still on my mind.


Next thing I was wondering about was if it was possible to rate answers. 
And if it would be possible to easily transform answers into 
documentation. But I haven't found a real solution yet.


Ok, back to the discussion;


With around 2400 subscribers every question and answer is hitting a lot of 
mailboxes.  Is it really a useful approach?  To some extent it is good because 
it gives others a chance to chime in at different points with suggestions, and 
hopefully some people on the list are picking up hints and new knowledge that 
helps them in the future. But .. well, I often prefer to take debugging session 
off-list with the intent of summarizing final findings to the list. I do this 
despite the prevailing KEEP IT ON THE LIST! mantra of some of our leading 
contributors.
  
Of course users that don't like the ammount of mail hitting can always 
subscribe to get digested mail, I find this convenient enough. And 
compared to the ammount of global video and audio downloads, the traffic 
generated by mailinglists is still a tip of the iceberg, but I 
understand your concern. I like your intention to discuss offline and 
finalize a summary. I often invite users that are stuck to skype-chat 
with me. Then I record the chat as we go along. At the end of a session, 
I pick up the chat history, delete all the chit-chat and store what is 
left for future reference.
  


One of my reasons to send the "back and forth" emails to the
list is to illustrate the method of tracking down the cause
of the problem (divide-and-conquer, isolate the problem,
small test case, etc) .  But this is only valuable if the
new users search the list archive; which I suspect most
don't do (but I have no idea on how to measure this).
Fortunately David Fawcett has a section on the archive on
the "New Users" Mapserver page.
  
This is also a solid approach. Divide and conquer is the biggest 
strength of mailing lists! And indeed new users should be encouraged to 
read documentation.

Summer-of-code is very software development oriented.  For instance, a SoC 
effort cannot be primarily focused on writing documents, providing support, 
etc, except as a by product of software development.  So I don't think this 
problem is very much a SoC solvable one.



Is it possible to have some automated system to classify
archive email based on problem type?  Is it worth it?

This question hits the jackpot for me. classifying, categorization, 
sections with moderators, the possibility for people to rate an answer. 
It is already in the Google Groups, perhaps there is some way this can 
be adapted? The google groups are in a lot of way interesting since they 
offer mail integration, user rating, good insight of the most active 
topics. The only thing they miss is categories like they are on forums, 
maybe a tagging system would be good.

And do some questions go un-answered?  Should we have "support" tickets? Yikes!

I have seen some fair examples of a combination of forums, mailinglists 
SVN-repositories and bug tracking systems; The Joomla Open Source CMS 
forum for instance has a pretty good combination.

Should we "reward" people who respond to questions to encourage better support 
(hmm, or would that cause more noise on the list?)

This could be an option, as long as it doesn't require users to pay for 
accessing the list. One of the most anoying sites on earth I find 
ExpertExchange. They always pop-up first on a google search, but you 
need to sign in and pay 25 dollar a month or so for that one single 
question you have! Yikes on that method too.

Ultimately, I think we need to create better documentation, especially starter and 
troubleshooting documentation so folks can "self serve" through the standard 
problems, and just fallback to other people for the harder stuff.  Helping to write such 
documentation might well be something a paid maintainer could effectively do.

This I would be interested in! More then in payed support. It encourages 
people (like me) to share solutions they found. Now 

Re: [mapserver-users] Re: user support

2008-02-20 Thread Milo van der Linden

Frank Warmerdam schreef:

Milo van der Linden wrote:
Next thing I was wondering about was if it was possible to rate 
answers. And if it would be possible to easily transform answers into 
documentation. But I haven't found a real solution yet.


Milo,

I think it would be very valuable if some people were willing to comb
the mailing list for frequently asked questions and answers and turn
some of them into FAQ entries on the plone site.
If this would be done in a divide and conquer manner, I would be 
interested. It would be a good thing if one could take a seat in some 
sort of board and cover a certain aspect. I would be particulary 
interested in contributing to WMS and WFS sections, as well as postGIS 
integration since this is the area I am trying to make my business in. 
Would it be possible that in return the person maintaining a certain 
area of the documentation could offer commercial support and consultancy 
on his particular field of expertise? Just a taught and trying to 
discover if there is business value in signing up for this. Because in 
the long run, we all need to make at least enough money to live.


I'm bad at writing FAQs because I always write FAQs for the questions
I wish people would ask, instead of the ones they do ask.  :-(  

Hahaha! You gave me a good laugh with this one! I recognize the dillema.


But
someone interested in spending a couple hours contributing to the
MapServer world could review a few weeks email traffic, and pick out
a couple common questions with good answers and digest it into FAQs
to list at:

  http://mapserver.gis.umn.edu/docs/faq
I hereby offer my couple of hours. Would it be an idea to set up a group 
of say 100 people and then divide the list in blocks of say a month?


The answers might even include pointers back into the discussion
threads on the mailing list for additional details.  For those not
wanting to contact Howard for Plone update access, I would even
be willing to add FAQs on their behalf if carefully prepared.
Though getting and using update access to the mapserver site is quite
easy and additional contributors are welcome!

I also wonder if the FAQ list ought to be featured a bit more
prominently on the web site.  I was surprised to discover they are
categorized if you go to the full faq list. I normally just see
them in this view:

  http://mapserver.gis.umn.edu/docs

Best regards,


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


Re: [mapserver-users] MapServer consuming 100% CPU

2008-02-21 Thread Milo van der Linden




You may also try not to use the default DATA connection in the mapfile,
but instead reference the shapefile through CONNECTION TYPE OGR;

Another option would be to convert the data through OGR to mapinfo
files. I am using mapserv - mapinfo tab with 21 roadnetworks for all
public safety districts in the Netherlands containing approx. 150.000
road-segments per district and this works fine. Also make sure that the
zoom-layering for the labels is set to your satisfaction.




Bart van den Eijnden (OSGIS) schreef:

  It is because Mapserver cannot use any attribute indexes on the DBF.

Put your shapefile in a spatial database like PostGIS I would suggest and
create attribute indexes.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


- Oorspronkelijk bericht 
Van: Paul Spencer <[EMAIL PROTECTED]>
Naar: Desarrollo Desarrollo <[EMAIL PROTECTED]>
Cc: mapserver-users@lists.osgeo.org
Onderwerp: Re: [mapserver-users] MapServer consuming 100% CPU
Datum: 21/02/08 11:09

  
  
See:

http://mapserver.gis.umn.edu/docs/howto/mapfiletuning
http://mapserver.gis.umn.edu/docs/howto/optimizevector
http://mapserver.gis.umn.edu/docs/howto/tileindex

Cheers

Paul

On 21-Feb-08, at 2:56 AM, Desarrollo Desarrollo wrote:

> Hi,
>
>I am developing an application with  MapServer v2.2.7 with  
> Apache  on Windows XP, but I have a serious problem, below I  
> describe it:
>
> Using Navteq demo maps from Paris, the Streets.shp have around  
> 50 line strings features, when mapserver renders the layer  
> without using DBF data (only  draw lines) everything is OK and fast, 

  
  
  
  
> but when mapserver needs to access to the DBF to render labels or  
> use expressions to filter data, mapserver starts to consuming 100%  
> CPU and nothing is rendered after to spends a long time.
>
> Using Teleatlas demo maps for a medium city of Spain, the Street.shp 

  
  
  
  
> with around 11000 line strings features doesn't show any trouble and 

  
  
  
  
> mapserver  renders the images OK and fast even accessing to DBF to  
> render labels
>
> Could somebody help me with this problem? Why does it happen? How do 

  
  
  
  
> I solve it?
>
>
> Thank you very much.
> ___
> 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://www.dmsolutions.ca/

___
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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] can an ogr tileindex refer to a PG table?

2008-02-21 Thread Milo van der Linden

Hello Neil,

One thing you can do to create some sort of tileindex that can be part 
of the where clause is create a view in postGIS that contains the 
boundingboxes of a table based upon an attribute:


CREATE VIEW MYBBOX AS
SELECT
table1.uniqueID,
extent(table1.the_geom) as box,
box2d(scale(extent(table1.the_geom),1.01,1.01)) as bbox
FROM
table1
GROUP BY
table1.UniqueID;

Where BOX is the exact extent and bbox is the extent + a little margin, 
this I used to zoom with an area around it because my original MYBBOX 
view was based on a points table.


This view could be used as a helper to build the right queries.



Wouldn't it be more performance effective
Neil Best schreef:
Last fall I got some help for the list on how to use Postgres as a 
source for a tile index that gives locations of raster files on disk 
and that has been working beautifully.


My new question is this:  Is it possible for a tile index location to 
indicate something other than a path to a file, such as a PostGIS table?


The reason that I ask is that I have implemented table partitioning 
for large county-by-county (or smaller) data sets such as SSURGO and 
USDA CLU.  At the outset I convinced myself mistakenly that Postgres 
could leverage spatial check constraints for query planning using the 
constraint_exclusion = on mechanism, but it can't.  It only works with 
fields where the check constraint is based on a straight 
equal/not-equal comparison to a constant, AFAICT.  Neither && 
::geometry or ~ ::text checks work for this reason.


Getting Mapserver to leverage this advanced query planning means 
adding logic to my application to inject appropriate values into a 
WHERE clause in the layer's DATA query string.  To do this I need some 
kind of generalized layer that indicates the spatial organization of 
the attributes used for the partitioning.  This is essentially a tile 
index, so if I could just create a layer of bounding boxes for each 
table and let Mapserver decide which tables it needs to scan rather 
than adding complexity to my application in order to have the query 
planner do the same thing, that would be ideal.


Anybody have any thoughts or experiences to share?  Thanks.

Neil
___
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] GML request returns unsafe HTML characters?

2008-02-21 Thread Milo van der Linden




Hello list,

I am also posting this question on the Mapserver mailing list, but
maybe Flamingo is keen enough to have a solution already.

I am identifying features on a WMS layer hosted on Mapserver. When I
inspect the result of an Identify request with Firebug (the greatest
_javascript_ debugger in the world) in FireFox, I see that the request
returns values. But... they contain HTML unsafe characters, aargh!

The metadata for the layer in my mapfile is:

METADATA
  "ows_title" "percelen"
  "ows_srs" "EPSG:28992"
  "gml_featureid" "id" ##REQUIRED
  "wms_feature_info_mime_type"  "text/html"
  "ows_feature_info_mime_type"  "text/html" 
    "wms_include_items" "all"
    "wfs_include_items" "all"
    "gml_include_items" "all"
    END

And the output


"http://www.opengis.net/gml"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">




13.18,44.214150
139925.43,44.820050


HTN00 10233G
HTN00 00233G

00010002
J
53952.3530
Doe, J. / Doe, A.
SOMESTR 12 , 1234AB, SOMEWHERE




(Data scrambled for privacy protection)
My guess is that these little , and / are what cause the trouble. Has
anyone ran into this before? And even better? Found a solution?
P.S. 2 By the way, I am not the creator of the GIS dataas a BSc.
Geo-Informatics I am ashamed like.. for data like this.


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


[mapserver-users] WMS GetFeatureInfo always returns features from a single layer

2008-02-22 Thread Milo van der Linden

Hello list!

My GetFeatureInfo request (shown below) ALWAYS returns only features 
from one single layer. I have a simple question. Is this as designed? Or 
am I doing something wrong?


If it is as designed, I will tell openlayers to loop through the layers 
in a javascript function.


http://geo/map/mapserv.exe?MAP=D%3A%5CCaredata%5Cmapfiles%5C31.map&PROJECTION=epsg%3A28992&FORMAT=image%2Fpng&LAYERS=Regio%2CGrootwater%2CWater%2CBebouwing%2CLandinrichting%2CPlaats%2CGemeente%2CWegen&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A28992&BBOX=157730.5%2C415458%2C257730.5%2C515458&X=259&Y=268&INFO_FORMAT=application%2Fvnd.ogc.gml&QUERY_LAYERS=Plaats,Regio&WIDTH=512&HEIGHT=512 


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


Re: [mapserver-users] OpenLayers and MapServer Itasca Demo

2008-02-23 Thread Milo van der Linden




Hello Jason,

For OpenLayers and Mapserver to co-op your mapfile has to expose itself
as a WMS server.

For this read the manual at:


Good luck!


Jason Allen schreef:
I just started working with MapServer yesterday and it
rocks!
  
I've been learning my around with the MapServer 5.x Demo App (Itasca)
and while it works fine using HTML templates, I can't get it to play
nicely with OpenLayers.  OpenLayers simply returns blank map tiles.
  
The itasca.map file is stock except that I uncommented the projection
info:
PROJECTION
"init=epsg:26915"
END
  
My OpenLayers setup is very simple as well:
  
 function init(){
    map = new OpenLayers.Map( 'map' );
    layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", 
   "http://dev.312pulse.com/cgi-bin/mapserv?map=itasca.map",
{layers: 'drgs,lakespy2'},
    {gutter: 15});
    map.addLayer(layer);
    map.zoomToMaxExtent();
    map.addControl( new OpenLayers.Control.LayerSwitcher() );
    }
  
  
Does anyone have any idea why OpenLayers isn't displaying any data, or
how to troubleshoot this issue?  MapServer logging isn't the most
verbose, and I haven't been able to track down any other clues.
  
My OpenLayers test page (doesn't work):
  http://dev.312pulse.com/map.html
  
Workshop demo (works):
  http://dev.312pulse.com/workshop/
  
Thanks,
  
Jason
  

___
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


Re: [mapserver-users] Dynamic mapping with CGI parameters

2008-02-26 Thread Milo van der Linden

Hello Colin,

as I tried to clear to you before, I would go for option 2! Better 
still, I am using option 2 in a lot of real life cases.
Add userid=1234 to the request string (and as you say, pass it through 
perl to sanitize, excelent choice)


And use:

   DATA "line FROM (
   SELECT num, id, line
   FROM jsview_journeyroutes
   WHERE us_id = %userid%
 ) AS foo USING UNIQUE id USING SRID=4326"


I can guarantee you that will work.

Kind regards,

Milo van der Linden


Colin Wetherbee schreef:

Greetings.

I have a fledgling MapServer application that uses PostgreSQL as its 
back-end.  Each set of data I would like to retrieve from PostgreSQL 
is specific to a certain user.  Currently, since the application is 
only in an alpha phase, I have MapServer retrieve the aggregate sum of 
the data in the database and display it on my map.  This isn't going 
to work for the real application, since different users need to see 
different sets of data.


I would like to do one of two things, but I've been poring over the 
documentation today and can't find any way to achieve either.  I would 
very much appreciate some assistance.  My two approaches are as 
follows, but if there are others, I would certainly be open to 
implementing something different.


Approach #1:

Since my application is written in Perl, I could use MapScript in Perl 
to generate bits of maps and return them to the browser as needed.  
Perl would interpret cookies and perform session authentication before 
generating a customized map file to pass along to MapServer.  The Perl 
code [0] would look something like:


sub GetMapPiece()
{
  $req = new mapscript::OWSRequest();
  $req->setParameter("SERVICE", "WMS");
  $req->setParameter("VERSION", "1.1.0");
  $req->setParameter("REQUEST", $something);

  # The next two lines are the important ones...
  my $mapFile = GenerateMapFile({ userid => $someUserId });
  my $mapObj = new mapscript::mapObj($mapFile);

  mapscript::msIO_installStdoutToBuffer();
  my $dispatch_out = $map->OWSDispatch($req);
  return mapscript::msIO_getStdoutBufferString();
}

The problem with this is that, as far as I can tell, I can't create a 
mapObj from anything other than a file on disk.  I would like $mapFile 
to contain the full text of a dynamically created map file, and I 
would then like to be able to create a new mapObj from it.  My 
imaginary GenerateMapFile() function would generate the text for the 
map file, but it would never be saved to disk.


Approach #2:

This would be my preferred method, but from what I've read, I think 
approach #1 is more likely to happen.


This approach entails passing a CGI parameter to mapserv that could be 
substituted somewhere in the map file.  For example, the URL could be:


http://example.com/cgi-bin/mapserv?userid=1234

Then, the map file could contain something like:

DATA "line FROM (
SELECT num, id, line
FROM jsview_journeyroutes
WHERE us_id = {userid}
  ) AS foo USING UNIQUE id USING SRID=4326"

And, MapServer would see "WHERE us_id = {userid}" and, for {userid}, 
substitute the 1234 that was passed into mapserv as a CGI parameter.


Of course, doing this directly would cause nasty SQL injection attack 
problems, but I could properly sanitize the input with Perl.  No big 
deal there.


End Approaches.

Any thoughts on this?

Thanks.

Colin

[0] Adapted from 
<http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#perl-example>.

___
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


Re: [mapserver-users] Advice for MapServer project

2008-02-27 Thread Milo van der Linden

Timothy Mashford schreef:

Thanks to everyone for their input.

I have seen OpenLayers, I am not sure it is suitable as I really
require a zoom-box tool (not shift-click), and also a separate layer
control.
  
The zoombox tool is available. Please check 
http://www.openlayers.org/dev/examples/controls.html, there is a zoombox 
button (just above the pan hand). Click it and start dragging.

I have found GeoMoose to be fairly slow(?), and also full of features
I don't require (e.g. slide zoom), although I guess these could be
removed. The Morton County example is good.

The reason I was thinking dbox.js was that it is fast & simple. But
once I get up to that stage I will investigate all options.
  
I don't know about GeoMoose, but in Openlayers you can retrieve all 
layers at once from a mapserver, or you can add layers through 
javascript. The second will speed up drawing the map because layers will 
be sequentially loaded. If your base layer is fast, users will get the 
idea the whole map is faster.


Another thing is that in OpenLayers you can use tiled and untiled for 
your WMS server. Tiled means your mapwindow (+ an extra invisible 
border) is split in 9 pieces. These pieces are loaded sequential. 
Untiled means that a single image is retrieved from mapserver. You can 
mix the both. Say that you load the big topograhic map tiled and your 
own smaller datasets untiled. It will give a nice speedy feel. The extra 
border has the effect that when you pan half a mapwindow to the side, 
the data is already loaded. Again, another way to give user-experience a 
feeling of speed.

Can someone just help me understand how the postgresql database could
be queried for data within a specific date range? I am thinking that
the user could specify the dates in an initialisation page, and these
dates could then be stored at hidden CGI variables (or javascript
variables?). But if the data sources are specified in the mapfile, how
do I pass the dates to postgresql?
  

Date/Time functions for postgres are described here:


DATA "the_geom FROM (
  SELECT this, that, other, the_geom
  FROM my_daterange_table_with_geometry
  WHERE mydateColumnValue < %someDatefromOpenlayers% and 
mydateColumnValue > %someDatefromOpenlayers% - integer '30'

) AS foo USING UNIQUE id USING SRID=4326"

(Example on how to get a time-frame of 30 days around a given date.)

Sorry if my lack of knowledge is showing... Thanks again for the responses.

Tim Mashford.
___
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


Re: [mapserver-users] Mapserver equivalent for .NET

2008-02-28 Thread Milo van der Linden

Yep,

SharpMap.
http://www.codeplex.com/SharpMap



Matt M schreef:

Anyone know of a .NET equivalent of Mapserver?

Thanks
-Matt




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

___
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


Re: [mapserver-users] WFS and typename issue

2008-02-28 Thread Milo van der Linden

Have you tried using  ?

I had some sort of issue that looks like yours.

like this:

"gml_include_items" "MFIELD,KFIELD,DFIELD"
"gml_MFIELD_alias" "A Field for M"

I can retrieve fieldnames with spaces on my installation of mapserver 
for a WMS GetFeatureInfo request. If the same doesn't work on WFS I 
would suggest filing a bug.


Fischer, Brian schreef:

Just tried it and no + doesn't work.  I also tried %20,   and
  



Brian Fischer
Houston Engineering, Inc.
Maple Grove, MN
(763) 493-4522

-Original Message-
From: Pericles S. Nacionales [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 28, 2008 2:15 PM

To: Fischer, Brian
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] WFS and typename issue

Brian,

I take it the "+" character doesn't work?

-Perry

Fischer, Brian wrote:
  
Has anybody else experience problems when using a WFS service where 
the typename has a space in it?  I'm experiencing the WFS layers that 
don't have spaces work fine with MapServer, but ones that do have 
spaces produce invalid GML files.  Is there an escape character that 
can be used to represent the space in the typename?
 
The WFS service I am trying to get to work is 
http://www.datafinder.org/wfsconnector/com.esri.wfs.Esrimap/MN_MetroGI
S_ 
DataFinder_WFS_Water_Resources?request=getcapabilities&service=WFS&ver

si
on=1.0.0
 
The layer without the space works fine, but the rest do not.
 
Thanks,

Brian
 
Brian Fischer, CFM

GIS Project Manager
Houston Engineering, Inc. | Leave Nothing to ChanceTM
6901 East Fish Lake Road, Suite 140
Maple Grove, MN 55369
Phone:  763.493.4522 / Fax:  763.493.5572
Email:  [EMAIL PROTECTED]

Website: www.houstonengineeringinc.com 

 




--
--

___
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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver equivalent for .NET

2008-02-29 Thread Milo van der Linden

David J. Renz schreef:

Is SharpMap still a project?
  


It is, it is active, it is growing and we are currently investigating a 
port to the compact framework.

This is a nice tutorial for C# mapscript example:
http://www.paolocorti.net/public/wordpress/index.php/category/tutorials/
mapserver-tutorial-for-c-mapscript-asp-net/


 



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Milo van
der Linden
Sent: Thursday, February 28, 2008 12:34 PM
To: Matt M
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Mapserver equivalent for .NET

Yep,

SharpMap.
http://www.codeplex.com/SharpMap



Matt M schreef:
  

Anyone know of a .NET equivalent of Mapserver?

Thanks
-Matt









  
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.


http://tools.search.yahoo.com/newsearch/category.php?category=shopping
  

___
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 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


Re: [mapserver-users] Mapserver equivalent for .NET

2008-02-29 Thread Milo van der Linden
Given the fact that MpaDtoNte is commercial, it is probably not an 
alternative. :-P


About using Mapserver under the hood; shameless! These guys should 
recieve punishment!
They should be forced to donate to the mapserver project and show the 
mapserver logo everywhere. ;-)


Daniel Morissette schreef:

Matt M wrote:

Anyone know of a .NET equivalent of Mapserver?



Plesae dnot' tlel aynnoe, but MpaDtoNet hsa MpaSreevr udern teh hood. 
I wshi tehy wree mroe opne atuob tihs.  ;)

___
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


Re: [MAPSERVER-USERS] Mapserver equivalent for .NET

2008-02-29 Thread Milo van der Linden




Two things are getting mixed up here:
- dotnetmap might be using mapserver without mentioning it
- Sharpmap is indeed using GDAL/OGR projnet and more but they are fully
open about it. Mapserver is NOT running beneath Sharpmap. SharpMap does
it's own map rendering.

Adam Hill schreef:

  I don't think it is actually using MapServer proper. Daniel was just
pulling our collective legs :)

They do have a Extension framework where they use
GDAL/OGR/Oracle/Postgis C# wrapper libraries extensively as data
providers. They also make use of the .NET port of JTS for spatial
operators and ProjNET, which is the port of Proj4.

They do have a client app demo of SharpMap here -
http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=SharpMap&DownloadId=24213
. And if someone from OSGeo/MS wants to stop buy and and ask for some
logo reciprocation love they have pretty regular IRC meetings.

adam...

On Fri, Feb 29, 2008 at 7:53 AM, Paolo Corti <[EMAIL PROTECTED]> wrote:
  
  
 Really?
 this definitely sounds interesting.
 Are they using the mapscript api or are they going via CGI?
 How are exactly using mapserver? (I wish i could see this by myself, but
 looks at their site that there is not a downloadable demo of it)

 BTW: I agree that at least it should be mentioned this fact in their website
 :-(

 Paolo




 Daniel Morissette-2 wrote:
 >
 > Matt M wrote:
 >> Anyone know of a .NET equivalent of Mapserver?
 >>
 >
 > Plesae dnot' tlel aynnoe, but MpaDtoNet hsa MpaSreevr udern teh hood. I
 > wshi tehy wree mroe opne atuob tihs.  ;)
 > ___
 > mapserver-users mailing list
 > mapserver-users@lists.osgeo.org
 > http://lists.osgeo.org/mailman/listinfo/mapserver-users
 >
 >

 --
 View this message in context: http://www.nabble.com/Mapserver-equivalent-for-.NET-tp15745054p15758924.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 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


Re: [MAPSERVER-USERS] Mapserver equivalent for .NET

2008-02-29 Thread Milo van der Linden

Concerning SharpMap:
- I am writting a webservice handler for SharpMap at this moment. It 
allows SharpMap to behave as a WMS 1.3.0 server ONLY for the GetMap 
request (for more functionality; volunteers needed)
- For SharpMap I have written a XML specification that is also humbly 
(and offers far less possibilities for now :'(  ) based upon the 
Mapserver Mapfile


To me Mapserver is the mother of Open Source Maphosting!

Guillaume Sueur schreef:

Indeed Daniel, I've found interesting ressources here :
http://www.mapdotnet.com/wiki/Wiki%20Pages/Working%20with%20MapFiles.aspx

they write here 
(http://www.mapdotnet.com/wiki/Wiki%20Pages/MapFile%20Complete%20Reference.aspx) 
some funny stuff:
"The MapFile format used in MDNS adheres to the MapServer map file 
specification."


I didn't know that our good ol' mapfile was such a universal reference !
But, althought funny, this sentence tries to make people believe 
MapDotNet only use the mapfile format, and not mapserver itself, which 
can be considered unfaithfull if it effectively uses the mapserver 
engine behind.


Guillaume



Daniel Morissette a écrit :

Paolo Corti wrote:

Adam

Daniel is talking about MapDotNet (commercial), not about SharpMap
that is an impressive and native .NET  OS under GNU Lesser General
Public License.



That's correct, I was talking about MapDotNet, not SharpMap.

For those still in doubt, just look at the docs, there are screen 
grabs showing mapfiles, and the mapfile docs themselves are awfully 
familiar.


Actually, I browsed a bit and there are mentions of MapServer in a 
few places in the wiki (docs) and in the forums, so their use of 
MapServer is not completely secret.  :)


Daniel

___
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


Re: [mapserver-users] lane presentation of highways

2008-03-03 Thread Milo van der Linden




Hello Martijn,

I am able to help you on this one.

There is no need to set a transparent line. It is a matter of defining
style based upon an attribute.
First you need a definition for a class item:

CLASSITEM 'DRIVING_DIRECTION'

Then you set up classes for the directions:

CLASS
   NAME 'FROM_LEFT'
     _expression_ 'FROM_LEFT'
     MINSCALE 0
     MAXSCALE 10
   STYLE
 SYMBOL 0 
 SIZE 6 
 OFFSET -3 0
 WIDTH 3
 COLOR 249 201 139
   END
    END

CLASS
   NAME 'FROM_RIGHT'
     _expression_ 'FROM_RIGHT'
     MINSCALE 0
     MAXSCALE 10
   STYLE
 SYMBOL 0 
 SIZE 6 
 OFFSET 3 0
 WIDTH 3
 COLOR 249 201 139
   END
    END

CLASS
   NAME 'SINGLELANE'
     _expression_ 'SINGLELANE'
     MINSCALE 0
     MAXSCALE 10
   STYLE
 SYMBOL 0 
 SIZE 6 
 #OFFSET 3 0 #NO OFFSET
 WIDTH 3
 COLOR 249 201 139
   END
    END




Martijn van der Pauw schreef:

  
  
  
  If I have right understood,
you suggest to add the lines as an attribute/arrowsymbol to a single
(transparent) line that represents the highway. I will try to find out
how to do something like that. Thank you for your suggestion. It sounds
as a possible solution.
   
  Martijn
  
  
  
  Van: Bob Basques  
   Onderwerp:
Re: [mapserver-users] lane presentation of highways
  
  
I can't think of a way of doing this, because you physically need to
spread the two lines apart for the longer scale views if you want to
see both.  I have a couple of ideas about how to label a wide sigle
line though that would show both direction if they are attached as
attributes.
  
It might be possible to draw the lines, and then draw the layer again,
drawing only with the Symbols on top (no lines), and then offset the
arrow symbol locations,  Actually I think that would work.  I have
something similar in a address range labeling layer.  It would take a
bit of trial and error to do though.
  
You could still get into trouble though at longer range views, just
because there won't physically be enough room to apply the labels.
  
bobb
  
  
Martijn
  

 
The data is set up with two seperate lines, one for each direction. On the higher zoom levels you can already see the seperate lanes. But, unfortunately, when zoomed out they overlay each other of course.
 
Martijn



 Van: Bob
Basques [mailto:[EMAIL PROTECTED]]




Is the data for the lines set up as single line layers, or are there
two separate lines, one for each direction?

bobb


Martijn wrote:

  

   
  Hello, 
   
  I'd like to know how I can plot the 2 seperate
directions of a highway (I have the data in the database) in a way that
they can be distinguished from each other at all zoomlevels. When you
zoomed in a lot, you can always see the different driving directions
(lanes), but when you zoom out they overlay each other. Important is
that each lane is colored depending the road condition. So, the
standard way of plotting a highway doesn't meet our needs. The colors
of the 2 seperate driving directions can/will differ.
  
  
  
   
   Regards,
  Waver
  
   
  
  
  --
  This e-mail is from Meteo Consult B.V., a
MeteoGroup company. For more information, see www.weer.nl
  This e-mail may contain confidential
information. Only the addressee is permitted to read, copy, distribute
or otherwise use this e-mail or any attachments. If you have received
it in error, please contact the sender immediately. Any opinion
expressed in this e-mail is personal to the sender and may not reflect
the opinion of MeteoGroup.
  Any e-mail reply to this address may be subject
to interception or monitoring for operational reasons or for lawful
business practices.
  
___
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 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


Re: [MAPSERVER-USERS] Dynamic Style rendering for MapServer WMS

2008-03-04 Thread Milo van der Linden

D_Guidi schreef:

 I'm relatively new to mapserver, but I've created a WMS service with
 MapServer that publish SDE data in a fashion way and with a great
 speed.
 I'm using this WMS to publish my data via a webapp using OpenLayers,
 and I want to make better my website trying to change dynamically the
 style of my WMS maps...
 The goal is to do this:
 When the user query the data via getfeatureinfo, I want to reload the
 image and show with a different color the feature queried.
 With getfeatureinfo i could retrieve the ID of the selected feature,
 so I need to change dynamically the STYLE definition of my mafile, or
 something like this... any suggestion or a link to start reading docs
 on how to do this?
 Thanks :)
 Diego Guidi

  

In the mapfile, add a copy definition of the layer you want to highlight

LAYER
 NAME 'ps_highlight'
 TRANSPARENCY 100
 DUMP TRUE

   TYPE POLYGON
   DATA 'E:\mapdata\my_original_layer.shp'
   METADATA
 "ows_title" "ps_highlight"
 "ows_srs" "EPSG:4326"
   "gml_featureid" "id"
   END
   STATUS OFF
   PROJECTION
"init=epsg:4326"
   END
   MAXSCALE 10
   CLASSITEM 'ID'
   CLASS
  #NAME 'selection'
EXPRESSION "%id%"
  STYLE
SYMBOL 0
SIZE 6
  WIDTH 3
OUTLINECOLOR 255 0 0
ANTIALIAS TRUE
COLOR 255 0 0
  END
   END
END

And now call this layer with a WMS GetMap request where you add 
"&id=123" to the end of the request string.



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


Re: [mapserver-users] Need shape files

2008-03-14 Thread Milo van der Linden

Hello Amit,

I can provide a variety of GIS data, but what or where is JORDAN? Please 
give me some details.


Another thing you can do is install one of the opensource Desktop GIS 
(uDig, OpenJump, QuantumGIS) and create your own data.


Kind regards,
Milo van der Linden

amit tripathi schreef:

Hi,

I need to get shape files for JORDAN(preferably open source for testing 
purpose). Please guide me from where i can find these?

Regards,
Amit




  __
Sent from Yahoo! Mail.
The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html
___
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


Re: [mapserver-users] Need shape files

2008-03-14 Thread Milo van der Linden

e00 can be converted using http://avce00.maptools.org/

amit tripathi schreef:

Till,
it provides eoo files, can you tell me how these files can be converted into 
.shp and .dbf files.

Regards,
Amit

- Original Message 
From: Till Adams <[EMAIL PROTECTED]>
To: mapserver-users@lists.osgeo.org
Sent: Friday, 14 March, 2008 5:02:14 PM
Subject: Re: [mapserver-users] Need shape files

Milo,

great - I would have bet you are American ;-)
-->http://www.openstreetmap.org/?mlat=31.5836903251737&mlon=36.535194397&zoom=7


Amit,

see "gisdatadepot.com" as a point to start for downloading rough (and 
probaly not up-to-date) Geodata countrywise.

In OpenStreetmap there is poor information about Jordan.

Regards, Till


  

Hello Amit,

I can provide a variety of GIS data, but what or where is JORDAN? 
Please give me some details.


Another thing you can do is install one of the opensource Desktop GIS 
(uDig, OpenJump, QuantumGIS) and create your own data.


Kind regards,
Milo van der Linden

amit tripathi schreef:



Hi,

I need to get shape files for JORDAN(preferably open source for 
testing purpose). Please guide me from where i can find these?


Regards,
Amit




  __
Sent from Yahoo! Mail.
The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html
___
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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapfile for getFeatureInfo

2008-03-21 Thread Milo van der Linden

The problem is with:

DATA 'the_geom FROM manis.stations'

it has to be something like:

DATA 'the_geom from (select 
station_id,param1,param2,param3,param4,the_geom from manis.stations) as 
stats using unique station_id using SRID=4326'


You have to explicitly address the fields you want to be available in 
your DATA statement.


Kind regards,

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


Re: [mapserver-users] OT - Seeking a Good (Mapping-Related) JavaScript Forum

2008-03-24 Thread Milo van der Linden

Hello Bill,

I have had some good success on the rails spinoff list;

mailto:[EMAIL PROTECTED]

They constantly discuss javascript and AJAX topics and are the only 
mailinglist as far as I know where rubber-banding is also discussed. 
Some of the OpenLayers developers are also on the list.


Kind regards,

Milo

Bill Thoen schreef:
I've been intrigued by tools like dBox and in general using JavaScript 
for driving web-based mapping applications, but I need to learn more 
about the JavaScript side of things. Can anyone here recommend a good 
discussion group for JavaScript so I can ask some dumb questions?  
Even better if you know of a *mapping* oriented JavaScript forum, 
because I've got some SVG questions too.


Searching Google came up with a number of JavaScript-L's, but if 
there's one that stands out I'd appreciate somebody pointing it out to 
me.


TIA,
- Bill Thoen
___
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] tile server

2008-03-24 Thread Milo van der Linden

Hello list,

a little while ago I read somewhere that it is possible to connect a 
tileserver via a virtual layer to mapserver. The trick was to store an 
xml file and create a layer definition in the mapfile that pointed to 
the tile server with information about the tilesize, zoomlevels and so on.


I can't seem to find it anymore...

Can anyone point me to a succesfull tileserver connection sample?

I don't mean running mapserver as tileserver, but attaching a layer from 
a tileserver.


Kind regards,

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


Re: [mapserver-users] tile server

2008-03-25 Thread Milo van der Linden

Hello All,

I recovered the post where I found how remote tiles from a WMS-C cache 
are supported here:

http://wiki.openaerialmap.org/Using_With_MapServer

Now, what I want to use this structure for is to get OpenStreetMap maps 
served as layers in my mapserver. OpenStreetMap uses mapnik to serve the 
tile layers, they are accessed in the form:


http://tile.openstreetmap.org/7/63/42.png

How would an xml file be set up to serve this as a layer?

Main purpose is to expand the usability of openstreetmap into the 
desktop-GIS world by using mapserver as intermediate WMS server.





Ivan Mincik schreef:

Hi Milo,
I don't know the solution, but I will be very interested  how to do it. So, if 
You find solution yourself, please, paste it to the mailinglist.


Ivan 


On Tuesday 25 March 2008 07:32, Milo van der Linden wrote:
  

Hello list,

a little while ago I read somewhere that it is possible to connect a
tileserver via a virtual layer to mapserver. The trick was to store an
xml file and create a layer definition in the mapfile that pointed to
the tile server with information about the tilesize, zoomlevels and so on.

I can't seem to find it anymore...

Can anyone point me to a succesfull tileserver connection sample?

I don't mean running mapserver as tileserver, but attaching a layer from
a tileserver.

Kind regards,

Milo
___
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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] tile server

2008-03-25 Thread Milo van der Linden

Or (and this sounds more appealing to me)
Patch the OSM API to use TMS style tiles.

I have a local OSM server.

Christopher Schmidt schreef:

On Tue, Mar 25, 2008 at 12:08:13PM +0100, Milo van der Linden wrote:
  

Hello All,

I recovered the post where I found how remote tiles from a WMS-C cache 
are supported here:

http://wiki.openaerialmap.org/Using_With_MapServer

Now, what I want to use this structure for is to get OpenStreetMap maps 
served as layers in my mapserver. OpenStreetMap uses mapnik to serve the 
tile layers, they are accessed in the form:


http://tile.openstreetmap.org/7/63/42.png

How would an xml file be set up to serve this as a layer?



You can't. OSM uses "Google" style tile indexes, OpenAerialMap has
support for "TMS" style tile indexes. GDAL only supports the latter. So
the answer is "patch GDAL".

Regards,
  


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


Re: [mapserver-users] Problem creating WMS

2008-03-26 Thread Milo van der Linden
svGIS will return text/html only when the WMS server returns a message 
or error. The GetCapabilities is parsed correctly, but when the GetMap 
is triggered, it occasionally returns text/html on error.


The best thing to do is copy the request string from svGIS to your WMS 
server to a browser. If it is correct, you will see an image. If it is 
wrong, The browser will tell you it wants to download a file called 
"mapserv" or "mapserv.exe"
download and save it as "error.xml" then read the contents of the file 
and you will probably see an error message on why your WMS request fails.


Also note that in svGIS you must have a STYLES= element in your request 
and no Boundingbox or SRS should be there, they are added by svGIS 
automatically.


Is your server public? I can help you test it.


Gregor Mosheh schreef:

bernardo wrote:

This program cannot read feature info in type "text/html", only "gml"


GML is for WFS, which is for sending vector data (as opposed to raster 
pictures of data) over the net. Perhaps you're interested in WFS and 
not WMS?




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


Re: [mapserver-users] Reading a GML file to build a map

2008-03-26 Thread Milo van der Linden

Absolutely! But use of mapscript is not necessary.

Edit your mapfile.

http://mapserver.gis.umn.edu/docs/reference/vector_data/gml

Good luck!

Milo van der Linden


Carlos Pinto schreef:

Hi all,

I'm new in MapServer and I'm using Openlayers that can be a client of 
MapServer.


What I'm trying to set-up is a grid that is in GML file. And I want 
MapServer to build the layer reading the GML file and give it to 
OpenLayers (javascript API) would read it as WMS.


I have instaled MapServer in C#  so I'm using MapScript. Is this possible?

Thanks

Carlos


___
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


Re: [mapserver-users] Projection Issues

2008-03-27 Thread Milo van der Linden
The problem might be that in your mapserver proj4 implementation; the 
epsg:20355 is missing towgs84 parameters. These parameters tell 
mapserver the shift that is present between the wgs84 ellipsoid and the 
greenwich ellipsoid.


Could you check out the epsg file in your proj/nad directory; look up 
<20355> there and see if you have something like 
+towgs84=-70.9,-151.8,-41.4,0,0,0,0 default it says something like no_defs.

You can find a description on ellipsoid differences here:
http://www.remotesensing.org/proj/gen_parms.html

I looked up this somewhere on a mailinglist: ellps=aust_SA 
towgs84=-133,-48148,0,0,0,0


See if it can help you.

Good luck

Milo van der Linden



Gabe schreef:

Hi

I am having trouble with the projection on a raster image.  The map is being
displayed but the raster layer is shifted by about 210m.

The mapfiles main projection is EPSG:4326

I have a .ecw file with this gdalinfo:

Driver: ECW/ERMapper Compressed Wavelets
Files: aerial_photo_2003.ecw
Size is 53334, 53334
Coordinate System is:
PROJCS["TMAMG55",
GEOGCS["AUSTRALIAN GEODETIC",
DATUM["AGD84",
SPHEROID["ANS",6378160,298.25]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",147],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",50],
PARAMETER["false_northing",1000],
UNIT["Meter",1]]
Origin = (655179.380,7701896.290)
Pixel Size = (1.500,-1.500)
Corner Coordinates:
Upper Left  (  655179.380, 7701896.290) (148d29'26.84"E, 20d46'34.32"S)
Lower Left  (  655179.380, 7621895.290) (148d29'52.92"E, 21d29'55.68"S)
Upper Right (  735180.380, 7701896.290) (149d15'32.31"E, 20d46'4.13"S)
Lower Right (  735180.380, 7621895.290) (149d16'11.81"E, 21d29'24.34"S)
Center  (  695179.880, 7661895.790) (148d52'45.97"E, 21d 8'1.22"S)
Band 1 Block=53334x1 Type=Byte, ColorInterp=Red
  Overviews: arbitrary
Band 2 Block=53334x1 Type=Byte, ColorInterp=Green
  Overviews: arbitrary
Band 3 Block=53334x1 Type=Byte, ColorInterp=Blue
  Overviews: arbitrary


I have a vector layer which was a tab file with the projection AMG Zone
55(AGD 84).  This was loaded into postgis with ogr2ogr using these options
ogr2ogr -overwrite -f "PostgreSQL" PG:"" thefile.tab -nln
t_table -lco "GEOMETRY_NAME=the_geom" -t_srs EPSG:4326 -skipfailures.  I
have done this before on different installations and it usually gives me a
table where srid =4326 however in this case it is giving me a newly created
srid = 32772 (this installation is different in that we are using postgres
8.3 and ms4w 2.2.7).  I have checked and as far as I can tell this layer is
being displayed correctly.

here are the relevant layers from my mapfile

LAYER
  NAME "Photography_2003"
  GROUP "Photography_2003"
  DATA "mackay/Images/aerial_photo_2003.ecw"
  TYPE RASTER
  STATUS ON
  PROJECTION
"init=epsg:20355"
  END
  METADATA
"DESCRIPTION""Photography 2003"
  END
END

And

  LAYER
NAME "Paddocks"
GROUP "Paddocks"
STATUS ON
DATA "the_geom from t_the_table using unique oid using SRID=32772"
TYPE POLYGON
CONNECTIONTYPE postgis
CONNECTION ""
MAXSCALE 200
CLASS
  NAME "Paddock"
  STYLE
ANGLE 120
WIDTH 1
SIZE 13
COLOR 0 128 0
OUTLINECOLOR 0 128 0
SYMBOL "hatched"
  END
END
  END

Any help would be appreciated.

Gabriel


___
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


Re: [mapserver-users] clip and zip server

2008-03-31 Thread Milo van der Linden

Hello Jim,

This is no out of the box functionality, but I would solve this as follows:

You build some sort of webservice that responds to an AJAX request by:
A) //- Website functions ---//
1) - Taking the bounding box, the users e-mail and the selected layers 
as parameters

2) - Doing some business logic to tell if the request is valid
3) - Storing the request including the users e-mail and the boundingbox 
and the layers that the user selected (in a table in the postgres 
database for instance)

4)- return an AJAX response telling the user that:
   - His request is added to the que
   - He will recieve the dataset per e-mail

B) //- Server batch ---//
1) You build a script on the server that
   - looks at the postgres table for pending requests
   - loops the requested layers doing a geo-select (postGIS function)
   - Export the selection to shape using ogr2ogr or psql2shp
   - zip the shapes
   - mail them.

Hope this is helpfull for you.

Kind regards,

Milo




Fawcett, David schreef:

You might want to look at http://deli.dnr.state.mn.us/data_search.html

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jim white
Sent: Monday, March 31, 2008 3:13 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] clip and zip server


We have implemented  a mapserver site that allows users to create an
area of interest. Next, we want to let the user select some layers and
then clip the layers to the AOI, zip them, put the zip file on an ftp
server, and send an e-mail when they are ready. This should be done on a
second server from the main mapserver server.

Would appreciate any suggestions from anyone who has done something
similar or who has any ideas how this is best done. Original mapserver
site is in PHP and prefer that or Python for the second server.

Thanks,

Jim

  


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


Re: [mapserver-users] Dynamic Mapserver Technology

2008-04-01 Thread Milo van der Linden

[EMAIL PROTECTED] schreef:

Hi there,

one is seeing more and more flash-map sites on the web. It seems almost as if 
these are some kind of competition for the "real" IMS sites. Surely no real 
GIS application; but in many cases some basic information display is 
sufficient.
  
In my opinion: Commercially, the "real" GIS market is not at all as 
atractive as the "basic, more practical solutions" you see evolving all 
around us. GIS itself is often more an "in crowd" at local governments 
and large spatial companies, whereas businesses that need a map to 
enhance their business are often better of NOT having a real GIS and 
thus offer far better opportunities for openGIS companies and 
independent consultants. But this is my personal opinion.
So I wonder how far one can go with mapserver. Probably one has to use as 
well the flash-output option? And then, is there the possibility to 
dynamically highlight a country when the mouse is over that country? Display 
additional information - something like a country profile etc Everything 
within one single application, without the need to reload a page, another 
window etc.?
  
There is an excelent opensource Flash webclient available: 
www.flamingo-mc.org it's development was supported by the dutch 
government and I have had the opportunity to use flamingo-mc to push a 
GIS-like solution to a market currently unfamiliar with GIS and this 
offers promising commercial opportunities.


Basically, you configure Flamingo-mc to connect to WMS-servers. You can 
even enhance it by setting up mapserver as WFS to return feature info. 
For me this all operates with mapserver in the background, not returning 
SWF, but just "basic" png images.


If you want more details on the solution I set up, contact me directly 
and I can let you have a peek at what I created.


Kind regards,

Milo van der Linden

Thanks for any hints,

Stef



___
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


Re: [mapserver-users] Open Source solution to display PNG maps converted from SVG in a map viewer with labels and possibly tiles

2008-05-10 Thread Milo van der Linden
Even data that is not georeferenced has some sort of projection being it 
0,0 for the lower left corner and 600,600 for the upper right. So you 
should be able to put that in Mapserver with a self created projection 
(1). Problems arise when you want to combine your maps with for instance 
satellite imagery because in that case you will need transformations to 
do the matching, and for transformations you need parameters to convert 
one projection to another (2). A quick and dirty solution for (2) would 
be to create images and georeference them manually with a GIS. qGIS has 
a nice georeferencing plugin that will help you in that process.


As you state in (2) "Mapserver requires a mapfile like a SHP"; that 
assumption is wrong. A mapfile is a metafile and in that way more like 
a  mapinfo wor file (workspace, I don't know the equivalent for esri) 
which has the great possibility to create meta descriptions for layers 
of an (almost) unlimited amount of known GIS sources.


So, the most important think to ask yourself is:
- Am I going to combine my SVG data source with layers that are 
georeferenced?


Because then you have some extra work at hand, but using mapserver to 
host your data is always an option.


Kind regards,

Milo van der Linden


Jeremy Short wrote:
The original data is stored in SVG and it is not georeferenced.  It is 
a collection of hand-rendered maps in Inkscape, an SVG editor, with 
geographical measuring units like latitude or longitude.


We wanted to stay away from serving up SVG because Firefox supports 
SVG but not IE and we didn't want to force people to have to install a 
plugin. I tried the link (http://www.carto.net/williams/yosemite/) and 
it looks good but it looks like the plugin is needed for IE.


Any ideas for non-georeferenced SVG/PNG source files to serve up PNG 
files which can be used as a base layer for a map?  Can I even use a 
non-georeferenced SVG/PNG with Mapserver?


Andreas Neumann wrote:
So, if I understand you correctly, your original map data is stored 
in SVG files.


In that case you can use Apache Batik to render into georeferenced 
PNG files (if your SVG data is georeferenced). You can trigger this 
rasterization process whenever there was a change in the SVG data. 
This georeferenced raster data can be fed into UMN Mapserver for fast 
delivery. My guess is, while the quality of the Apache Batik 
rendering process is excellent, it won't be as fast as the UMN 
Mapserver, when delivering maps.


Alternatively, you can consider to serve the SVG data directly, 
without going through PNG files. You can also combine SVG with 
Postgis where the vector data is stored in Postgis and the SVG is 
generated on the fly. You can see an example of this approach at 
http://www.carto.net/williams/yosemite/ - for bigger SVG files it is 
certainly faster if you store your geodata in a spatial database and 
deliver customized extents, simplified versions and sub-selects 
appropriate to the chosen mapscale.


Hope this helps,
Andreas


Jeremy Short wrote:
My goal is to render an SVG image map to PNG to display on our 
website within a mapviewer of some sort with panning and zooming 
capability. We have many maps. I want to use an Open Source 
solution. Our web server is running Apache.


Additionally we want to add a "layer" of text labels which will not 
get bigger when we zoom in. Too, since we have large pictures so 
they don't degrade when one zooms in, we would like to explore the 
ability to send only "tiles" of the map picture if it's required.


What I have found thus far:

1. Using OpenLayers as a client gives us the ability to load a PNG 
file, pan, and zoom.


2. For the ability to add layers of text labels and transport tiles 
of data I explored the possiblity to use Mapserver. It appears 
Mapserver requires a map file like an SHP file as input and it will 
output a PNG. I would like to feed it as input a PNG file but I 
don't know if Mapserver is designed for this.


Looking further into this I see one can possibly use a tool like 
gvSIG or AB Viewer to translate a PNG to a SHP file but I want to 
automate the process without this extra step because people will be 
modifying the SVG file periodically.


There seems like there must be a better way to accomplish what I 
want which is to render PNG images in a client web browser with the 
ability to navigate within the map and to render text labels and 
transport tiles of information. Is there?











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


Re: [mapserver-users] MapServer vs MS4W FIles To Upload

2008-05-14 Thread Milo van der Linden

Hello Paul,

Paul Yelk wrote:

Kyle Wilcox wrote:
MS4W is an acronym for 'MapServer for Windows', not a solution for a 
Unix based web host.

Sorry, I guess I did not clearly state my question(s)!
I knew MS4W stood for the installation of MapServer on a Windows computer.

What I should have asked was once I had a set up under MS4W, which of 
the files would/can I upload to an Apache web host? Or will I have to 
completely do a separate set of files for each OS?


I am hoping that the map files and other files I create on my home 
computer using MS4W will be able to uploaded to the web host running 
Apache.
- mapfiles, font- and symbol files and the data files (shp, dbf, tab, 
dat and so on) are the files you are talking about. You can indeed 
upload them to "A webserver capable of running mapserver", change the 
paths in the mapfile and you should be ok.


I would strongly suggesty you to put pressure on the board of directors 
and tell them map hosting is NOT the same as web hosting, it requires 
specifically prepped server(s). Make sure they are willing to create 
some budget before you start making promisses and sign up with the guys 
at hostgis.com (I know from experience they are willing to set up a test 
period and their support is excellent) 

It will save you frustration, tears and sweat and a lot of precious time 
and you might even be able to live up to the expectations of the people 
who asked you to put a map online without realizing that GIS and 
Cartography is a specialism people go to university for...


Kind regards and good luck!


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


Re: [mapserver-users] Setting up a MAP file to use data on a network share [newbie I guess! :-) ]

2008-05-16 Thread Milo van der Linden

Hello Greg,

I think that it is the account that the IIS service runs in that needs 
to be allowed access to the network share. So either you have to 
reconfigure the IIS server to run as your user (which brings up a whole 
new set of trouble :-() or open the share to the local IIS service account.


Your trouble is windows only and mainly an authorization issue unrelated 
to mapserver.


See if you can get in touch with a good system Windows administrator to 
testdrive various settings.



If none of this works out, I know of ways to open up postGIS accross the 
windows network which might be a last resort.


Good luck!

Milo van der Linden


Greg Cocks wrote:

Hello List,


I am trying to set up a MAP file to use a network share for the files that for 
various reasons I can’t get into PostgreSQL, etc… i.e., so that we only have 
one copy of the data being used internally and on the web, etc


I proceeded as follows

 - Using IIS on a Windoze box (yeah, yeah, grin) set up a virtual directory to 
a network share using a UNC path \\server\directory that I use all the time 
with ArcGIS, etc – called it wms_data

 - Added my credentials in the ‘Connect As’ in IIS

 - Used the explore in the IIS MMC and confirmed I could browse the data there

 - Confirmed that the directories had the relevant web access permissions

 - Charged the relevant line in my MAP file to → SHAPEPATH "/wms_data/"

 - Changed the layer’s data pointer to → DATA "subdirectory/sameshapefilename"


* When I now load the page it says it can’t find the layer’s data!  Ugh! *


Note that if I use a local (i.e., C:\...\...\) path for the data and in the MAP 
file it works just fine… Also, want to look at MrSIDs the same way, which again 
works just fine using a C:\ path…


Note that I know enough about IIS to be dangerous!   ☺


Thanks in advance for your help

--
Regards,
GREG COCKS
GIS Analyst V
[EMAIL PROTECTED]
S. M. Stoller Corp
105 Technology Drive, Suite 190
Broomfield, CO 80021
www.stoller.com
303-546-4300
303-443-1408 fax
303-546-4422 direct
303-828-7576 cell

  



___
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


Re: [mapserver-users] PHP WMS Client error

2008-05-16 Thread Milo van der Linden

Hello Marta,

Can you check by running a phpinfo(); if DOM XML support is installed in 
your php version? Because that is what seems to be lacking.


Your php install will need to have a file like domxml.so or domxml.dll.

Kind regards,

Milo van der Linden



marta fuster wrote:

Dear list,

We have a problem with the PHP WMS Client downloaded from 
http://mapserver.refractions.net/. We have upload that client in our 
web server and when we try to test it with our wms we get that error:

*

Fatal error*: Call to undefined function xmldoc() in 
*/srv/htusers/gis/geoportal/wms_layerframe.php* on line *66


*do you know where is the error? Any Ideas?

Thanks!
*


*


___
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


Re: [mapserver-users] How to test Mapserver!

2008-05-23 Thread Milo van der Linden

The thing would be that instead of addressing mapserver directly like:

http://yourserver/cgi-bin/mapserv?

You would use:

http://yourserver/myproxy.php?

Since the hard clients add all the parameters themselves, your php 
script could strip all the parameters and under water call:


http://localhost/cgi-bin/mapserv?

And in this loop, you would also use a small piece of php code to log to 
a file.


I am sorry I don't have a working example, but I think this would solve 
your trouble.




David Martinez Morata wrote:

:S!
Thanks but...
I don't know php and the test its for a wms via "hard clients" 
(ArcGIS, AutocadMAP,gvSIG...)
I have a MS4W distribution and I activate the log file for mapserver 
but only takes the errors via Web.


Thanks for your help, but I don't know if its useful for my case.


___
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


Re: [mapserver-users] Q: MapServer(ms4w) works with tomcat instead of apache

2008-06-04 Thread Milo van der Linden
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In this "switching port" issue; you should use mod_proxy and/or
mod_rewrite to tell apache when a user is requesting tomcat and when
standard webpages. This is beyond a mapserver topic and should be
addressed to communities involved with Apache.

Zhao Ying (CDU) wrote:
>  
> 
> Hi Mr. Mason,
> 
>  
> 
> I really appreciate for your reply, now I get to understand about the 
> relationship between Tomcat and Apache.
> 
> Well~, frankly, I’ve already had a J2EE web application in progress. The 
> general concept should be like this:
> 
>  
> 
> --
>  -- 
> 
> Web client (user web brower such as IE…) | ---> (Request to tomcat)  
> -->  |  tomcat  |   (Get and process resources
> 
>|  
>   port :8661|  |according to URL 
> requested
> 
> ---   
>   -- and return 
> result HTML to client)
> 
>  
> 
>  
> 
> But if I want to add some map features or just a single static web page to 
> show a map within my website, then
> 
> There should be one more architecture:
> 
>  
> 
>  
> 
> --
>  --  Request 
> -
> 
> Web client (user web brower such as IE…) | ---> (Request to apache)  
> ->  | apache  |   --->  |  MapServer |   
> 
>|  
>   port :8000|  |  
> |  |
> 
> ---   
>   --  
> --   
> 
>  
> 
>  
> 
> In another word, our users have to change requesting port number again and 
> again though accessing a same website, for
> 
> They actually send requests to a server (software server) �C tomcat when 
> requesting dynamic content processed by servlet,
> 
> Jsp, whatever, and send requests to another one �C apache when requesting map.
> 
>  
> 
> Sir, according to your email, “But being able to script in Java is still a 
> long way from being able to deploy
> 
> to a servlet container like Tomcat.” My personal understanding is there’s no 
> way for tomcat to replace apache totally
> 
> as a middle man role in terms of cooperating with MapServer. 
> 
>  
> 
> Does that mean we have to keep two web architectures and have
> 
> two software servers installed if we want to provide both dynamic content and 
> map feature? 
> 
>  
> 
> Or there may be a solution to solve this two-architecture problem?
> 
>  
> 
>  
> 
> Thanks for your great help again!!!
> 
>  
> 
> Jeff.
> 
>>From Chengdu, China
> 
>  
> 
> 
> 
> From: Andrew Mason [mailto:[EMAIL PROTECTED] 
> Sent: 2008年6月4日 23:12
> To: Zhao Ying (CDU)
> Cc: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Q: MapServer(ms4w) works with tomcat instead 
> of apache
> 
>  
> 
> Hello,
> 
>  
> 
> Tomcat and Apache are very different things, and while there is certainly a 
> degree of overlap in what Apache Httpd and Apache Tomcat can be used for, the 
> way the two applications actually operate is very different.
> 
> Without going in to too much detail here, Tomcat is essentially a J2EE 
> application container, not a webserver and applications are written using the 
> Java programming  language. You'd normally never use Tomcat to serve files in 
> the way you'd use Apache httpd. You'd normally delegate such a task to a 
> webserver. And there really isn't much of an issue about having the two 
> servers installed, we sorted out the port conflict issues a while back.
> 
> Excuse any slight errors here, I've only been using Mapserver a few weeks 
> myself, but my understanding is that Mapserver essentially a set of C 
> libraries that are accessible via CGI. You can also access these via  PHP, 
> Python and others even Java it seems, using mapscript. But being able to 
> script in Java is still a long way from being able to deploy to a servlet 
> container like Tomcat.
> 
>  
> 
> If you really want to avoid installing Apache httpd, then you might find 
> Geoserver useful, as it is a Java web application, and deploying it to Tomcat 
> is really easy.
> 
> But I would recommend trying Apache Httpd, as it's not particularly difficult 
> to get to grips with.
> 
>  
> 
> Hope this helps,
> 
>  
> 
> regards
> 
>  
> 
> Andrew Mason
> 
>  
> 
>  
> 
> On 4 Jun 2008, at 10:12, Zhao Ying (CDU) wrote:

Re: [mapserver-users] Mapserfer Wfs and Mapinfo

2008-07-03 Thread Milo van der Linden
So the problem is in the GetCapabilities.

I copied yours in a xml file.
Then downloaded
<http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?VERSION=1.0.0&SERVICE=WFS&REQUEST=GetCapabilities>
and saved it as an xml-file too.

Then I installed meld on my ubuntu desktop. There is a compareable
product for windows called winmerge <http://winmerge.org/>

to visualy compare both documents. This is what I found:

dmsolutions has




where you have

  

and



where you have


Your latlong bounding box says: 

I am not sure mapinfo is able to handle the "e+12" in the coordinates,
perhaps you should try testing a coordinate with all decimals written out?

Is your EPSG code (28405) one that can be recognized by MapInfo and
transformed into their internal coordinate systems?

These are some hints, I wish you good luck with rest!

Kind regards,

Milo van der Linden






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