[mapserver-users] Tile Index Issues (Stephen Woodbridge)

Peter Mallen peter.mallen at airborne.aero
Wed Aug 22 15:01:27 PDT 2012


Hi Stephen,

I have posted part of my mapfile below.  I am also using  the debug to
send any errors to the log but no errors seem to come up.  Forgot to
mention that my shapefiles display in QGIS when using the tile index
shapefile.

LAYER 
    NAME 'banner1'
    
    STATUS DEFAULT
    DEBUG 5

    CONNECTIONTYPE OGR
    TILEINDEX 'C:\ms4w\Apache\htdocs\map.data\tindex-3.shp'
    TILEITEM 'location'
    TYPE POLYGON
    
     TRANSFORM OFF
    
     PROJECTION
    	"proj=latlong"
                "ellps=WGS84"
	"datum=WGS84"
	"epsg:4326"

			
      END
    
END

Thank you,

Peter Mallen

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of
mapserver-users-request at lists.osgeo.org
Sent: Wednesday, August 22, 2012 9:51 AM
To: mapserver-users at lists.osgeo.org
Subject: mapserver-users Digest, Vol 55, Issue 45

Send mapserver-users mailing list submissions to
	mapserver-users at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
	mapserver-users-request at lists.osgeo.org

You can reach the person managing the list at
	mapserver-users-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific than
"Re: Contents of mapserver-users digest..."


Today's Topics:

   1. Re: Tile Index Issues (Stephen Woodbridge)
   2. Export map into pdf (sharad)
   3. Re: Export map into pdf (Till Adams)
   4. Re: Export map into pdf (Rahkonen Jukka)
   5. Re: Tile Index Issues (Jeff McKenna)
   6. Re: Tile Index Issues (Rahkonen Jukka)
   7. mapserver user can not make the shapefile data	correctly show
      in the browser (??)


----------------------------------------------------------------------

Message: 1
Date: Tue, 21 Aug 2012 20:57:22 -0400
From: Stephen Woodbridge <woodbri at swoodbridge.com>
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Tile Index Issues
Message-ID: <50342E72.1020205 at swoodbridge.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 8/21/2012 7:38 PM, Peter Mallen wrote:
> Hello All,
>
> I am new to map server and I am attempting to display polygon 
> shapefiles using a tile index but have not been able to see any
results.
> Eventually I would like to use these tiles to place images(raster) 
> files on my map but I was first just testing the 'TILEINDEX' feature 
> with vector data.
>
> All of the shapefiles being referenced in my index shapefile are in 
> the same folder.
>
>
> Also, in my index shapefile I have the following two shapefiles 
> referenced under the 'location' column:
> \ms4w\Apache\htdocs\map.data\Guatemala_Cities.shp
> \ms4w\Apache\htdocs\map.data\Bolivian_Cities.shp
>
> The following page was used as a reference for creating my map file:
> http://mapserver.org/utilities/tile4ms.html
>
> Any help on this would be great.
>
> Thank You,
>
> Peter Mallen

What does your mapfile look like?



------------------------------

Message: 2
Date: Wed, 22 Aug 2012 02:39:51 -0700 (PDT)
From: sharad <fine_sharad at hotmail.com>
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Export map into pdf
Message-ID: <1345628391878-4996952.post at n6.nabble.com>
Content-Type: text/plain; charset=us-ascii

hi all,
i am developing web application using mapserver with C#/Mapscript.
how can I export map into pdf file using c#/mapscript?

I will appreciate your reply.

thanks
sharad





--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Export-map-into-pdf-tp4996952.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


------------------------------

Message: 3
Date: Wed, 22 Aug 2012 11:45:02 +0200
From: Till Adams <adams at terrestris.de>
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Export map into pdf
Message-ID: <5034AA1E.1080806 at terrestris.de>
Content-Type: text/plain; charset=ISO-8859-1

Hi Sharad,

we use MapFish-print-servlet, which is the best software I know for
generating maps in pdf.
-> http://www.mapfish.org/doc/print/

But this is in Java, so the other side of the river ;-)

Reagrds, Till




On 22.08.2012 11:39, sharad wrote:
> hi all,
> i am developing web application using mapserver with C#/Mapscript.
> how can I export map into pdf file using c#/mapscript?
> 
> I will appreciate your reply.
> 
> thanks
> sharad
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/Export-map-into-pdf-tp4996952.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

-- 

NEWS:
-> GO Mobile - jetzt WebGIS auch auf Smartphones Bald OpenSource! SHOGun

-> - das JavaBackend f?r WebGIS Anwendungen


----------------------------------------------------
terrestris GmbH & Co. KG
Puetzchens Chaussee 56
53227 Bonn
Germany

Till Adams
Geschaeftsfuehrung

Tel:	+49 (0)228 / 962 899-52
Mobile:	+49 (0)151 / 25394429
Fax:	+49 (0)228 / 962 899-57

adams at terrestris.de
http://www.terrestris.de
Amtsgericht Bonn, HRA 6835
----------------------------------------------------

Komplementaerin:

terrestris Verwaltungs GmbH

vertreten durch:
Hinrich Paulsen, Till Adams


------------------------------

Message: 4
Date: Wed, 22 Aug 2012 09:54:33 +0000
From: Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi>
To: "'mapserver-users at lists.osgeo.org'"
	<mapserver-users at lists.osgeo.org>
Subject: Re: [mapserver-users] Export map into pdf
Message-ID:
	<84446DEF76453C439E9E97E438E13A63467463 at suutari.haapa.mmm.fi>
Content-Type: text/plain; charset="us-ascii"

Hi,

Define pdf as one of the outputformats.
http://www.mapserver.org/mapfile/outputformat.html

I am not sure how to make nice prints with legends and logos and such,
but the map itself is easy to push into pdf with no extra work at all.
Note that it can be geospatial pdf with coordinates
http://www.gdal.org/frmt_pdf.html

Some example screenshots are in the bottom of this otherwise a bit
outdated document
http://latuviitta.org/documents/Super_easy_WMS_server.pdf
and geospatial PDF created by Mapserver from OpenStreetmap data here.
It's all vector so it tolerates zooming however close.
http://latuviitta.org/documents/Lahti_geospat.pdf


-Jukka Rahkonen-

sharad wrote:

> hi all,
> i am developing web application using mapserver with C#/Mapscript.
> how can I export map into pdf file using c#/mapscript?
> 
> I will appreciate your reply.
> 
> thanks
> sharad
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/Export-
> map-into-pdf-tp4996952.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


------------------------------

Message: 5
Date: Wed, 22 Aug 2012 08:59:01 -0300
From: Jeff McKenna <jmckenna at gatewaygeomatics.com>
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Tile Index Issues
Message-ID: <5034C985.7090509 at gatewaygeomatics.com>
Content-Type: text/plain; charset=ISO-8859-1

Hello,

You might also test your mapfile with the shp2img utility
(http://mapserver.org/utilities/shp2img.html) with the switch
"-all_debug 5" to see your errors (and report to this list).

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 12-08-21 8:38 PM, Peter Mallen wrote:
> Hello All,
> 
> I am new to map server and I am attempting to display polygon
shapefiles
> using a tile index but have not been able to see any results.
> Eventually I would like to use these tiles to place images(raster)
files
> on my map but I was first just testing the 'TILEINDEX' feature with
> vector data.
> 
> All of the shapefiles being referenced in my index shapefile are in
the
> same folder.
> 
> 
> Also, in my index shapefile I have the following two shapefiles
> referenced under the 'location' column:
> \ms4w\Apache\htdocs\map.data\Guatemala_Cities.shp
> \ms4w\Apache\htdocs\map.data\Bolivian_Cities.shp
> 
> The following page was used as a reference for creating my map file:
> http://mapserver.org/utilities/tile4ms.html
> 
> Any help on this would be great.
> 
> Thank You,
> 
> Peter Mallen
> 



------------------------------

Message: 6
Date: Wed, 22 Aug 2012 13:03:25 +0000
From: Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi>
To: "'mapserver-users at lists.osgeo.org'"
	<mapserver-users at lists.osgeo.org>
Subject: Re: [mapserver-users] Tile Index Issues
Message-ID:
	<84446DEF76453C439E9E97E438E13A63467561 at suutari.haapa.mmm.fi>
Content-Type: text/plain; charset="us-ascii"

Hi,

I have a feeling that I had problems with vector tile index and native
Mapserver connection. For some reason I have changed our mapfiles to
connect with OGR. Anyway, now when I had a try, both are working.
Perhaps I had some issues with GetFeatureInfo and not with GetMaps. I
have created my tileindex shapefiles with ogrtindex utility, and
location records look a bit different
z:\Data\contours\KM18M1BV.SHP,0
My connection alternatives which both work now (MS 6.0) are

CONNECTIONTYPE OGR
TILEINDEX "z:/data/Tindex/korkeusidx.shp,0"
# TILEINDEX "z:/data/Tindex/korkeusidx" #both with or without .shp works
here
# TILEITEM "location"

-Jukka Rahkonen-

Jeff McKenna wrote:
> 
> Hello,
> 
> You might also test your mapfile with the shp2img utility
> (http://mapserver.org/utilities/shp2img.html) with the switch
"-all_debug 5"
> to see your errors (and report to this list).
> 
> -jeff
> 
> 
> 
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
> 
> 
> 
> On 12-08-21 8:38 PM, Peter Mallen wrote:
> > Hello All,
> >
> > I am new to map server and I am attempting to display polygon
shapefiles
> > using a tile index but have not been able to see any results.
> > Eventually I would like to use these tiles to place images(raster)
files
> > on my map but I was first just testing the 'TILEINDEX' feature with
> > vector data.
> >
> > All of the shapefiles being referenced in my index shapefile are in
the
> > same folder.
> >
> >
> > Also, in my index shapefile I have the following two shapefiles
> > referenced under the 'location' column:
> > \ms4w\Apache\htdocs\map.data\Guatemala_Cities.shp
> > \ms4w\Apache\htdocs\map.data\Bolivian_Cities.shp
> >
> > The following page was used as a reference for creating my map file:
> > http://mapserver.org/utilities/tile4ms.html
> >
> > Any help on this would be great.
> >
> > Thank You,
> >
> > Peter Mallen
> >
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


------------------------------

Message: 7
Date: Thu, 23 Aug 2012 00:50:28 +0800
From: ?? <gisyangli at gmail.com>
To: mapserver-users at lists.osgeo.org
Cc: mapserver-dev at lists.osgeo.org
Subject: [mapserver-users] mapserver user can not make the shapefile
	data	correctly show in the browser
Message-ID:
	
<CANtWbEDcPLv_vxRF=4X33A1MzaP_zy7EeMPxzC5OKLsDTHaLiA at mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"

Hello,
respected everyone,

I have a problem when using Mapserver. I just using Maperver to rend an
shapefile on ubuntu 12.04. but the expect image is not correctly
showing, i
think there maybe some problem with my mapfile set, especially with
IMAGEURL define?

 I use a guide in the link :
http://www.gistutor.com/mapserver/3-beginner-mapserver-tutorials/7-how-t
o-generate-a-simple-map-using-mapserver-and-a-shapefile.html


 I assign the mapfile & template.html&start.html in my www DIR,

which is like this:

mapfiel.map:

MAP

NAME parcels_map

STATUS ON

SIZE 420 300

EXTENT 489885 5450946 490904 5451637

UNITS METERS

SHAPEPATH "shapefiles"

IMAGECOLOR 255 255 255

 WEB

TEMPLATE "template.html"

IMAGEPATH "/var/www/output/"

IMAGEURL "/output/"

END

  LAYER

NAME "parcel_boundaries"

DATA parcels

STATUS DEFAULT

TYPE POLYGON

CLASS

NAME "parcels_color"

COLOR 255 215 0

END

END

 # end of map file

END



 starrtmap.html:

<html>

<head><title>Creating a simple image using Mapserver and a
Shapefile</title></head>

<body bgcolor="#FFFFFF">

<h2>Creating a simple image using Mapserver and a Shapefile</h2>

<p><hr><p>

This page simply contains a link which sends a set of instructions to
the
Mapserver application using a mapfile.<br />

The information stored within the mapfile tells the Mapserver
application
how to draw the map.<p>

<!-- The following link sends the local file structure path of the
mapfile
to the web location of the mapserver executable file -->

<A HREF="http://localhost/cgi-bin/mapserv?map=/var/www/mapfile.map">

Click on this link</A> to view a map generated using a Shapefile.

<p><hr><p>

 </body>

</html>


 template.html:

<!-- MapServer Template -->

<html>

<head><title>Simple Mapserver Template HTML Document</title></head>

<body bgcolor=#AAAAAA>

<h2>The image below was illustrated based on the instructions sent in
the
mapfile.</h2>

<!-- When using Mapserver with a template, the Mapserver application
looks
for the [img] tag within the template document to place the map -->

<img src="/[img]" border=1>

</body>

</html>


 when I run the
?http://localhost/cgi-bin/mapserv?map=/var/www/mapfile.map?
in my address colum.

The expect map is not shown.


 The page is showing content of template.html expectly, but there is
only a
image icon , but with no picture. And the status bar in the firefox
brower
is showing : conecting to output ..


 I notice that in the var/www/output DIR, there have been some png file
generated. And is the png containing the polygon in the shapefile. Every
time when I click the ?
http://localhost/cgi-bin/mapserv?map=/var/www/mapfile.map? link, a new
png
file is generated in output DIR.


 I want to know if the IMAGEURL in the mapfile is set wrongly? Why the
png
is genrated correctly but not showing in the browser? Any one can help
me?


-- 
Yang Li
GIS Developer
P.R.China
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120823/a
48b6d80/attachment.html>

------------------------------

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


End of mapserver-users Digest, Vol 55, Issue 45
***********************************************


More information about the mapserver-users mailing list