Re: [MAPSERVER-USERS] Serving jpeg tiles - is there a howto?
hi, the "easiest" way imho would be to create a custom batch script that creates wld georeferencing files for each of your jpegs: - use grep on the file name to extract the upper left coordinate (minx, maxy) - calculate the size of a single pixel (either from the image size and extent, or hardcoded if all your images have the same pixel size) - write the georeferencing matrix to disk (check http://duff.ess.washington.edu/data/raster/drg/tfw.html) - check with gdalinfo that your georeferencing is taken into account cheers, thomas On Sun, Dec 14, 2008 at 11:13, bibbob wrote: > > Hello, > > Sorry if this question is a bit newbie-ish, but I've searched quite a bit > for a guide on how to do this and haven't come up with anything yet. > > I have a pile of JPEG images which are tiles of a map. I'd like to serve > them as a layer in MapServer (to use them within OpenLayers, but that's > another story). Each image has its co-ordinates built into the filename, > like so: > > ~/tiles $ ls > tile-25-253000-34-343000.jpg tile-256000-259000-34-343000.jpg > tile-262000-265000-34-343000.jpg tile-268000-271000-34-343000.jpg > tile-25-253000-343000-346000.jpg tile-256000-259000-343000-346000.jpg > > The list is truncated - the format is tile-minX-maxX-minY-maxY.jpg where the > origin is in the bottom-left of the map. > > I've read that I can use gdaltindex to create the shapefile to index these > tiles, but when I try it, it complains that they aren't georeferenced: > "It appears no georeferencing is available for > `tile-271000-274000-358000-361000.jpg', skipping." > > ...which is understandable, as they're just JPEGs. Any idea how I tell it > where each tile is? How do I put this into Mapserver? If there's a HOWTO > or similar out there that I've missed, could someone please let me know > where it is? > > Thank you. > > PS. Sorry about the newbieness - there's just so much to learn about mapping > software and I'm a bit lost. > -- > View this message in context: > http://www.nabble.com/Serving-jpeg-tiles---is-there-a-howto--tp20998876p20998876.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] Serving jpeg tiles - is there a howto?
Hello, Sorry if this question is a bit newbie-ish, but I've searched quite a bit for a guide on how to do this and haven't come up with anything yet. I have a pile of JPEG images which are tiles of a map. I'd like to serve them as a layer in MapServer (to use them within OpenLayers, but that's another story). Each image has its co-ordinates built into the filename, like so: ~/tiles $ ls tile-25-253000-34-343000.jpg tile-256000-259000-34-343000.jpg tile-262000-265000-34-343000.jpg tile-268000-271000-34-343000.jpg tile-25-253000-343000-346000.jpg tile-256000-259000-343000-346000.jpg The list is truncated - the format is tile-minX-maxX-minY-maxY.jpg where the origin is in the bottom-left of the map. I've read that I can use gdaltindex to create the shapefile to index these tiles, but when I try it, it complains that they aren't georeferenced: "It appears no georeferencing is available for `tile-271000-274000-358000-361000.jpg', skipping." ...which is understandable, as they're just JPEGs. Any idea how I tell it where each tile is? How do I put this into Mapserver? If there's a HOWTO or similar out there that I've missed, could someone please let me know where it is? Thank you. PS. Sorry about the newbieness - there's just so much to learn about mapping software and I'm a bit lost. -- View this message in context: http://www.nabble.com/Serving-jpeg-tiles---is-there-a-howto--tp20998876p20998876.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
Re: [MAPSERVER-USERS] Serving jpeg tiles - is there a howto?
On Sun, Dec 14, 2008 at 02:13:16AM -0800, bibbob wrote: > > Hello, > > Sorry if this question is a bit newbie-ish, but I've searched quite a bit > for a guide on how to do this and haven't come up with anything yet. > > I have a pile of JPEG images which are tiles of a map. I'd like to serve > them as a layer in MapServer (to use them within OpenLayers, but that's > another story). Each image has its co-ordinates built into the filename, > like so: Note that with something like this, you don't need MapServer at all: with a little bit of legwork, you can load these into OpenLayers directly, following the instructions in something like: http://trac.openlayers.org/wiki/UsingCustomTiles . For more help on that, feel free to stop by the OpenLayers mailing list. Regards, -- Christopher Schmidt MetaCarta ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] Serving jpeg tiles - is there a howto?
Christopher Schmidt-4 wrote: > > Note that with something like this, you don't need MapServer at all: > with a little bit of legwork, you can load these into OpenLayers > directly, following the instructions in something like: > http://trac.openlayers.org/wiki/UsingCustomTiles . > Brilliant! Thanks for that, it's just what I wanted and I don't have to learn the complexities of Mapserver and shapefiles. Many thanks, that works beautifully! -- View this message in context: http://www.nabble.com/Serving-jpeg-tiles---is-there-a-howto--tp20998876p21006850.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 get data based on Date in Postgresql/PostGIS
Dear All, I want get data based on Date. When I run query select * from PointLayer where news_date ='12/2/2008'; in postgre Query builder , it is working fine. When I try "the_geom from PointLayer where news_date='12/2/2008'" I am not getting data(map).I don't know how to send date parameter.is it possible ?if it is ..please let me know. Advanced thanks Venkat. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How to get data based on Date in Postgresql/PostGIS
try DATA the_geom from (select id,the_geom from pointlayer where date='12/2/2008') as foo using unique id using srid= -- thomas On Mon, Dec 15, 2008 at 06:32, Venkat Rao Tammineni wrote: > Dear All, > > > > I want get data based on Date. When I run query select * from > PointLayer where news_date ='12/2/2008'; in postgre Query builder , it is > working fine. > > > > When I try "the_geom from PointLayer where news_date='12/2/2008'" I am > not getting data(map).I don't know how to send date parameter.is it > possible ?if it is ..please let me know. > > > > Advanced thanks > > > > Venkat. > > ___ > 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