Re: [mapserver-users] Polygon filled and with an image in the center ?

2008-12-10 Thread José María Michia
Hi Carlos. The way that I know to make this, is use two layers with
same source data. One layer as polygon layer, and the other layer as
points, using centroids from first.

Saludos
José María

2008/12/9 Carlos Ruiz [EMAIL PROTECTED]:
 Hi list,

 Does someone knows how to fill a polygon and put an image in the centroid
 within the same
 layer ?

 Thanks in advance

 IC Carlos Ruiz


 ___
 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: How to sort the WFS output in MS 5.x.x ?

2008-12-10 Thread Schönhammer , Herbert
Hi list,

until now I've been using mapserver 4.10.2 for generating wfs (for use with 
wfs-gazetteers). I determined the order of the wfs-output with the ORDER BY 
clause of the DATA-statement.

Example:
DATA 'the_geom from (SELECT the_geom, fid, str_name, haus_nr, haus_nr_zusatz, 
str_such_string, ... FROM stgk_hausnummern ORDER BY 
str_name,haus_nr,haus_nr_zusatz) as foo using unique fid using SRID=31468'

The result:



Changing the ORDER BY - clause caused changing the sort order of the output.

==

Using mapserver 5.2.0 and mapserver 5.2.1 the ORDER BY - clause has obviously 
no effect. The wfs - output is always sorted by sort order given from attribute 
fid.
Fid is the feature-id and implemented  in the database as a unique-constraint.

Is it possible to change the sort order in mapserver 5.x.x too?
Has anybody a tipp for me, how this could be done ?

Thanks

Schoenhammer Herbert

P.S.

The generated urls are looking like:
http://myserver/cgi-bin/getows?map=/data-umn/wfs/rgb_wfs_adressen.mapREQUEST=getFeatureTypename=adressenVersion=1.0.0service=WFSfilter=%3Cogc:Filter+xmlns:ogc=%27http://ogc.org%27+xmlns:gml=%27http://www.opengis.net/gml%27%3E%3Cogc:PropertyIsLike+wildCard=%27*%27+singleChar=%27.%27+escape=%27!%27%3E%3Cogc:PropertyName%3Estr_such_string%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*MARTIN*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E



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


[mapserver-users] getting extent(urgent)

2008-12-10 Thread Amiya Patra
Hi

 from where I will get GIS raster data? Actually I got some tiff images(from
google snapshot)which has pixel extent (like 0,0,456,567). and using those
images I am creating  images. So obviously output will be same images. I
need some tiff raster data files with longitude latitude extent. Is it
possible to change the extent of pixels to long lat form?I know it is
possible to get geo coordinates from raster file with lat long extent.
Actually I want to calculate the lat long on any point of created image but
then I need to have lat long extent (as reference point) so that I can
calculate. Plz help me
Thanks
Amiya Patra
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] help with converting Geoserver site to Mapserver

2008-12-10 Thread Pål Kristensen

Hi Justin!

I've recently uploaded (to YouSendIt) a ms4w archive with a predefined WMS
service based on the countries dataset (which is included in my archive).
Hope that it helps you in setting up your web applications.

Regards,
Pål Kristensen


Justin Bailey-3 wrote:
 
 Hi Mr. Kristensen,
 
 Thank you very much for you offer; I would greatly appreciate your help.
 
 The ZIP containing the shape file and other data is over 15 MB, so I will
 upload it using YouSendIt right after sending this post.  The coordinate
 system is standard latitude/longitude; no need for MGRS or UTM or anything
 fancy.  The map should cover the entire globe..  Basic styling is fine;
 and the shape file should already contain the country boundaries.
 
 Justin
 
 P.S. To the others on this thread -- I feel I should correct a
 misconception.  I have already invested about three days in this
 project, one of which was spent just getting mapserv.exe to run
 under CGI.  I did not run to the mailing list as my first recourse; I am a
 firm believer that a person should put forth a best-effort attempt before
 asking for help.
 
  
 
 
 From: Pål Kristensen [EMAIL PROTECTED]
 To: mapserver-users@lists.osgeo.org
 Sent: Tuesday, December 9, 2008 2:20:39 PM
 Subject: Re: [MAPSERVER-USERS] help with converting Geoserver site to
 Mapserver
 
 
 Hi!
 
 If you could provide the shape file, I could set up a complete and working
 MapServer for Windows installation that only needs unzipping to the c:\
 drive to work. The Map file will only contain basic styling of the file
 (like boundaries and maybe country names if your dataset contains that
 information). Changing the mapfile to add more complex drawing rules
 should
 be quite easy. Just let me know if you'd like me to help.
 
 It would be a great help if you could provide some information about the
 coordinate system support that you need. 
 
 Regards,
 Pål Kristensen
 Norwegian Mapping and Cadastre Authority
 
 
 
 Justin Bailey-3 wrote:
 
 Hi list,
 
 I hope I can get some assistance on a matter of some urgency.  Our
 organization has been putting the finishing touches on an application
 that
 is supposed to be released by the end of the year.  Unexpectedly, it did
 not pass license review, because it used Geoserver, which is
 GPL-licensed.  Since Mapserver has a more permissive license, and is also
 WMS-compatible, the decision was made to switch to Mapserver.  It now
 falls to me, as the junior developer, to do a last-minute switchover. 
 Unfortunately I come to this task knowing nothing about either Geoserver
 *or* Mapserver.
 
 After some difficulty I succeeded in getting Mapserver running on our
 existing Tomcat server, but I have not been able to figure out how to
 convert the Geoserver data.  I have made some encouraging steps on the
 Mapserver tutorial but I still know nothing about Geoserver, and I am
 running out of time.  I need to solve this problem by the end of this
 week
 if possible, or by the end of next week at the absolute latest.
 
 
 So, I have two questions:
 
 1) Is there a utility I could download that can convert a Geoserver
 installation to Mapserver?
 
 -- or --
 
 2) I *think* (crossing fingers) that the only thing I need to do, on the
 application side, is to convert the following Javascript call...
 
 var wms = new OpenLayers.Layer.WMS(World, geoserver/wms?service=wms,
 {layers: 'countries', bgcolor: 0x55});
 
 ...into its equivalent Mapserver call.  There are four countries.* files
 in the geoserver repository:
 
 countries.dbf
 countries.prj
 countries.shp
 countries.shx
 
 How do I create countries.map to serve these files, and what mapserv.exe
 call should I use?
 
 
 Many thanks for any and all assistance.
 
 Justin
 
 
  
 ___
 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/help-with-converting-Geoserver-site-to-Mapserver-tp20919019p20921592.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
 
 

-- 
View this message in context: 
http://www.nabble.com/help-with-converting-Geoserver-site-to-Mapserver-tp20919019p20934362.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] displaying line starting and ending points

2008-12-10 Thread Raivo Alla
Hello,

I have a question concerning how to draw starting and ending points of
line features.
One option is to create a separate points layer in ArcGIS, where all
the starting and ending points of lines are in.
But is' t there some better solution or workaround how to get things done ?


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


Re: [mapserver-users] displaying line starting and ending points

2008-12-10 Thread José María Michia
Hello,

2008/12/10 Raivo Alla [EMAIL PROTECTED]:
 Hello,

 I have a question concerning how to draw starting and ending points of
 line features.
 One option is to create a separate points layer in ArcGIS, where all
 the starting and ending points of lines are in.
 But is' t there some better solution or workaround how to get things done ?

Using Postgis as data store, let you get the start and end points
from line geometry with something like:

DATA geom from (SELECT oid,StartPoint(the_geom) FROM line_layer) as
foo using unique oid using SRID=-1

And for end points:

DATA geom from (SELECT oid,EndPoint(the_geom) FROM line_layer) as foo
using unique oid using SRID=-1

See:

http://postgis.refractions.net/documentation/manual-1.3/ch06.html#id2572496

I do not know ArcGIS. Maybe there is something similar to this.

Saludos
José María



 Humbly yours,
 Raivo
 ___
 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] how to throw a custom ExceptionReport

2008-12-10 Thread Charlton Galvarino
Hi, all.  I intercept WMS calls on a regular basis using Perl CGI and a final 
print redirect('mapserv?...'); to actually send the WMS request along.

I have the case where I'd like to throw a custom ExceptionReport, but I haven't 
had much luck so far in getting mapserver not to misunderstand it and throw its 
own WMS ServiceException.

What I'm trying to do is to communicate to the user, Hey, you've asked for a 
file I don't have.

So what I have is an incoming WMS request.  I snag the request, try to find a 
matching file.  If I find it, great, I send the image generation request along 
and pass it back thru.  If it doesn't, I'd like to spit out the XML message.

I copied the structure of a mapserver msg and tried making it my own.

print $query-header('text/xml');
print EOH;
?xml version='1.0' encoding=ISO-8859-1 standalone=no ?
!DOCTYPE ServiceExceptionReport SYSTEM 
http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd;
ServiceExceptionReport version=1.1.1
ServiceException
Sorry, Charlie, you're out of luck.
/ServiceException
/ServiceExceptionReport
EOH
exit;

But I think I'm confusing myself of how my error messages interface w/ 
mapserver's.

Thanks for any advice.




Charlton Galvarino
1 (803) 233-6205 : voice
1 (803) 223-9579 :   fax
[EMAIL PROTECTED]

P.O. Box 50960
Columbia, SC 29250

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


RE: [mapserver-users] how to throw a custom ExceptionReport

2008-12-10 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Charlton Galvarino
 Sent: Wednesday, 10 December 2008 11:36
 To: Mapserver Users (mapserver-users@lists.osgeo.org)
 Subject: [mapserver-users] how to throw a custom ExceptionReport
 
 Hi, all.  I intercept WMS calls on a regular basis using Perl 
 CGI and a final print redirect('mapserv?...'); to actually 
 send the WMS request along.
 
 I have the case where I'd like to throw a custom 
 ExceptionReport, but I haven't had much luck so far in 
 getting mapserver not to misunderstand it and throw its own 
 WMS ServiceException.
 
 What I'm trying to do is to communicate to the user, Hey, 
 you've asked for a file I don't have.
 
 So what I have is an incoming WMS request.  I snag the 
 request, try to find a matching file.  If I find it, great, I 
 send the image generation request along and pass it back 
 thru.  If it doesn't, I'd like to spit out the XML message.
 
 I copied the structure of a mapserver msg and tried making it my own.
 
 print $query-header('text/xml');
 print EOH;
 ?xml version='1.0' encoding=ISO-8859-1 standalone=no ? 
 !DOCTYPE ServiceExceptionReport SYSTEM 
 http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd;
 ServiceExceptionReport version=1.1.1 ServiceException 
 Sorry, Charlie, you're out of luck.
 /ServiceException
 /ServiceExceptionReport
 EOH
 exit;
 
 But I think I'm confusing myself of how my error messages 
 interface w/ mapserver's.
 

You can use Perl mapscript WxS to intercept and return a custom
exception.  Check out
http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript for info and
examples.

Hope this helps.

..Tom

 Thanks for any advice.
 
 
 
 
 Charlton Galvarino
 1 (803) 233-6205 : voice
 1 (803) 223-9579 :   fax
 [EMAIL PROTECTED]
 
 P.O. Box 50960
 Columbia, SC 29250
 
 ___
 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] displaying line starting and ending points

2008-12-10 Thread Raivo Alla
Thank you Thomas and thank you José María (I'll try something similar
with ArcSDE soon).


Almost happy,
Raivo
On Wed, Dec 10, 2008 at 5:04 PM, thomas bonfort
[EMAIL PROTECTED] wrote:
 a couple of links:

 http://trac.osgeo.org/mapserver/browser/trunk/msautotest/misc/rfc48.map
 http://trac.osgeo.org/mapserver/browser/trunk/msautotest/misc/expected/rfc48.png


 On Wed, Dec 10, 2008 at 16:02, thomas bonfort [EMAIL PROTECTED] wrote:
 rfc48 has just entered the mapserver trunk, and will be present in 5.4

 to apply a style block to just the start point, you'd use something like

 STYLE
  GEOMTRANSFORM start
  SYMBOL mysymbol
  SIZE 
  ANGLE AUTO #to orient the symbol along the first segment
 END

 you also get the end and vertices geomtransform to apply the style
 to last or intermediate points of the line.

 cheers,
 thomas

 On Wed, Dec 10, 2008 at 15:44, José María Michia
 [EMAIL PROTECTED] wrote:
 Hello,

 2008/12/10 Raivo Alla [EMAIL PROTECTED]:
 Hello,

 I have a question concerning how to draw starting and ending points of
 line features.
 One option is to create a separate points layer in ArcGIS, where all
 the starting and ending points of lines are in.
 But is' t there some better solution or workaround how to get things done ?

 Using Postgis as data store, let you get the start and end points
 from line geometry with something like:

 DATA geom from (SELECT oid,StartPoint(the_geom) FROM line_layer) as
 foo using unique oid using SRID=-1

 And for end points:

 DATA geom from (SELECT oid,EndPoint(the_geom) FROM line_layer) as foo
 using unique oid using SRID=-1

 See:

 http://postgis.refractions.net/documentation/manual-1.3/ch06.html#id2572496

 I do not know ArcGIS. Maybe there is something similar to this.

 Saludos
 José María



 Humbly yours,
 Raivo
 ___
 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] how to throw a custom ExceptionReport

2008-12-10 Thread Charlton Galvarino
Tom, I've thought about this long and hard, and I can't wrap my head around it.

 You can use Perl mapscript WxS to intercept and return a custom
 exception.  Check out
 http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript for info and
 examples.

It looks like those examples are doing what I'm doing in the end . . . dumping 
out XML.  But perhaps what I need accomplished is a bit trickier?  I don't 
think I explained in enough detail what I'm doing.

I have a .map that contains something like:

# demo.map
  LAYER
NAME wind_wave_period_and_direction
PROJECTION
  init=epsg:4269
END
TYPE RASTER
STATUS OFF
CONNECTION http://localhost/viz;
CONNECTIONTYPE WMS
METADATA
  ows_title   wind_wave_period_and_direction
  wms_extent  -100 5 -60 50
  wms_srs EPSG:4269
  wms_nameww3dir_info
  wms_server_version  1.1.1
  wms_format  image/png
  wms_connectiontimeout 90
END

So what I'm really doing is a cascade WMS request because I'm asking that .amp 
for the wind_wave_period_and_direction layer.  
http://localhost/mapserv?map=demo.map.

The thing that I need to throw the error is the viz CGI in the CONNECTION 
string above.

So perhaps my question boils down to . . .

What could viz spit out so that this WMS request would know it sees an error 
via something like EXCEPTIONS=application/vnd.ogc.se_inimage?  What I'm getting 
now, instead, is the MapServer error saying that the WMS returned an XML 
exception.  Well, yes, it did -- but I want to SEE it!  :)

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


RE: [mapserver-users] how to throw a custom ExceptionReport

2008-12-10 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: Charlton Galvarino [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, 10 December 2008 14:52
 To: Kralidis,Tom [Ontario]; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] how to throw a custom ExceptionReport
 
 Tom, I've thought about this long and hard, and I can't wrap 
 my head around it.
 
  You can use Perl mapscript WxS to intercept and return a custom 
  exception.  Check out 
  http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript for info and 
  examples.
 
 It looks like those examples are doing what I'm doing in the 
 end . . . dumping out XML.  But perhaps what I need 
 accomplished is a bit trickier?  I don't think I explained in 
 enough detail what I'm doing.
 
 I have a .map that contains something like:
 
 # demo.map
   LAYER
 NAME wind_wave_period_and_direction
 PROJECTION
   init=epsg:4269
 END
 TYPE RASTER
 STATUS OFF
 CONNECTION http://localhost/viz;
 CONNECTIONTYPE WMS
 METADATA
   ows_title   wind_wave_period_and_direction
   wms_extent  -100 5 -60 50
   wms_srs EPSG:4269
   wms_nameww3dir_info
   wms_server_version  1.1.1
   wms_format  image/png
   wms_connectiontimeout 90
 END
 
 So what I'm really doing is a cascade WMS request because I'm 
 asking that .amp for the wind_wave_period_and_direction 
 layer.  http://localhost/mapserv?map=demo.map.
 
 The thing that I need to throw the error is the viz CGI in 
 the CONNECTION string above.
 
 So perhaps my question boils down to . . .
 
 What could viz spit out so that this WMS request would know 
 it sees an error via something like 
 EXCEPTIONS=application/vnd.ogc.se_inimage?  What I'm getting 
 now, instead, is the MapServer error saying that the WMS 
 returned an XML exception.  Well, yes, it did -- but I want 
 to SEE it!  :)
 

Looks like Charlton wants to show the ExceptionText from a remote WMS's
service exception.

I'm not sure you can do this as it stands right now without some custom
work.  Options/comments:

- you'd have to ensure the remote WMS support application/vnd.ogc.se_xml
- can you catch an error when doing a remote WMS request from the
mapscript object model?

Others may have better ideas.

Having said this, I think this would be a valuable enhancement to the
codebase, i.e. allowing to show cascaded ExceptionReport XML.  The
ExceptionReport XML model allows for multiplicitity of Exception
elements, so we could stack these to show the generic MapServer error,
as well as the cascaded, say, WMS Exception/ExceptionText.

..Tom


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


Re: [mapserver-users] Polygon filled and with an image in the center ?

2008-12-10 Thread Steve Lime
With 5.2 and earlier you can't do this with one layer. You have to use one 
polygon layer
and one annotation layer.

The next version will allow these types of transformations at the style layer 
(see the recent
discussion on end points). The code is in the main trunk if you're feeling 
adventuresome.

Steve

 On 12/9/2008 at 9:44 AM, in message
[EMAIL PROTECTED], Carlos Ruiz
[EMAIL PROTECTED] wrote:
 Hi list,
 
 Does someone knows how to fill a polygon and put an image in the centroid 
 within the same 
 layer ?
 
 Thanks in advance
 
 IC Carlos Ruiz 
 
 
   

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


[mapserver-users] Parsing Mapserver Logs for usage stats

2008-12-10 Thread Douville, Michelle R ILMB:EX
Has anyone written a script/application to parse the mapserver logs for
summary usage stats and average time per layer?

 

 

 

Michelle Douville 

GeoBC Infrastructure Services Branch

Integrated Land Management Bureau

Ministry of Agriculture  Lands

 

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


Re: [MAPSERVER-USERS] help with converting Geoserver site to Mapserver

2008-12-10 Thread Justin Bailey
Mr. Kristensen,

Brilliant!  That was exactly what I needed.  A correctly written mapfile was 
the last remaining major obstacle, and your installation helped me get through 
that as well as a bunch of other minor problems.  Thanks so much!

I will also be checking out the links and recommendations from other people in 
this thread, since I have a small bit of time remaining on this task.  Many 
thanks.

Justin






From: Pål Kristensen [EMAIL PROTECTED]
To: mapserver-users@lists.osgeo.org
Sent: Wednesday, December 10, 2008 7:28:05 AM
Subject: Re: [MAPSERVER-USERS] help with converting Geoserver site to Mapserver


Hi Justin!

I've recently uploaded (to YouSendIt) a ms4w archive with a predefined WMS
service based on the countries dataset (which is included in my archive).
Hope that it helps you in setting up your web applications.

Regards,
Pål Kristensen


Justin Bailey-3 wrote:
 
 Hi Mr. Kristensen,
 
 Thank you very much for you offer; I would greatly appreciate your help.
 
 The ZIP containing the shape file and other data is over 15 MB, so I will
 upload it using YouSendIt right after sending this post.  The coordinate
 system is standard latitude/longitude; no need for MGRS or UTM or anything
 fancy.  The map should cover the entire globe..  Basic styling is fine;
 and the shape file should already contain the country boundaries.
 
 Justin
 
 P.S. To the others on this thread -- I feel I should correct a
 misconception.  I have already invested about three days in this
 project, one of which was spent just getting mapserv.exe to run
 under CGI.  I did not run to the mailing list as my first recourse; I am a
 firm believer that a person should put forth a best-effort attempt before
 asking for help.
 
  
 
 
 From: Pål Kristensen [EMAIL PROTECTED]
 To: mapserver-users@lists.osgeo.org
 Sent: Tuesday, December 9, 2008 2:20:39 PM
 Subject: Re: [MAPSERVER-USERS] help with converting Geoserver site to
 Mapserver
 
 
 Hi!
 
 If you could provide the shape file, I could set up a complete and working
 MapServer for Windows installation that only needs unzipping to the c:\
 drive to work. The Map file will only contain basic styling of the file
 (like boundaries and maybe country names if your dataset contains that
 information). Changing the mapfile to add more complex drawing rules
 should
 be quite easy. Just let me know if you'd like me to help.
 
 It would be a great help if you could provide some information about the
 coordinate system support that you need. 
 
 Regards,
 Pål Kristensen
 Norwegian Mapping and Cadastre Authority
 
 
 
 Justin Bailey-3 wrote:
 
 Hi list,
 
 I hope I can get some assistance on a matter of some urgency.  Our
 organization has been putting the finishing touches on an application
 that
 is supposed to be released by the end of the year.  Unexpectedly, it did
 not pass license review, because it used Geoserver, which is
 GPL-licensed.  Since Mapserver has a more permissive license, and is also
 WMS-compatible, the decision was made to switch to Mapserver.  It now
 falls to me, as the junior developer, to do a last-minute switchover. 
 Unfortunately I come to this task knowing nothing about either Geoserver
 *or* Mapserver.
 
 After some difficulty I succeeded in getting Mapserver running on our
 existing Tomcat server, but I have not been able to figure out how to
 convert the Geoserver data.  I have made some encouraging steps on the
 Mapserver tutorial but I still know nothing about Geoserver, and I am
 running out of time.  I need to solve this problem by the end of this
 week
 if possible, or by the end of next week at the absolute latest.
 
 
 So, I have two questions:
 
 1) Is there a utility I could download that can convert a Geoserver
 installation to Mapserver?
 
 -- or --
 
 2) I *think* (crossing fingers) that the only thing I need to do, on the
 application side, is to convert the following Javascript call...
 
 var wms = new OpenLayers.Layer.WMS(World, geoserver/wms?service=wms,
 {layers: 'countries', bgcolor: 0x55});
 
 ...into its equivalent Mapserver call.  There are four countries.* files
 in the geoserver repository:
 
 countries.dbf
 countries.prj
 countries.shp
 countries.shx
 
 How do I create countries.map to serve these files, and what mapserv.exe
 call should I use?
 
 
 Many thanks for any and all assistance.
 
 Justin
 
 
  
 ___
 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/help-with-converting-Geoserver-site-to-Mapserver-tp20919019p20921592.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] How to add different PIXMAP Symbols for Point Layer based on user click on map

2008-12-10 Thread Venkat Rao Tammineni
Dear All,

 

  How to add different types of PIXMAP Symbols to point layer based on user
click on the map. At present I can able to assign only single pixmap symbol.

 

Below is my code to load single symbol.

 

This is my mapfile code

 

Layer # Layer starts here

  Name PointLayer

 

 # POSTGRE SQL Server Connection


  ConnectionType POSTGIS

  Connection host=localhost dbname=GIS password=administrator user=postgres
port=5432

  Data the_geom from globalnews

 
#===


 

Type POINT

  Status ON

   TEMPLATE query.html  # temporary template file for Query map

End # end of the State Layer





 

 

And here I am loading  C# code

 

public static void LaodStyles(mapObj map,layerObj layer)

{



layer=map.getLayerByName(PoinLayer);

   

symbolObj getSymbol = new symbolObj(Symbol, null);

 

getSymbol.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_PIXMAP;

 

getSymbol.setImagepath(@\RIP\MapFile\round_push_2.gif);

 

getSymbol.sizex = 100;

 

getSymbol.sizey = 100;

 

map.symbolset.appendSymbol(getSymbol);

 

classObj clsObj = new classObj(layer);

 

clsObj.name = test;

 

styleObj symStyle = new styleObj(clsObj);

 

symStyle.symbolname = Symbol;

 

symStyle.symbol = map.symbolset.index(Symbol);

 

symStyle.size = 75; 



}

 

 

 

Please any can help me or at least suggest me something.I am waiting for
your great response.

 

Advanced Thanks.

 

Regards

Venkat.

 

 

 

 

 

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