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


[mapserver-users] symbology showing line direction

2008-02-29 Thread Adam Feidt
  I'm working in a GeoMoose application and trying to display
utility lines with the correct line direction via some arrow character
or symbol.  I've had no luck so far.  I've successfully labeled my lines
with a truetype font character by defining the TEXT  parameter in the
CLASS object.  I've also tried a pixelmap symbol definition using a .gif
file.  Both appear to work at first, but when you compare it to the
actual line direction it isn't true in all cases.  Has anybody found a
way to accomplish this?  I would appreciate if you could send me any
examples.

 

 

Adam M. Feidt

GIS Coordinator

City of Eden Prairie

8080 Mitchell Rd

Eden Prairie, MN 55344

phone# 952-949-8443

fax# 952-949-8334

 

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


Re: [mapserver-users] symbology showing line direction

2008-02-29 Thread G. Allegri
I mean, shapefile is not topological...

2008/2/29, G. Allegri [EMAIL PROTECTED]:
 A question: how can you derive a line direction by a shp without
  having an appropriate attribute?

  Giovanni

  2008/2/29, Adam Feidt [EMAIL PROTECTED]:

 
  
  
  
   David,
  
Below is my Layer definition.  I've tried a truetype symbol and label
   with the ANGLE parameter set to AUTO or FOLLOW.  Neither case pointed out
   actual shapefile line direction.  I'm reading an ESRI shapefile so there is
   no specific column for line direction.
  
  
  
   LAYER
  
   NAME 'Utilities Sanitary Lines'
  
   DATA './UtilitiesSanitaryLines.shp'
  
   TYPE LINE
  
   STATUS DEFAULT
  
   CLASSITEM Function
  
   CLASS
  
 NAME 'Main'
  
 EXPRESSION 
  
 STYLE
  
   COLOR 85 255 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Low Pressure'
  
 EXPRESSION Low Pressure
  
 STYLE
  
   COLOR 255 85 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Sub Trunk'
  
 EXPRESSION Sub Trunk
  
 STYLE
  
   COLOR 85 255 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Trunk'
  
 EXPRESSION Trunk
  
 STYLE
  
   COLOR 112 168 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Force Main'
  
 EXPRESSION forcemain
  
 STYLE
  
   COLOR 255 170 0
  
   SYMBOL 'dashed1'
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Private'
  
 EXPRESSION private
  
 STYLE
  
   COLOR 161 33 240
  
   SYMBOL 'plainline'
  
   SIZE 2
  
 END
  
   END # end class
  
 END #end layer
  
  
  
  
  
  
   Adam M. Feidt
  
   GIS Coordinator
  
   City of Eden Prairie
  
   8080 Mitchell Rd
  
   Eden Prairie, MN 55344
  
   phone# 952-949-8443
  
   fax# 952-949-8334
  
  
  
  
  
   From: Fawcett, David [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 8:19 AM
To: Adam Feidt; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] symbology showing line direction
  
  
  
  
  
   Adam,
  
  
  
  
  
   What does your layer definition, with the classes look like?
  
  
  
  
  
   Does your data have the direction column properly populated for all 
 records?
  
  
  
  
  
  
   David.
  
  
   -Original Message-
From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf
   Of Adam Feidt
Sent: Friday, February 29, 2008 8:14 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] symbology showing line direction
  
 I'm working in a GeoMoose application and trying to display utility
   lines with the correct line direction via some arrow character or symbol.
   I've had no luck so far.  I've successfully labeled my lines with a 
 truetype
   font character by defining the TEXT  parameter in the CLASS object.  
 I've
   also tried a pixelmap symbol definition using a .gif file.  Both appear to
   work at first, but when you compare it to the actual line direction it 
 isn't
   true in all cases.  Has anybody found a way to accomplish this?  I would
   appreciate if you could send me any examples.
  
  
  
  
  
   Adam M. Feidt
  
   GIS Coordinator
  
   City of Eden Prairie
  
   8080 Mitchell Rd
  
   Eden Prairie, MN 55344
  
   phone# 952-949-8443
  
   fax# 952-949-8334
  
  

  ___
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 Paolo Corti
Adam

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

Paolo

On Fri, Feb 29, 2008 at 4:37 PM, Adam Hill [EMAIL PROTECTED] wrote:
 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=SharpMapDownloadId=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
  




-- 
Paolo Corti
http://www.paolocorti.net
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] symbology showing line direction

2008-02-29 Thread Adam Feidt
I was hoping it could read ESRI's From and To node structure much like
ArcMap, but by the sounds of it that isn't possible. Shapefile geometry
is saved in the Shape column, which I'm guessing is useless in
Mapserver.  What you're saying is I need to create an attribute and
populate it with the angle of the line and use that to define my label
direction?  

Adam M. Feidt
GIS Coordinator
City of Eden Prairie
8080 Mitchell Rd
Eden Prairie, MN 55344
phone# 952-949-8443
fax# 952-949-8334


-Original Message-
From: G. Allegri [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 29, 2008 8:57 AM
To: Adam Feidt
Cc: Fawcett, David; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] symbology showing line direction

A question: how can you derive a line direction by a shp without
having an appropriate attribute?

Giovanni

2008/2/29, Adam Feidt [EMAIL PROTECTED]:




 David,

  Below is my Layer definition.  I've tried a truetype symbol and
label
 with the ANGLE parameter set to AUTO or FOLLOW.  Neither case pointed
out
 actual shapefile line direction.  I'm reading an ESRI shapefile so
there is
 no specific column for line direction.



 LAYER

 NAME 'Utilities Sanitary Lines'

 DATA './UtilitiesSanitaryLines.shp'

 TYPE LINE

 STATUS DEFAULT

 CLASSITEM Function

 CLASS

   NAME 'Main'

   EXPRESSION 

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Low Pressure'

   EXPRESSION Low Pressure

   STYLE

 COLOR 255 85 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Sub Trunk'

   EXPRESSION Sub Trunk

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Trunk'

   EXPRESSION Trunk

   STYLE

 COLOR 112 168 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Force Main'

   EXPRESSION forcemain

   STYLE

 COLOR 255 170 0

 SYMBOL 'dashed1'

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Private'

   EXPRESSION private

   STYLE

 COLOR 161 33 240

 SYMBOL 'plainline'

 SIZE 2

   END

 END # end class

   END #end layer






 Adam M. Feidt

 GIS Coordinator

 City of Eden Prairie

 8080 Mitchell Rd

 Eden Prairie, MN 55344

 phone# 952-949-8443

 fax# 952-949-8334





 From: Fawcett, David [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 29, 2008 8:19 AM
  To: Adam Feidt; mapserver-users@lists.osgeo.org
  Subject: RE: [mapserver-users] symbology showing line direction





 Adam,





 What does your layer definition, with the classes look like?





 Does your data have the direction column properly populated for all
records?






 David.


 -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Adam Feidt
  Sent: Friday, February 29, 2008 8:14 AM
  To: mapserver-users@lists.osgeo.org
  Subject: [mapserver-users] symbology showing line direction

   I'm working in a GeoMoose application and trying to display
utility
 lines with the correct line direction via some arrow character or
symbol.
 I've had no luck so far.  I've successfully labeled my lines with a
truetype
 font character by defining the TEXT  parameter in the CLASS object.
I've
 also tried a pixelmap symbol definition using a .gif file.  Both
appear to
 work at first, but when you compare it to the actual line direction it
isn't
 true in all cases.  Has anybody found a way to accomplish this?  I
would
 appreciate if you could send me any examples.





 Adam M. Feidt

 GIS Coordinator

 City of Eden Prairie

 8080 Mitchell Rd

 Eden Prairie, MN 55344

 phone# 952-949-8443

 fax# 952-949-8334


 ___
  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] symbology showing line direction

2008-02-29 Thread G. Allegri
A question: how can you derive a line direction by a shp without
having an appropriate attribute?

Giovanni

2008/2/29, Adam Feidt [EMAIL PROTECTED]:




 David,

  Below is my Layer definition.  I've tried a truetype symbol and label
 with the ANGLE parameter set to AUTO or FOLLOW.  Neither case pointed out
 actual shapefile line direction.  I'm reading an ESRI shapefile so there is
 no specific column for line direction.



 LAYER

 NAME 'Utilities Sanitary Lines'

 DATA './UtilitiesSanitaryLines.shp'

 TYPE LINE

 STATUS DEFAULT

 CLASSITEM Function

 CLASS

   NAME 'Main'

   EXPRESSION 

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Low Pressure'

   EXPRESSION Low Pressure

   STYLE

 COLOR 255 85 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Sub Trunk'

   EXPRESSION Sub Trunk

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Trunk'

   EXPRESSION Trunk

   STYLE

 COLOR 112 168 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Force Main'

   EXPRESSION forcemain

   STYLE

 COLOR 255 170 0

 SYMBOL 'dashed1'

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Private'

   EXPRESSION private

   STYLE

 COLOR 161 33 240

 SYMBOL 'plainline'

 SIZE 2

   END

 END # end class

   END #end layer






 Adam M. Feidt

 GIS Coordinator

 City of Eden Prairie

 8080 Mitchell Rd

 Eden Prairie, MN 55344

 phone# 952-949-8443

 fax# 952-949-8334





 From: Fawcett, David [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 29, 2008 8:19 AM
  To: Adam Feidt; mapserver-users@lists.osgeo.org
  Subject: RE: [mapserver-users] symbology showing line direction





 Adam,





 What does your layer definition, with the classes look like?





 Does your data have the direction column properly populated for all records?






 David.


 -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Adam Feidt
  Sent: Friday, February 29, 2008 8:14 AM
  To: mapserver-users@lists.osgeo.org
  Subject: [mapserver-users] symbology showing line direction

   I'm working in a GeoMoose application and trying to display utility
 lines with the correct line direction via some arrow character or symbol.
 I've had no luck so far.  I've successfully labeled my lines with a truetype
 font character by defining the TEXT  parameter in the CLASS object.  I've
 also tried a pixelmap symbol definition using a .gif file.  Both appear to
 work at first, but when you compare it to the actual line direction it isn't
 true in all cases.  Has anybody found a way to accomplish this?  I would
 appreciate if you could send me any examples.





 Adam M. Feidt

 GIS Coordinator

 City of Eden Prairie

 8080 Mitchell Rd

 Eden Prairie, MN 55344

 phone# 952-949-8443

 fax# 952-949-8334


 ___
  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] symbology showing line direction

2008-02-29 Thread G. Allegri
Adam, you gave me a little doubt abotu shp line directions and Mapserver...

Could you try to use a simble like this?

SYMBOL

NAME arrow
TYPE TRUETYPE
FONT verdana
CHARACTER '\#62;' # don't use the backslash! (the verdana greater
than tag)
FILLED true
ANTIALIAS true
GAP -10 # the negatation tells MapServer to honor the vector
direction when computing the angle

END

and use it in the STYLE of the layer CLASS

Put attention on the GAP parameter

2008/2/29, Adam Feidt [EMAIL PROTECTED]:
 I was hoping it could read ESRI's From and To node structure much like
  ArcMap, but by the sounds of it that isn't possible. Shapefile geometry
  is saved in the Shape column, which I'm guessing is useless in
  Mapserver.  What you're saying is I need to create an attribute and
  populate it with the angle of the line and use that to define my label
  direction?


  Adam M. Feidt
  GIS Coordinator
  City of Eden Prairie
  8080 Mitchell Rd
  Eden Prairie, MN 55344
  phone# 952-949-8443
  fax# 952-949-8334



 -Original Message-
  From: G. Allegri [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 29, 2008 8:57 AM
  To: Adam Feidt
  Cc: Fawcett, David; mapserver-users@lists.osgeo.org
  Subject: Re: [mapserver-users] symbology showing line direction

  A question: how can you derive a line direction by a shp without
  having an appropriate attribute?

  Giovanni

  2008/2/29, Adam Feidt [EMAIL PROTECTED]:
  
  
  
  
   David,
  
Below is my Layer definition.  I've tried a truetype symbol and
  label
   with the ANGLE parameter set to AUTO or FOLLOW.  Neither case pointed
  out
   actual shapefile line direction.  I'm reading an ESRI shapefile so
  there is
   no specific column for line direction.
  
  
  
   LAYER
  
   NAME 'Utilities Sanitary Lines'
  
   DATA './UtilitiesSanitaryLines.shp'
  
   TYPE LINE
  
   STATUS DEFAULT
  
   CLASSITEM Function
  
   CLASS
  
 NAME 'Main'
  
 EXPRESSION 
  
 STYLE
  
   COLOR 85 255 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Low Pressure'
  
 EXPRESSION Low Pressure
  
 STYLE
  
   COLOR 255 85 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Sub Trunk'
  
 EXPRESSION Sub Trunk
  
 STYLE
  
   COLOR 85 255 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Trunk'
  
 EXPRESSION Trunk
  
 STYLE
  
   COLOR 112 168 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Force Main'
  
 EXPRESSION forcemain
  
 STYLE
  
   COLOR 255 170 0
  
   SYMBOL 'dashed1'
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Private'
  
 EXPRESSION private
  
 STYLE
  
   COLOR 161 33 240
  
   SYMBOL 'plainline'
  
   SIZE 2
  
 END
  
   END # end class
  
 END #end layer
  
  
  
  
  
  
   Adam M. Feidt
  
   GIS Coordinator
  
   City of Eden Prairie
  
   8080 Mitchell Rd
  
   Eden Prairie, MN 55344
  
   phone# 952-949-8443
  
   fax# 952-949-8334
  
  
  
  
  
   From: Fawcett, David [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 8:19 AM
To: Adam Feidt; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] symbology showing line direction
  
  
  
  
  
   Adam,
  
  
  
  
  
   What does your layer definition, with the classes look like?
  
  
  
  
  
   Does your data have the direction column properly populated for all
  records?
  
  
  
  
  
  
   David.
  
  
   -Original Message-
From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf
   Of Adam Feidt
Sent: Friday, February 29, 2008 8:14 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] symbology showing line direction
  
 I'm working in a GeoMoose application and trying to display
  utility
   lines with the correct line direction via some arrow character or
  symbol.
   I've had no luck so 

Re: [mapserver-users] symbology showing line direction

2008-02-29 Thread G. Allegri
About GAP: 
http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pages

2008/2/29, G. Allegri [EMAIL PROTECTED]:
 Adam, you gave me a little doubt abotu shp line directions and Mapserver...

  Could you try to use a simble like this?

  SYMBOL

 NAME arrow
 TYPE TRUETYPE
 FONT verdana
 CHARACTER '\#62;' # don't use the backslash! (the verdana greater
  than tag)
 FILLED true
 ANTIALIAS true
 GAP -10 # the negatation tells MapServer to honor the vector
  direction when computing the angle

  END

  and use it in the STYLE of the layer CLASS

  Put attention on the GAP parameter


  2008/2/29, Adam Feidt [EMAIL PROTECTED]:
   I was hoping it could read ESRI's From and To node structure much like
ArcMap, but by the sounds of it that isn't possible. Shapefile geometry
is saved in the Shape column, which I'm guessing is useless in
Mapserver.  What you're saying is I need to create an attribute and
populate it with the angle of the line and use that to define my label
direction?
  
  
Adam M. Feidt
GIS Coordinator
City of Eden Prairie
8080 Mitchell Rd
Eden Prairie, MN 55344
phone# 952-949-8443
fax# 952-949-8334
  
  
  
   -Original Message-
From: G. Allegri [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 8:57 AM
To: Adam Feidt
Cc: Fawcett, David; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] symbology showing line direction
  
A question: how can you derive a line direction by a shp without
having an appropriate attribute?
  
Giovanni
  
2008/2/29, Adam Feidt [EMAIL PROTECTED]:




 David,

  Below is my Layer definition.  I've tried a truetype symbol and
label
 with the ANGLE parameter set to AUTO or FOLLOW.  Neither case pointed
out
 actual shapefile line direction.  I'm reading an ESRI shapefile so
there is
 no specific column for line direction.



 LAYER

 NAME 'Utilities Sanitary Lines'

 DATA './UtilitiesSanitaryLines.shp'

 TYPE LINE

 STATUS DEFAULT

 CLASSITEM Function

 CLASS

   NAME 'Main'

   EXPRESSION 

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Low Pressure'

   EXPRESSION Low Pressure

   STYLE

 COLOR 255 85 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Sub Trunk'

   EXPRESSION Sub Trunk

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Trunk'

   EXPRESSION Trunk

   STYLE

 COLOR 112 168 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Force Main'

   EXPRESSION forcemain

   STYLE

 COLOR 255 170 0

 SYMBOL 'dashed1'

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Private'

   EXPRESSION private

   STYLE

 COLOR 161 33 240

 SYMBOL 'plainline'

 SIZE 2

   END

 END # end class

   END #end layer






 Adam M. Feidt

 GIS Coordinator

 City of Eden Prairie

 8080 Mitchell Rd

 Eden Prairie, MN 55344

 phone# 952-949-8443

 fax# 952-949-8334





 From: Fawcett, David [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 29, 2008 8:19 AM
  To: Adam Feidt; mapserver-users@lists.osgeo.org
  Subject: RE: [mapserver-users] symbology showing line direction





 Adam,





 What does your layer definition, with the classes look like?

 

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

2008-02-29 Thread Tamas Szekeres
Tim,

I think this article makes sense, but there are a number of advantages
of the 'BSD-ing' either. Most of the commercial users wouldn't want to
choose this project if it was GPL-d so they would want to reinvent the
wheels instead of suggesting good enhancements for the project. This
option has a more powerful influence to collect a fair amount of users
getting involved and keep the things alive and prevent from creating
duplicated solutions.

On the other hand I'm not totally sure in that every user is
completely aware of the requirements and the restrictions of the
actual open source license they use.

Best regards,

Tamas



2008/2/29, Tim Bowden [EMAIL PROTECTED]:

  On Fri, 2008-02-29 at 13:32 +0100, Tamas Szekeres wrote:
   I'm not aware of any compelling reason to switch to a more restrictive
   license.


 Sure, the current licensing arrangement seems to be working well for
  mapserver, though there are sometimes reasons to be less permissive.  I
  speculated about this the other day in a different context
  
 (http://blog.mapforge.com.au/index.php/2008/02/27/when-open-source-doesnt-add-up/)
  Perhaps I'm wrong.  I'd like to get others thoughts on this /without/ 
 starting a flame war (off list if you like; It's not mapserver specific).  I 
 realise there can be strong feelings about licensing but so long as it's open 
 source I'm not too worried.


   However I personally don't think it's derogatory for a
   project to expose which open source libraries it depends on.


 Of course this is always nice, though the choice has been left up to
  downstream users/devs.  If they did give credit, perhaps it would
  encourage more participation in mapserver and in the long term they'd
  benefit from having a stronger foundation on which to build.  After all,
  the cost of acknowledgement is about as low as you can get.

  Regards,

 Tim Bowden


  
   Best regards,
  
   Tamas
  
  
   2008/2/29, Tim Bowden [EMAIL PROTECTED]:
   
 On Fri, 2008-02-29 at 09:52 +0100, Milo van der Linden wrote:
  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. ;-)
   
   
stirring the pot
 I thought mapserver was distributed under a license that specifically
 and deliberately allowed this.  If this is considered undesirable,
 shouldn't it be released under a less permissive license?
   
   
 Tim Bowden
   
   
 
  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
   
 ___
 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=SharpMapDownloadId=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 Daniel Morissette

Gerry Creager wrote:

Daniel,

Might someone forward a request like this to them as a gentle prod?



Could be an idea. But they must have at least one person on staff 
listening to this list to stay up to date with releases, known bugs, 
FAQs, etc... so in some way this thread *is* a gentle prod... the ball 
is in their camp now.


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
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 Frank Warmerdam

Tim Bowden wrote:

On Fri, 2008-02-29 at 13:32 +0100, Tamas Szekeres wrote:

I'm not aware of any compelling reason to switch to a more restrictive
license. 


Sure, the current licensing arrangement seems to be working well for
mapserver, though there are sometimes reasons to be less permissive.  I
speculated about this the other day in a different context
(http://blog.mapforge.com.au/index.php/2008/02/27/when-open-source-doesnt-add-up/)
 Perhaps I'm wrong.  I'd like to get others thoughts on this /without/ starting 
a flame war (off list if you like; It's not mapserver specific).  I realise 
there can be strong feelings about licensing but so long as it's open source 
I'm not too worried.


Tim,

My attempts to register with your blog seem to have failed, so I'm going to
reply briefly here.

In referencing MySQL as an example of the GPL being a strongly license, you
need to be clear that MySQL AB's value as a company is based on the fact that
they can offer non-GPL licensing to licensors of MySQL because they retain
copyright ownership of all the MySQL code.  That is, they have retained a
degree of control of the project that no-one could have over MapServer at
this point and they use that control to squeeze money out of folks not
willing to comply with GPL terms.

That is a reasonable model for open source business, but it can't work for
MapServer at this point and in any event I find it the antithesis of building
a community of equality where all participants can potentially have equal
influence if they are willing to contribute equally.

Beyond the fact that it would be impractical to change now, I think the
current permissive license for MapServer has been one of it's secrets to
success.  Companies building products like MapDotNet on MapServer is a
good thing, and with a bit of encouragement such organizations are generally
willing to contribute to and support MapServer to some degree (as does
already occur in this particular case).

I *do* wish we had a way to turn interest in supporting into direct
maintenance on the core via a sponsorship program as has worked fairly
well for GDAL.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| President OSGeo, http://osgeo.org

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


RE: [mapserver-users] symbology showing line direction

2008-02-29 Thread Fawcett, David
Adam, 
 
I am quite sure that MapServer is not going to read the line topology.
To display direction, you will need to add an attribute for flow
direction and populate it.  You would then use an expression for each
class that combined both the pipe type and the direction.  (Maybe use -1
and 1 for values?)
 
Something like ('[FUNCTION]' = 'Main' AND [DIRECTION] = -1)   
 
I haven't tested this.  Note the difference in quoting for string fields
vs number fields.  
 
David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Feidt
Sent: Friday, February 29, 2008 8:43 AM
To: Fawcett, David; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] symbology showing line direction



David,

 Below is my Layer definition.  I've tried a truetype symbol
and label with the ANGLE parameter set to AUTO or FOLLOW.  Neither case
pointed out actual shapefile line direction.  I'm reading an ESRI
shapefile so there is no specific column for line direction.

 

LAYER

NAME 'Utilities Sanitary Lines'

DATA './UtilitiesSanitaryLines.shp'

TYPE LINE

STATUS DEFAULT

CLASSITEM Function

CLASS

  NAME 'Main'

  EXPRESSION 

  STYLE

COLOR 85 255 0

SYMBOL plainline

SIZE 2

  END

END # end class

CLASS

  NAME 'Low Pressure'

  EXPRESSION Low Pressure

  STYLE

COLOR 255 85 0

SYMBOL plainline

SIZE 2

  END

END # end class

CLASS

  NAME 'Sub Trunk'

  EXPRESSION Sub Trunk

  STYLE

COLOR 85 255 0

SYMBOL plainline

SIZE 2

  END

END # end class

CLASS

  NAME 'Trunk'

  EXPRESSION Trunk

  STYLE

COLOR 112 168 0

SYMBOL plainline

SIZE 2

  END

END # end class

CLASS

  NAME 'Force Main'

  EXPRESSION forcemain

  STYLE

COLOR 255 170 0

SYMBOL 'dashed1'

SIZE 2

  END

END # end class

CLASS

  NAME 'Private'

  EXPRESSION private

  STYLE

COLOR 161 33 240

SYMBOL 'plainline'

SIZE 2

  END

END # end class

  END #end layer

 

 

Adam M. Feidt

GIS Coordinator

City of Eden Prairie

8080 Mitchell Rd

Eden Prairie, MN 55344

phone# 952-949-8443

fax# 952-949-8334

 

From: Fawcett, David [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 29, 2008 8:19 AM
To: Adam Feidt; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] symbology showing line direction

 

Adam, 

 

What does your layer definition, with the classes look like?

 

Does your data have the direction column properly populated for
all records?  

 

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Feidt
Sent: Friday, February 29, 2008 8:14 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] symbology showing line
direction

  I'm working in a GeoMoose application and trying
to display utility lines with the correct line direction via some arrow
character or symbol.  I've had no luck so far.  I've successfully
labeled my lines with a truetype font character by defining the TEXT 
parameter in the CLASS object.  I've also tried a pixelmap symbol
definition using a .gif file.  Both appear to work at first, but when
you compare it to the actual line direction it isn't true in all cases.
Has anybody found a way to accomplish this?  I would appreciate if you
could send 

Re: [mapserver-users] Occasional Contract work?

2008-02-29 Thread Frank Warmerdam

Mark White wrote:

Hi

Our company seeks the occasional services of a mapserver consultant to help
install/tweak mapserver installations. We are in Brisbane, Australia.

PHP skills would be essential, PostgreSQL skills advantageous.

If anyone is interested, I will ask you to drop me a note off-list outlining
experience, availability, hourly/daily rates etc.


Mark,

You might also find that the OSGeo Service Provider Directory is a useful
mechanism to identify potential consultants.

  http://www.osgeo.org/spd_help

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| President OSGeo, http://osgeo.org

___
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] postgres transaction warnings

2008-02-29 Thread Paul Ramsey
Rich,
As you noted in an earlier message, there is nothing actually being
*done* to the database, so there is no need to COMMIT. If we didn't
need to BEGIN to get our hands on a binary cursor, we wouldn't do it.
The connection close in the end is our implicit COMMIT.
Paul

On 2/28/08, rich.fromm [EMAIL PROTECTED] wrote:


  So I think that maybe effectively answers my question (2), why transactions.

  But I'm still baffled by the rest of (1), why there are no COMMIT or END
  statements.  Although the patch for bug 2497 does seem to have gotten rid of
  my warning messages.

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


Re: [MAPSERVER-USERS] postgres transaction warnings

2008-02-29 Thread rich.fromm


Paul Ramsey-3 wrote:
 
 there is nothing actually being
 *done* to the database, so there is no need to COMMIT. If we didn't
 need to BEGIN to get our hands on a binary cursor, we wouldn't do it.
 The connection close in the end is our implicit COMMIT.
 

Ok, but is it maybe just considered bad form to have a BEGIN without a
COMMIT?  I don't know enough about SQL to say whether or not this is the
case.  Would it hurt things at all to include the COMMIT?  At the very
least, maybe a comment in mappostgis.c clarifying why a COMMIT is not
necessary might clarify things a bit.  The comment about why the BEGIN is
needed is indeed helpful.  (Although only located at 1 of the 5 BEGIN
instances, but perhaps that's sufficient.)

- Rich

-- 
View this message in context: 
http://www.nabble.com/postgres-transaction-warnings-tp15749333p15765216.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] Re: Symbol placement inconsistency

2008-02-29 Thread Hal Mueller
Dave, it looks to me like you're seeing effects of collision avoidance  
in label cacheing.  I would expect those artifacts to be more extreme  
near the edges  of the images.


I wonder what would happen if you greatly increased your edge buffer.   
If you need a 4096x4096 tile, then produce a 12288x12288 (3x3) image  
and carve out the central 1/9.  That would reduce the artifacts but  
can't be guaranteed to eliminate them.  I think the only guarantee  
would be to explicitly specify label locations, and turn off the label  
collision avoidance.


I've copied this thread over to the new list, as the lists.umn.edu  
address's demise is imminent.


Hal

On Feb 29, 2008, at 3:52 AM, Dave Weaver wrote:

MapServer doesn't seem to be entirely consistent with placement of  
symbols.


Consider these 2 overlapping images:

http://www.screenshots.cc/view_image/5437e415/thayer-east.png
http://www.screenshots.cc/view_image/b0aae448/thayer-west.png

This is causing me problems.  I need to generate lots of map tiles  
covering
a large area. These tiles need to be able to be displayed next to  
each other
seamlessly. To avoid partial symbols on the edge of tiles, I'm  
rendering
tiles too large then trimming off a 256-pixel border around each.  
However,
when symbols are plotted in different places on adjacent tiles, I'm  
getting
partial symbols around the edge of my trimmed tiles which *don't*  
have a
corresponding partial symbol on the adjacent tile. (if you see what  
I mean).


I'm using MapServer 5.0.0 from the ms4w package.

What can I do to cure my problem?

Thanks,
Dave.


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


RE: [mapserver-users] symbology showing line direction

2008-02-29 Thread Adam Feidt
Yes it does work.  The negative GAP value seems to be the solution.  I
did not compare it extensively, but the areas I checked do appear
correct.

Adam M. Feidt
GIS Coordinator
City of Eden Prairie
8080 Mitchell Rd
Eden Prairie, MN 55344
phone# 952-949-8443
fax# 952-949-8334


-Original Message-
From: G. Allegri [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 29, 2008 11:49 AM
To: Fawcett, David
Cc: Adam Feidt; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] symbology showing line direction

David, I had your opinion too, but Adam seems to have solved it. Adam,
do you confirm that you can display correctly directions?

2008/2/29, Fawcett, David [EMAIL PROTECTED]:


 Adam,

 I am quite sure that MapServer is not going to read the line topology.
To
 display direction, you will need to add an attribute for flow
direction and
 populate it.  You would then use an expression for each class that
combined
 both the pipe type and the direction.  (Maybe use -1 and 1 for
values?)

 Something like ('[FUNCTION]' = 'Main' AND [DIRECTION] = -1)

 I haven't tested this.  Note the difference in quoting for string
fields vs
 number fields.

 David.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Adam Feidt
 Sent: Friday, February 29, 2008 8:43 AM
 To: Fawcett, David; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] symbology showing line direction




 David,

  Below is my Layer definition.  I've tried a truetype symbol and
label
 with the ANGLE parameter set to AUTO or FOLLOW.  Neither case pointed
out
 actual shapefile line direction.  I'm reading an ESRI shapefile so
there is
 no specific column for line direction.



 LAYER

 NAME 'Utilities Sanitary Lines'

 DATA './UtilitiesSanitaryLines.shp'

 TYPE LINE

 STATUS DEFAULT

 CLASSITEM Function

 CLASS

   NAME 'Main'

   EXPRESSION 

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Low Pressure'

   EXPRESSION Low Pressure

   STYLE

 COLOR 255 85 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Sub Trunk'

   EXPRESSION Sub Trunk

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Trunk'

   EXPRESSION Trunk

   STYLE

 COLOR 112 168 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Force Main'

   EXPRESSION forcemain

   STYLE

 COLOR 255 170 0

 SYMBOL 'dashed1'

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Private'

   EXPRESSION private

   STYLE

 COLOR 161 33 240

 SYMBOL 'plainline'

 SIZE 2

   END

 END # end class

   END #end layer






 Adam M. Feidt

 GIS Coordinator

 City of Eden Prairie

 8080 Mitchell Rd

 Eden Prairie, MN 55344

 phone# 952-949-8443

 fax# 952-949-8334





 From: Fawcett, David [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 29, 2008 8:19 AM
 To: Adam Feidt; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] symbology showing line direction




 Adam,





 What does your layer definition, with the classes look like?





 Does your data have the direction column properly populated for all
records?






 David.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Adam Feidt
 Sent: Friday, February 29, 2008 8:14 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] symbology showing line direction

   I'm working in a GeoMoose application and trying to display
utility
 lines with the correct line direction via some arrow character or
symbol.
 I've had no luck so far.  I've successfully labeled my lines with a
truetype
 font character by defining the TEXT  parameter in the CLASS object.
I've
 also tried a pixelmap symbol definition using a .gif file.  Both
appear to
 work at first, but when you compare it to the actual line direction it
isn't
 true in all cases.  Has anybody found a way to accomplish this?  I
would
 appreciate if you could send me any examples.





 Adam M. Feidt

 

[mapserver-users] Re: [UMN_MAPSERVER-USERS] Mapscript Question

2008-02-29 Thread Paul Moen

Each shape can be projected using the following.

The shape¹s current projection.  (epsg 2266 in this case.)
$insridtext=proj=lcc,lat_1=47.48,lat_2=46.18,lat_0=
45.66,lon_0=-100.5,x_0=59.976,y_0=0,ellps=GRS80,datum=NA
D83,to_meter=0.3048,no_defs;
The projection you want the shape to be.  (epsg 4269 in this case)
$outsridtext=+proj=longlat +ellps=GRS80 +datum=NAD83 +no_defs;

$projin = ms_newProjectionObj($insridtext);
$projout = ms_newProjectionObj($outsridtext);
$shptemp-project($projin,$projout);

On 2/29/08 12:33 PM, Pearson, Gregory [EMAIL PROTECTED]
wrote:

 Thanks, Paul. I took a look and what I have found is that most of the
 information available to me through the shape object is defined in the *dbf
 file. But, I have another issue you may be able to help with. Have you done
 projections?
  
 
 
 From: Paul Moen [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 29, 2008 10:19 AM
 To: Pearson, Gregory; mapserver-users@lists.osgeo.org
 Subject: Re: [UMN_MAPSERVER-USERS] Mapscript Question
  
 It will give you the bounding coordinates of the all the shapes in your
 result.  
 
 We use it to dynamically zoom in on the results from our query.  It works fine
 for our purposes.
 
 Keep in mind that you can get most everything you need from shape objects that
 the loop iterates through.  You can parse out the lines, get the wkt, centroid
 or whatever you want.
 
 Check out 
 
http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/shapeob
j
 
 Hope this helps,
 
 Paul
 
 On 2/29/08 7:54 AM, Pearson, Gregory [EMAIL PROTECTED]
 wrote:
 Thanks, Paul. I was hoping the API provided this function. So, you¹re saying I
 can derive the coordinates from the min/max X and Y points? Have you
 implemented this?
  
 Greg
  
 
 
 From: Paul Moen [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 28, 2008 4:16 PM
 To: Pearson, Gregory; [EMAIL PROTECTED]
 Subject: Re: [UMN_MAPSERVER-USERS] Mapscript Question
 
 You could try to use the bounds and loop through the results.
 
 [EMAIL PROTECTED]queryByAttributes($item,$temptest,MS_MULTIPLE);
 if ($test == MS_SUCCESS) {
 $minX=-1;
 $minY=-1;
 $maxX=-1;
 $maxY=-1;
 for ($ind = 0;$ind$qlayer-getNumResults();$ind++) {
 $result = $qlayer-getResult($ind);
 $shpindex = $result-shapeindex;
 $tilindex = $result-tileindex;
 $shptemp = $qlayer-getShape($tilindex,$shpindex);
 $rec = $shptemp-bounds;
 if ($minX == -1 or $minX  $rec-minx)
 $minX=Round($rec-minx);
 if ($minY == -1 or $minY  $rec-miny)
 $minY=Round($rec-miny);
 if ($maxX == -1 or $maxX  $rec-maxx)
 $maxX=Round($rec-maxx);
 if ($maxY == -1 or $maxY  $rec-maxy)
 $maxY=Round($rec-maxy);
 }
 }
 
 On 2/28/08 2:23 PM, Pearson, Gregory [EMAIL PROTECTED]
 wrote:
 I am doing a layer search using the method queryByAttributes and want to know
 if I can get the map coordinates from the result. So far, I haven¹t seen
 anything in the API documentation that supports this. Is this possible?
  
 Greg
 
 
 Paul
 
  
 


Paul T. Moen
[EMAIL PROTECTED]
701-328-2434
701-328-3696 (fax)
ND State Water Commission

___
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 Steve Lime
I agree with Frank. The liberal MapServer license was chosen for a reason. I 
always figured
that to be accepted you had to put out a good product AND it must be easy to 
use with as little
restrictions as possible. I believe that people are generally good and will 
contribute back to the 
project. The incentive to do so is high assuming they want to continue to 
leverage the project 
over time. Merging local changes with new versions of MapServer would be a huge 
pain, so sharing 
makes sense.

IMHO that organizations or individuals that would abuse a project will do so 
regardless of license.

Steve

 On 2/29/2008 at 10:41 AM, in message [EMAIL PROTECTED], Frank
Warmerdam [EMAIL PROTECTED] wrote:
 Tim Bowden wrote:
 On Fri, 2008-02-29 at 13:32 +0100, Tamas Szekeres wrote:
 I'm not aware of any compelling reason to switch to a more restrictive
 license. 
 
 Sure, the current licensing arrangement seems to be working well for
 mapserver, though there are sometimes reasons to be less permissive.  I
 speculated about this the other day in a different context
 
 (http://blog.mapforge.com.au/index.php/2008/02/27/when-open-source-doesnt-add-up/)
  
 Perhaps I'm wrong.  I'd like to get others thoughts on this /without/ 
 starting a flame war (off list if you like; It's not mapserver specific).  I 
 realise there can be strong feelings about licensing but so long as it's open 
 source I'm not too worried.
 
 Tim,
 
 My attempts to register with your blog seem to have failed, so I'm going to
 reply briefly here.
 
 In referencing MySQL as an example of the GPL being a strongly license, you
 need to be clear that MySQL AB's value as a company is based on the fact 
 that
 they can offer non-GPL licensing to licensors of MySQL because they retain
 copyright ownership of all the MySQL code.  That is, they have retained a
 degree of control of the project that no-one could have over MapServer at
 this point and they use that control to squeeze money out of folks not
 willing to comply with GPL terms.
 
 That is a reasonable model for open source business, but it can't work for
 MapServer at this point and in any event I find it the antithesis of 
 building
 a community of equality where all participants can potentially have equal
 influence if they are willing to contribute equally.
 
 Beyond the fact that it would be impractical to change now, I think the
 current permissive license for MapServer has been one of it's secrets to
 success.  Companies building products like MapDotNet on MapServer is a
 good thing, and with a bit of encouragement such organizations are generally
 willing to contribute to and support MapServer to some degree (as does
 already occur in this particular case).
 
 I *do* wish we had a way to turn interest in supporting into direct
 maintenance on the core via a sponsorship program as has worked fairly
 well for GDAL.
 
 Best regards,

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


[mapserver-users] Re: Symbol placement inconsistency

2008-02-29 Thread Steve Lime
The primary thing going on here is that MapServer computes label placement AFTER
features are clipped to the area of interest. It's a necessary step especially 
with
linear features as a single label point doesn't always make sense. Since the 
algorithm places the label at the center of the longest segment the position 
will
often change from map to map with clipped features.

This can cause problems especially with tiled data output (e.g. TileCache or 
Ka-Map)
so a special processing option was put in place in the development version. If 
you 
set:

  PROCESSING 'LABEL_NO_CLIP=1'

MapServer will compute label positions before clipping. I know that it works 
with
polygon data, not sure about linear features.

The metatiling features of TileCache and ka-map to a real good job of minimizing
these problems with linear data.

Steve

 On 2/29/2008 at 1:24 PM, in message
[EMAIL PROTECTED], Hal Mueller
[EMAIL PROTECTED] wrote:
 Dave, it looks to me like you're seeing effects of collision avoidance  
 in label cacheing.  I would expect those artifacts to be more extreme  
 near the edges  of the images.
 
 I wonder what would happen if you greatly increased your edge buffer.   
 If you need a 4096x4096 tile, then produce a 12288x12288 (3x3) image  
 and carve out the central 1/9.  That would reduce the artifacts but  
 can't be guaranteed to eliminate them.  I think the only guarantee  
 would be to explicitly specify label locations, and turn off the label  
 collision avoidance.
 
 I've copied this thread over to the new list, as the lists.umn.edu  
 address's demise is imminent.
 
 Hal
 
 On Feb 29, 2008, at 3:52 AM, Dave Weaver wrote:
 
 MapServer doesn't seem to be entirely consistent with placement of  
 symbols.

 Consider these 2 overlapping images:

 http://www.screenshots.cc/view_image/5437e415/thayer-east.png 
 http://www.screenshots.cc/view_image/b0aae448/thayer-west.png 

 This is causing me problems.  I need to generate lots of map tiles  
 covering
 a large area. These tiles need to be able to be displayed next to  
 each other
 seamlessly. To avoid partial symbols on the edge of tiles, I'm  
 rendering
 tiles too large then trimming off a 256-pixel border around each.  
 However,
 when symbols are plotted in different places on adjacent tiles, I'm  
 getting
 partial symbols around the edge of my trimmed tiles which *don't*  
 have a
 corresponding partial symbol on the adjacent tile. (if you see what  
 I mean).

 I'm using MapServer 5.0.0 from the ms4w package.

 What can I do to cure my problem?

 Thanks,
 Dave.
 
 ___
 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