Re: [mapserver-users] Map from .OSM

2009-11-26 Thread Stephen Woodbridge

I believe GDAL/OGR (newer versions) has support for SpatialLite.

-Steve W

Rahkonen Jukka wrote:

Hi,

Igor Brejc wrote interesting news today on osm-users mailing list: 
I've implemented importing of OSM data into SpatiaLite DB and
integrated it successfully with Kosmos map rendering code. SpatiaLite
OSM database can be quite fast, but I had to learn a trick or two to
reach good performance. I even managed to import the latest UK data
into it and it didn't complain too much. I'm planning to release this
in Kosmos v3, hopefully sometimes in the spring of 2010.

So there should be a SpatiaLite import utility available in the near
future.  Next question is if Mapserver can render effectively from
SpatiaLite.

-Jukka Rahkonen-


-Alkuperäinen viesti- Lähettäjä:
mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Milo van

der Linden Lähetetty: 26. marraskuuta 2009 8:19 Vastaanottaja: abul
khayer Kopio: mapserver-users@lists.osgeo.org Aihe: Re:
[mapserver-users] Map from .OSM

Mapserver cannot read osm directly. That is also because there is
no OGR adapter(yet) for .osm.

If you really don't want to set up postgis:

http://wiki.openstreetmap.org/wiki/Category:OSM_processing

You can browse throug a variety of export/conversion tools. One
might just create the format you need (shp). You can also consider
downloading ready-made shapefiles from the websites:

http://www.cloudmade.com

or

http://www.geofabrik.de


Kind regards,

Milo van der Linden (Miblon) Moblin powered asus eee pc 1005HA-H 
http://www.dogodigi.net


On Wed, 2009-11-25 at 19:01 -0800, abul khayer wrote:

Can Mapserver render map from .OSM(Open street map) file
directly?

I want to use mapserserver and Openlayer to render a map of .OSM.
 Though i get some help from below tutorial, 
http://trac.osgeo.org/mapserver/wiki/RenderingOsmData But it use

postgis and there need conversion.

... Md. Abul Khayer GIS
Programmer CEGIS (www.cegisbd.com) Cell: +8801730019572 Blog:
khayer.wordpress.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


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


Re: [mapserver-users] Map from .OSM

2009-11-26 Thread Even Rouault

Stephen Woodbridge a écrit :

I believe GDAL/OGR (newer versions) has support for SpatialLite.
Yes. GDAL 1.6 has already read support for SpatiaLite DB through the OGR 
sqlite driver


GDAL 1.7dev brings write/creation support. It can also make use of 
spatial enabled functions when it is linked to libspatialite instead of 
libsqlite3.


See http://gdal.org/ogr/drv_sqlite.html for more info.



-Steve W

Rahkonen Jukka wrote:

Hi,

Igor Brejc wrote interesting news today on osm-users mailing list: 
I've implemented importing of OSM data into SpatiaLite DB and
integrated it successfully with Kosmos map rendering code. SpatiaLite
OSM database can be quite fast, but I had to learn a trick or two to
reach good performance. I even managed to import the latest UK data
into it and it didn't complain too much. I'm planning to release this
in Kosmos v3, hopefully sometimes in the spring of 2010.

So there should be a SpatiaLite import utility available in the near
future.  Next question is if Mapserver can render effectively from
SpatiaLite.

-Jukka Rahkonen-


-Alkuperäinen viesti- Lähettäjä:
mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Milo van

der Linden Lähetetty: 26. marraskuuta 2009 8:19 Vastaanottaja: abul
khayer Kopio: mapserver-users@lists.osgeo.org Aihe: Re:
[mapserver-users] Map from .OSM

Mapserver cannot read osm directly. That is also because there is
no OGR adapter(yet) for .osm.

If you really don't want to set up postgis:

http://wiki.openstreetmap.org/wiki/Category:OSM_processing

You can browse throug a variety of export/conversion tools. One
might just create the format you need (shp). You can also consider
downloading ready-made shapefiles from the websites:

http://www.cloudmade.com

or

http://www.geofabrik.de


Kind regards,

Milo van der Linden (Miblon) Moblin powered asus eee pc 1005HA-H 
http://www.dogodigi.net


On Wed, 2009-11-25 at 19:01 -0800, abul khayer wrote:

Can Mapserver render map from .OSM(Open street map) file
directly?

I want to use mapserserver and Openlayer to render a map of .OSM.
 Though i get some help from below tutorial, 
http://trac.osgeo.org/mapserver/wiki/RenderingOsmData But it use

postgis and there need conversion.

... Md. Abul Khayer GIS
Programmer CEGIS (www.cegisbd.com) Cell: +8801730019572 Blog:
khayer.wordpress.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


___
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] Map from .OSM

2009-11-25 Thread abul khayer
Can Mapserver render map from .OSM(Open street map) file directly?

I want to use mapserserver and Openlayer to render a map of .OSM. Though i get 
some help from below tutorial,
http://trac.osgeo.org/mapserver/wiki/RenderingOsmData
But it use postgis and there need conversion.

 ...
Md. Abul Khayer
GIS Programmer
CEGIS (www.cegisbd.com)
Cell: +8801730019572
Blog: khayer.wordpress.com



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


Re: [mapserver-users] Map from .OSM

2009-11-25 Thread Stephen Woodbridge

abul khayer wrote:


Can Mapserver render map from .OSM(Open street map) file directly?

I want to use mapserserver and Openlayer to render a map of .OSM. Though 
i get some help from below tutorial,

http://trac.osgeo.org/mapserver/wiki/RenderingOsmData
But it use postgis and there need conversion.


Hi Abul,

No mapserver can not read the .osm file directly and it probably does 
not make sense to even try to do that as the .osm is not designed for 
for fast spatial access. If you want to be able to render the maps 
quickly you need to read the .osm file and extract the information and 
attributes into postgis tables or shapefiles or something that is 
organized for fast access.


postgresql and postgis install very easily on windows or linux and if 
you follow the steps outlined below it should just work.


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


Re: [mapserver-users] Map from .OSM

2009-11-25 Thread Rahkonen Jukka
Hi,

It is not possible because Mapserver cannot read OSM format.  Importing data 
first into PostGIS with osm2pgsql is the most flexible way but you can also try 
how far you can get with daily OSM shapefile excerpts which can  be downloaded 
from Geofabrik or Cloudmade. I am also rather sure that direct rendering from 
OSM xml format if it were possible would be slow because format does not 
support indexing in any way. I have been thinking that perhaps pushing OSM data 
into SpatiaLite database would be a good solution for those who do not want to 
install PostGIS.  Such a converter does not exist at a moment, though.

-Jukka Rahkonen-


abul khayer wrote:
 
 Can Mapserver render map from .OSM(Open street map) file directly?

 I want to use mapserserver and Openlayer to render a map of .OSM. Though i 
 get some help from below tutorial,
 http://trac.osgeo.org/mapserver/wiki/RenderingOsmData
 But it use postgis and there need conversion.

 ...
 Md. Abul Khayer
 GIS Programmer
 CEGIS (www.cegisbd.com)
 Cell: +8801730019572
 Blog: khayer.wordpress.com



  

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


Re: [mapserver-users] Map from .OSM

2009-11-25 Thread Ben Madin

 From: Stephen Woodbridge wood...@swoodbridge.com
 Date: 26 November 2009 10:38:00 AM GMT+07:00
 To: abul khayer khayer...@yahoo.com
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Map from .OSM
 
 
 abul khayer wrote:
 Can Mapserver render map from .OSM(Open street map) file directly?
 I want to use mapserserver and Openlayer to render a map of .OSM. Though i 
 get some help from below tutorial,
 http://trac.osgeo.org/mapserver/wiki/RenderingOsmData
 But it use postgis and there need conversion.
 
 Hi Abul,
 
 No mapserver can not read the .osm file directly and it probably does not 
 make sense to even try to do that as the .osm is not designed for for fast 
 spatial access. If you want to be able to render the maps quickly you need to 
 read the .osm file and extract the information and attributes into postgis 
 tables or shapefiles or something that is organized for fast access.
 
 postgresql and postgis install very easily on windows or linux and if you 
 follow the steps outlined below it should just work.
 
 -Steve W

In fact, if you read up on the osm site, they don't use it themselves to 
display the maps, but import it into postgis. 

There is an application to convert planet.osm data to pgsql - you might have to 
compile it yourself. (osm2pgsql)

http://wiki.openstreetmap.org/wiki/Osm2pgsql

cheers

Ben




-- 

Ben Madin
REMOTE INFORMATION

t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome   WA   6725

b...@remoteinformation.com.au



Out here, it pays to 
know...


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


Re: [mapserver-users] Map from .OSM

2009-11-25 Thread Milo van der Linden
Mapserver cannot read osm directly. That is also because there is no OGR
adapter(yet) for .osm.

If you really don't want to set up postgis:

http://wiki.openstreetmap.org/wiki/Category:OSM_processing

You can browse throug a variety of export/conversion tools. One might
just create the format you need (shp). You can also consider downloading
ready-made shapefiles from the websites:

http://www.cloudmade.com

or

http://www.geofabrik.de


Kind regards,

Milo van der Linden (Miblon)
Moblin powered asus eee pc 1005HA-H
http://www.dogodigi.net

On Wed, 2009-11-25 at 19:01 -0800, abul khayer wrote:
 Can Mapserver render map from .OSM(Open street map) file directly?
 
 I want to use mapserserver and Openlayer to render a map of .OSM.
 Though i get some help from below tutorial,
 http://trac.osgeo.org/mapserver/wiki/RenderingOsmData
 But it use postgis and there need conversion.
  
 ...
 Md. Abul Khayer
 GIS Programmer
 CEGIS (www.cegisbd.com)
 Cell: +8801730019572
 Blog: khayer.wordpress.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] Map from .OSM

2009-11-25 Thread James Card
On Wed, 25 Nov 2009 21:21:42 -0800, Rahkonen Jukka  
jukka.rahko...@mmmtike.fi wrote:


I have been thinking that perhaps pushing OSM data into SpatiaLite  
database would be a good solution for those who do not want to install  
PostGIS.  Such a converter does not exist at a moment, though.


Yes, that is an an attractive prospect. Right now to get there involves  
creating shape-files first, and if you're going to do that you might as  
well just use them directly for MapServer.


Quantum GIS http://qgis.org/ has an OSM plugin that will load OSM files  
or download from OSM servers, then save the data as shape-files  
(reprojecting it if desired).


--
James Card
California CAD Solutions, Inc.
209 578-5580
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Map from .OSM

2009-11-25 Thread Rahkonen Jukka
Hi,

Igor Brejc wrote interesting news today on osm-users mailing list:
 I've implemented importing of OSM data into SpatiaLite DB and integrated it 
successfully with Kosmos map rendering code. SpatiaLite OSM database can be 
quite fast, but I had to learn a trick or two to reach good performance. I even 
managed to import the latest UK data into it and it didn't complain too much.
I'm planning to release this in Kosmos v3, hopefully sometimes in the spring of 
2010.

So there should be a SpatiaLite import utility available in the near future.  
Next question is if Mapserver can render effectively from SpatiaLite.

-Jukka Rahkonen-

 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
 Milo van der Linden
 Lähetetty: 26. marraskuuta 2009 8:19
 Vastaanottaja: abul khayer
 Kopio: mapserver-users@lists.osgeo.org
 Aihe: Re: [mapserver-users] Map from .OSM
 
 Mapserver cannot read osm directly. That is also because 
 there is no OGR
 adapter(yet) for .osm.
 
 If you really don't want to set up postgis:
 
 http://wiki.openstreetmap.org/wiki/Category:OSM_processing
 
 You can browse throug a variety of export/conversion tools. 
 One might just create the format you need (shp). You can also 
 consider downloading ready-made shapefiles from the websites:
 
 http://www.cloudmade.com
 
 or
 
 http://www.geofabrik.de
 
 
 Kind regards,
 
 Milo van der Linden (Miblon)
 Moblin powered asus eee pc 1005HA-H
 http://www.dogodigi.net
 
 On Wed, 2009-11-25 at 19:01 -0800, abul khayer wrote:
  Can Mapserver render map from .OSM(Open street map) file directly?
  
  I want to use mapserserver and Openlayer to render a map of .OSM.
  Though i get some help from below tutorial, 
  http://trac.osgeo.org/mapserver/wiki/RenderingOsmData
  But it use postgis and there need conversion.
   
  ...
  Md. Abul Khayer
  GIS Programmer
  CEGIS (www.cegisbd.com)
  Cell: +8801730019572
  Blog: khayer.wordpress.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