[mapserver-users] Re: [Info] S-57 nautical map on MapServer

2010-07-26 Thread easyl

Hi,

I just thought that accessing shapefiles with indexing (by shptree) would
give better performance than directly reading S57 (.000) data, therefore I
tried at first converting them in shapefiles. 

I did not run any performance profile, but from my feeling it (with
shapefiles) did better.
Maybe I miss something.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Info-S-57-nautical-map-on-MapServer-tp5329589p5336915.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] FOSS4G registration link

2010-07-26 Thread Rahkonen Jukka
Hi,

Is this the correct link?
https://forms.pacifico-meetings.com/ReservationForm/index.aspx?co=225
It does not work for me.

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


Re: [mapserver-users] Reg:- Connecting Mapserver with Oracle Spatialusing asp.net

2010-07-26 Thread venkat
Dear All,

  Which Mapserver version is supporting Oracle Spatial. I have tried for
Mapserver 5.7.It is saying below message

C:\Program Files\FWTools2.4.7\binmapserv -v
MapServer version 5.7-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=S
VG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER
SUPPORTS=W
MS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=S
OS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS
INPUT=OG
R INPUT=GDAL INPUT=SHAPEFILE

   Please let me know which mapserver version is supporting Oracle Spatial
or at least how to use OGR connector for oracle.I tried both OGR and Oracle
Native connectors.

1)  If  i test in Oracle Spatial Native connector I am getting error called
 Version is not supported

2) If  i test in OGR connection with oracle i am getting error called Open
failed for OGR connection in layer


 I do not know where i am doing wrong.

Please let me know I am waiting for your great response.

Thanks and Regards,

Venkat


On Fri, Jul 23, 2010 at 5:46 PM, Rahkonen Jukka
jukka.rahko...@mmmtike.fiwrote:

 Hi,

 Most probably the message you see is telling it all: your Mapserver version
 does not support Oracle. If you work with Windows the MS4W comes with Oracle
 support but it must be activated first by following the instructions which
 come with the delivery. I would also suggest reading at least the documents
 http://mapserver.org/input/vector/oracle.html
 and http://mapserver.org/installation/oracle.html


 -Jukka Rahkonen-


 venkat wrote:

 Dear All,

   I would like to connect Mapserver with Oracle 10g Spatial .,when i try to
 connect using Oracle spatial I am getting error  Oracle Spatial is not
 supported.


 Please let me know...Where I am doing wrong.I am waiting for your great
 response.



 Here is my mapfile code.

 LAYER
NAME India National Highways
TYPE Line

CONNECTIONTYPE oraclespatial
CONNECTION GIS/gis123
DATA the_geom FROM INDIANATIONALHIGHWAYS USING SRID 24047
   # LABELITEM nh_no_
Status OFF
DUMP TRUE

   CLASS
NAME 'NATIONAL HIGHWAYS'

   STYLE
COLOR  249 139 42
End


   End # end of the class
  END # end of the Layer


 Thanks and Regards,

 Venkat




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


RE: [mapserver-users] Re: Rendering Problem

2010-07-26 Thread Lime, Steve D (DNR)
Which Freetype version(s)?

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of ibrahim saricicek
Sent: Friday, July 23, 2010 4:59 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Re: Rendering Problem


Hi All,

Yes the same..
And also tried several fonts, including monospaced fonts..

Ragards..

On Fri, Jul 23, 2010 at 12:03 PM, Gilbertson, Paul 
pau...@ceh.ac.ukmailto:pau...@ceh.ac.uk wrote:
Ibrahim,

Have you checked that the font files are the same on both machines?

Regards,
Paul Gilbertson

 -Original Message-
 From: 
 mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
  [mailto:mapserver-users-mailto:mapserver-users-
 boun...@lists.osgeo.orgmailto:boun...@lists.osgeo.org] On Behalf Of Ibrahim 
 Saricicek
 Sent: 23 July 2010 09:47
 To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Re: Rendering Problem


 Hi all,

 I couldn't still find a way to solve the problem discussed on;
 http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-
 td5069072.html#a5098281.

 Waiting for any advice..
 Thanks in advence..
 --
 View this message in context: http://osgeo-
 org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5328796.htmlhttp://org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5328796.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

--
This message (and any attachments) is for the recipient only. NERC
is subject to the Freedom of Information Act 2000 and the contents
of this email and any reply you make may be disclosed by NERC unless
it is exempt from release under the Act. Any material supplied to
NERC may be stored in an electronic records management system.

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


[mapserver-users] shapefile error only when zoomed out

2010-07-26 Thread Wendell Turner
Why would a shapefile only display when the map display is
zoomed in?

When zoomed in, the image displays correctly.  When zoomed
out, it gets this:
  msDrawMap(): Image handling error. Failed to draw
  layer named 'tfr'.; msDrawShape() General error
  message.  Only polygon shapes can be drawn using
  a POLYGON layer definition.

shpdump shows this:
  Shapefile Type: Polygon   # of Shapes: 2
  ...
  Shape:1 (Polygon)  nVertices=0, nParts=0
Bounds:( nan, nan, 0, 0)
to ( nan, nan, 0, 0)
Is that a problem?  If so, is there a way of removing that
shape (possibly using gdal)?

Thanks,
Wendell

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


Re: [mapserver-users] shapefile error only when zoomed out

2010-07-26 Thread Frank Warmerdam

Wendell Turner wrote:

Why would a shapefile only display when the map display is
zoomed in?

When zoomed in, the image displays correctly.  When zoomed
out, it gets this:
  msDrawMap(): Image handling error. Failed to draw
  layer named 'tfr'.; msDrawShape() General error
  message.  Only polygon shapes can be drawn using
  a POLYGON layer definition.

shpdump shows this:
  Shapefile Type: Polygon   # of Shapes: 2
  ...
  Shape:1 (Polygon)  nVertices=0, nParts=0
Bounds:( nan, nan, 0, 0)
to ( nan, nan, 0, 0)
Is that a problem?  If so, is there a way of removing that
shape (possibly using gdal)?



Wendell,

Something like the following might discard a particular shape:

  ogr2ogr out.shp in.shp -where OGR_FID != 1

The OGR_FID should be the same as the shape id reported by shpdump.

The shape in question is likely getting translated as something
not polygon-like whenever the view includes 0,0.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


RE: [mapserver-users] UK Ordnance Survey MasterMap Cartographic Text orientation display problem

2010-07-26 Thread Lime, Steve D (DNR)
Don't recall seeing a reply to the list so just in case. Preprocessing is the 
way to go if you're using shapefiles. In PostGIS you
could apply the correction on-the-fly.

One other comment, that may or may not be relevant without seeing the whole 
mapfile. You'll find that string based expressions will 
execute faster that the logical variety:

e.g.:

CLASSITEM ' descriptiv'
CLASS
  NAME 'Tidal Water'
  EXPRESSION 'Tidal Water'
  ...
END

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jez Walters
Sent: Wednesday, July 14, 2010 10:42 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] UK Ordnance Survey MasterMap Cartographic Text 
orientation display problem


I'm trying to use MapServer to display UK Ordnance Survey MasterMap vector
data, but I've been experiencing problems when it comes to Cartographic Text
orientation.

The text angle is specifed in the GML as an integer representing 10ths of a
degree, rather than as a floating point number.  In order to overcome this
I've been pre-processing the OS GML using awk, to divide the text
orientation value by 10.

I'm converting the pre-processed GML to ESRI Shapefiles before displaying
the map using MapServer.  As an example, here's a snipet of my Mapfile:

...
CLASS
  NAME Tidal Water
  EXPRESSION ([descriptiv] == Tidal Water)
  STYLE
  END
  LABEL
TYPE truetype
FONT Arial
SIZE 7
ANTIALIAS true
COLOR 0 153 255
POSITION cc
ANGLE [orientatio]
  END
END
...

Am I on the right track for rescaling the orientation value, or is there a
better way of doing this?
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/UK-Ordnance-Survey-MasterMap-Cartographic-Text-orientation-display-problem-tp5293281p5293281.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] Java MapScript and Tomcat6 Hanging

2010-07-26 Thread Umberto Nicoletti
I'm totally clueless as to why it happens. As for the what happens a
trace of the java process with
http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx Procmon
should give us a hint.

Regards,
Umberto


On Thu, Jul 22, 2010 at 4:34 PM, Gilbertson, Paul pau...@ceh.ac.uk wrote:
 I've left it to run for 5 minutes, still no response. Usual response time ~2s 
 and lower. No processor, no drive activity, just hangs.

 Regards,
 Paul Gilbertson


 -Original Message-
 From: Umberto Nicoletti [mailto:umberto.nicole...@gmail.com]
 Sent: 22 July 2010 15:16
 To: Gilbertson, Paul
 Subject: Re: [mapserver-users] Java MapScript and Tomcat6 Hanging

 That's pretty weird...will Tomcat respond eventually or does it stay
 locked forever? Is cpu or disk usage high while stalled?

 On Thu, Jul 22, 2010 at 4:07 PM, Gilbertson, Paul pau...@ceh.ac.uk
 wrote:
  Umberto,
 
  Absolute lock up. Process is running, but never responds to requests.
 Tomcat creates threads for new requests, and accepts them, they just
 never return data. Tomcat/JVM never crashes.
 
  The synchronized keyword was an attempt to fix this, symptoms are the
 same with or without it.
 
  Regards,
  Paul Gilbertson
 
 
  -Original Message-
  From: Umberto Nicoletti [mailto:umberto.nicole...@gmail.com]
  Sent: 22 July 2010 15:04
  To: Gilbertson, Paul
  Cc: mapserver-users@lists.osgeo.org
  Subject: Re: [mapserver-users] Java MapScript and Tomcat6 Hanging
 
  Hi Paul,
  please define hang: is it a crash or simply a momentary stall?
 
  In the case it is the latter I see the synchronized keyword in the
  definition of the doLogic method and by looking at the code you have
  posted it seems superflous, but there might be some other code that
  you didn't post that makes it necessary. Anyway I would start
 looking
  there.
 
  HTH,
  Umberto
 
  On Wed, Jul 21, 2010 at 4:41 PM, Gilbertson, Paul pau...@ceh.ac.uk
  wrote:
   Good folks,
  
   I am somewhat new to MapServer and MapScript, and I'm trying to do
 a
  few experiments with Java Mapscript in order to scope out
 MapServer's
  feasibility for a large project.
  
   I've downloaded and installed MS4W 3.0 beta 11, and Netbeans 6.9
 with
  Tomcat 6.0.29 in order to test out Java Mapscript. I created a most
  basic servlet to serve up simple map tiles, and it works for serial
  requests. When I try to serve two requests at the same time Tomcat
  hangs hard.
  
   My map file and Java classes are below:
  
   MAP
    IMAGETYPE      PNG24
    NAME           nbndemo
    STATUS         ON
    EXTENT         -12.5 12.5 70 1300012.5
    SIZE           800 800
    IMAGECOLOR     226 245 255
    CONFIG         MS_ERRORFILE /ms4w/apps/nbndemo/error.txt
    DEBUG          5
  
    PROJECTION
      init=epsg:27700
    END
  
    LAYER
      NAME         os250k
      STATUS       ON
      TILEINDEX    /OSRasterTiles/os_250k/os250k_tindex_srs.shp
      TILEITEM     Location
      TYPE         RASTER
      OFFSITE      71 74 65
  
      PROJECTION
        init=epsg:27700
      END
      EXTENT         -12.5 12.5 70 1300012.5
    END
   END
  
   public class SPRewriter {
      public synchronized void doLogic(HttpServletRequest request,
  HttpServletResponse response) throws Exception
      {
          ServletOutputStream out = response.getOutputStream();
          edu.umn.gis.mapscript.mapObj mo = new
  mapObj(/ms4w/apps/nbndemo/mapfiles/test.map);
  
          imageObj image = mo.draw();
          response.setContentType(image.getFormat().getMimetype());
          out.write(image.getBytes());
          image.delete();
          mo.delete();
      }
   }
  
      protected void processRequest(HttpServletRequest request,
  HttpServletResponse response) throws ServletException, IOException {
          try {
              SPRewriter spr = new SPRewriter();
              spr.doLogic(request, response);
          }  catch (Exception e) {
              e.printStackTrace();
          }
      }
  
   Any thoughts why this would hang the moment I try to run parallel
  requests?
  
   Regards,
   Paul Gilbertson
  
  
  
   --
   This message (and any attachments) is for the recipient only. NERC
   is subject to the Freedom of Information Act 2000 and the contents
   of this email and any reply you make may be disclosed by NERC
 unless
   it is exempt from release under the Act. Any material supplied to
   NERC may be stored in an electronic records management system.
  
   ___
   mapserver-users mailing list
   mapserver-users@lists.osgeo.org
   http://lists.osgeo.org/mailman/listinfo/mapserver-users
  
 
  --
  This message (and any attachments) is for the recipient only. NERC
  is subject to the Freedom of Information Act 2000 and the contents
  of this email and any reply you make may be disclosed by NERC unless
  it is exempt from release under the Act. Any material supplied to
  NERC may be stored in an electronic records management system.
 
 

 --