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

Stephen Woodbridge woodbri at swoodbridge.com
Wed Aug 22 19:38:17 PDT 2012


On 8/22/2012 6:01 PM, Peter Mallen wrote:
> 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.
>

I would try this:

LAYER
   NAME 'banner1'
   STATUS DEFAULT
   DEBUG 5
   # don't need OGR, but if you want to use it try this first
   # sometimes \ can be a problem so trying /
   # you do not need .shp on the tileindex or shapefile names
   # but it should not matter either
   TILEINDEX 'C:/ms4w/Apache/htdocs/map.data/tindex-3'
   TYPE POLYGON
   PROJECTION "init=epsg:4326" END
   CLASS
     STYLE
       COLOR "#ffff00"            # yellow polygons
       OUTLINECOLOR "#222222"     # with dark borders
     END
   END
END

Try this first, if it works then try changing things one at a time and 
retest to make sure it continues to work. Then if you find something 
that breaks it and you do not understand why ask.

-Steve W

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




More information about the MapServer-users mailing list