1 (7)
NPWeb II
Introduction to the new NPWeb
Kalle Kuparinen
7/1/2013
Contents
Visual Studio
Setting up IIS
Localhostenvironment
Installing GeoServer
Setting up Layers
Workspaces
Stores
Layer
2 (7)
Database
The environment
Visual Studio
The versioninuse isVisual Studio2010. ASP.NETMVC 3 mustbe installed
withcorrect frameworkupdatestosupportit.Youcan findMVC3 download
below.
http://www.asp.net/mvc/mvc3
Setting up IIS
There isonlyone thingto be takenintoconsiderationwheninstallingIISto
developthe NPWebII.Since the OpenLayersisjavascriptbasedyouneedto
handle cross-domainpoliciessothatitwon’trestrictusage of scriptswhen
connectiontoanotherserverordomain.Thisiswhy inadditiontoIISyou
needtoinstall anadd-incalledURL Rewrite
http://www.iis.net/downloads/microsoft/url-rewrite
3 (7)
You needtoadd thisrule to yourDefaultWebSite inIISManager. The new
rule optioncan be foundunderIISManager > DefaultWebSite > URL Rewrite.
AfteropeningURLRewrite,adda new blankrule withthe datashowninthe
picture above.
Localhost environment
You needtocreate an applicationunderDefaultWebSite inIIS
Manager whichcontainsyourproject.
4 (7)
Addingandapplicationiseasy.Youonlyneedtoprovide a
name for yourapplicationandthe pathwhichcontainsthe base
folderof the site.Afterthis,the projectshouldbe accessible
throughhttp://localhost/name_of_your_application.
Installing GeoServer
The current versionthatwe are usingisGeoServer2.3.3.
Installationissimple, justremembernottoinstall GeoServeras
service if youare usingit fordevelopment.
http://geoserver.org/display/GEOS/GeoServer+2.3.3
AfterinstallingGeoServer,youshouldbe able to accessitafter
youstart it fromlocalhost:8080/geoserver/web
Setting up Layers
The basic layersfromPostgreSQL-database will notworkunless
theyare addedtoGeoServer.Currentlywe are unable touse
the GeoServerwhichislocatedinthe same serverasthe
database because of cross-domainpolicyproblems.
Workspaces
Under Data inGeoServer,create aworkspace withfollowingdata.Make sure
to enterthe exactnamespace asquoted.
Name of workspace | Namespace
5 (7)
“Oulu” | “http://www.ouka.fi/”
“Kuopio” | “http://www.kuopio.fi/”
“Tampere” | “http://www.tampere.fi/”
Stores
Storesare usedtoconnectto a database.There are currently3 databases
existing,namedaslowercase lettersoulu,kuopioandtampere.Tocreate a
store,selectthe Workspace youcreated,name yourstore accordingto the
customerand selectthe rightdatabase.
Thisis an example of connectiontoKuopiosdatabase.The connectionstringis
the same for Tampere andOulu.Rememberlowercase database names.The
passwordcan be askedfromemployeesof VianovaSystemsFinland.
Layer
To add a layer,youselectyour Workspace andStore whichyoucreatedinto
that Workspace.Afterthatit shouldshow youthe available tableswhich
containdata for features.Publishthosetables
6 (7)
Remembertocompute the valuesbyclickingthe blue linksbefore publishing
If you go to layerpreview,youshouldbe able tosee the GML Preview which
opensa XML whichshouldshow data.If itdoesn’tshow anything,something
iswrong.
Database
The database can be accessedthroughpgAdmin.If youneedtofiddle withthe
data, youneedtodownloadthe pgAdminToolsprogram.
http://www.pgadmin.org/download/windows.php
Connectiontodeveloperdatabase inpgAdmin.
The environment
Alwaysremembertostart upyour GeoServerfromthe start
menuforthe featurestodisplayonthe maps.You shouldbe
7 (7)
now able to access http://localhost/name_of_your_application
and start exploringthe wondersof NPWebII

More Related Content

PDF
WAF In DevOps DevOpsFusion2019
PDF
Web Application Firewall - Friend of your DevOps Pipeline?
PPTX
WinOps 2017 - Docker on Windows, the Beginner's Guide
PDF
Firebaseの運用に役立つTips5
PPTX
Java App On Digital Ocean: Deploying With Gitlab CI/CD
PDF
My sql 5.6 master slave and master-master replication.step by step configurat...
PPTX
Windows Containers and Docker: Why You Should Care
PPTX
Protractor: The Hacker way (NG-MY 2019)
WAF In DevOps DevOpsFusion2019
Web Application Firewall - Friend of your DevOps Pipeline?
WinOps 2017 - Docker on Windows, the Beginner's Guide
Firebaseの運用に役立つTips5
Java App On Digital Ocean: Deploying With Gitlab CI/CD
My sql 5.6 master slave and master-master replication.step by step configurat...
Windows Containers and Docker: Why You Should Care
Protractor: The Hacker way (NG-MY 2019)

What's hot (20)

PDF
Cloud Surfing: Kubernetes on Mesos
PPTX
Techbash 2017 - Modernizing Traditional.NET Apps with Docker
PPTX
Hug #9 who's keeping your secrets
PDF
Elastic jenkins with mesos and dcos (2016 01-20)
PDF
Advanced nginx in mercari - How to handle over 1,200,000 HTTPS Reqs/Min
PDF
Meetup 23 - 01 - The things I wish I would have known before doing OpenStack ...
PPTX
Docker, OSS and Azure
PPTX
OpenStack QA Tooling & How to use it for Production Cloud Testing | Ghanshyam...
PDF
Container Security
PDF
CI / CD / CS - Continuous Security in Kubernetes
PDF
Expert Day 2019 - Introduction
PDF
There is No Server: Immutable Infrastructure and Serverless Architecture
PDF
How to setup jenkins
PDF
FIWARE Tech Summit - How To Deploy Context Broker in 10 Minutes
PDF
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
PDF
Kubernetes Summit 2018 - Kubernetes: Stateless -> Stateful
PPT
[OpenStack 하반기 스터디] HA using DVR
PPTX
Setting up MySQL Replication Cluster in Kubernetes
PDF
Docker Compose Setup for MySQL InnoDB Cluster
PDF
[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)
Cloud Surfing: Kubernetes on Mesos
Techbash 2017 - Modernizing Traditional.NET Apps with Docker
Hug #9 who's keeping your secrets
Elastic jenkins with mesos and dcos (2016 01-20)
Advanced nginx in mercari - How to handle over 1,200,000 HTTPS Reqs/Min
Meetup 23 - 01 - The things I wish I would have known before doing OpenStack ...
Docker, OSS and Azure
OpenStack QA Tooling & How to use it for Production Cloud Testing | Ghanshyam...
Container Security
CI / CD / CS - Continuous Security in Kubernetes
Expert Day 2019 - Introduction
There is No Server: Immutable Infrastructure and Serverless Architecture
How to setup jenkins
FIWARE Tech Summit - How To Deploy Context Broker in 10 Minutes
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Kubernetes Summit 2018 - Kubernetes: Stateless -> Stateful
[OpenStack 하반기 스터디] HA using DVR
Setting up MySQL Replication Cluster in Kubernetes
Docker Compose Setup for MySQL InnoDB Cluster
[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)
Ad

Recently uploaded (20)

PPT
pwm ppt .pdf long description of pwm....
PPTX
employee on boarding for jobs for freshers try it
PDF
202s5_Luciano André Deitos Koslowski.pdf
PDF
Women’s Talk Session 1- Talking about women
PPTX
Session 4 of vibale oldin sink about vola
PDF
CV of Architect Professor A F M Mohiuddin Akhand.pdf
PPTX
ChandigarhUniversityinformationcareer.pptx
PPT
444174684-Welding-Presentatiohhhn-ppt.ppt
PDF
LSR CASEBOOK 2024-25.pdf. very nice casbook
PPTX
Coordination Compuch flasks didiinds.pptx
PDF
Career Overview of John Munro of Hilton Head
PPTX
Opioid_Analgesics_Presentation (1).pptxp
DOCX
PRACTICE-TEST-12 is specially designed for those
PPTX
UNIT 1 about all the important topics that you need
PPTX
Final Second DC Messeting PPT-Pradeep.M final.pptx
PDF
Branding_RAMP-ML........................
PPTX
Unit 3 Presentation Etiquette Business and Corporate Etiquette
PDF
Shopify Store Management_ Complete Guide to E-commerce Success.pdf
PPTX
CYBER SECURITY PPT.pptx CYBER SECURITY APPLICATION AND USAGE
PPTX
STS CHAP 4 human development as reflected
pwm ppt .pdf long description of pwm....
employee on boarding for jobs for freshers try it
202s5_Luciano André Deitos Koslowski.pdf
Women’s Talk Session 1- Talking about women
Session 4 of vibale oldin sink about vola
CV of Architect Professor A F M Mohiuddin Akhand.pdf
ChandigarhUniversityinformationcareer.pptx
444174684-Welding-Presentatiohhhn-ppt.ppt
LSR CASEBOOK 2024-25.pdf. very nice casbook
Coordination Compuch flasks didiinds.pptx
Career Overview of John Munro of Hilton Head
Opioid_Analgesics_Presentation (1).pptxp
PRACTICE-TEST-12 is specially designed for those
UNIT 1 about all the important topics that you need
Final Second DC Messeting PPT-Pradeep.M final.pptx
Branding_RAMP-ML........................
Unit 3 Presentation Etiquette Business and Corporate Etiquette
Shopify Store Management_ Complete Guide to E-commerce Success.pdf
CYBER SECURITY PPT.pptx CYBER SECURITY APPLICATION AND USAGE
STS CHAP 4 human development as reflected
Ad

Np web ii-devel-installation

  • 1. 1 (7) NPWeb II Introduction to the new NPWeb Kalle Kuparinen 7/1/2013 Contents Visual Studio Setting up IIS Localhostenvironment Installing GeoServer Setting up Layers Workspaces Stores Layer
  • 2. 2 (7) Database The environment Visual Studio The versioninuse isVisual Studio2010. ASP.NETMVC 3 mustbe installed withcorrect frameworkupdatestosupportit.Youcan findMVC3 download below. http://www.asp.net/mvc/mvc3 Setting up IIS There isonlyone thingto be takenintoconsiderationwheninstallingIISto developthe NPWebII.Since the OpenLayersisjavascriptbasedyouneedto handle cross-domainpoliciessothatitwon’trestrictusage of scriptswhen connectiontoanotherserverordomain.Thisiswhy inadditiontoIISyou needtoinstall anadd-incalledURL Rewrite http://www.iis.net/downloads/microsoft/url-rewrite
  • 3. 3 (7) You needtoadd thisrule to yourDefaultWebSite inIISManager. The new rule optioncan be foundunderIISManager > DefaultWebSite > URL Rewrite. AfteropeningURLRewrite,adda new blankrule withthe datashowninthe picture above. Localhost environment You needtocreate an applicationunderDefaultWebSite inIIS Manager whichcontainsyourproject.
  • 4. 4 (7) Addingandapplicationiseasy.Youonlyneedtoprovide a name for yourapplicationandthe pathwhichcontainsthe base folderof the site.Afterthis,the projectshouldbe accessible throughhttp://localhost/name_of_your_application. Installing GeoServer The current versionthatwe are usingisGeoServer2.3.3. Installationissimple, justremembernottoinstall GeoServeras service if youare usingit fordevelopment. http://geoserver.org/display/GEOS/GeoServer+2.3.3 AfterinstallingGeoServer,youshouldbe able to accessitafter youstart it fromlocalhost:8080/geoserver/web Setting up Layers The basic layersfromPostgreSQL-database will notworkunless theyare addedtoGeoServer.Currentlywe are unable touse the GeoServerwhichislocatedinthe same serverasthe database because of cross-domainpolicyproblems. Workspaces Under Data inGeoServer,create aworkspace withfollowingdata.Make sure to enterthe exactnamespace asquoted. Name of workspace | Namespace
  • 5. 5 (7) “Oulu” | “http://www.ouka.fi/” “Kuopio” | “http://www.kuopio.fi/” “Tampere” | “http://www.tampere.fi/” Stores Storesare usedtoconnectto a database.There are currently3 databases existing,namedaslowercase lettersoulu,kuopioandtampere.Tocreate a store,selectthe Workspace youcreated,name yourstore accordingto the customerand selectthe rightdatabase. Thisis an example of connectiontoKuopiosdatabase.The connectionstringis the same for Tampere andOulu.Rememberlowercase database names.The passwordcan be askedfromemployeesof VianovaSystemsFinland. Layer To add a layer,youselectyour Workspace andStore whichyoucreatedinto that Workspace.Afterthatit shouldshow youthe available tableswhich containdata for features.Publishthosetables
  • 6. 6 (7) Remembertocompute the valuesbyclickingthe blue linksbefore publishing If you go to layerpreview,youshouldbe able tosee the GML Preview which opensa XML whichshouldshow data.If itdoesn’tshow anything,something iswrong. Database The database can be accessedthroughpgAdmin.If youneedtofiddle withthe data, youneedtodownloadthe pgAdminToolsprogram. http://www.pgadmin.org/download/windows.php Connectiontodeveloperdatabase inpgAdmin. The environment Alwaysremembertostart upyour GeoServerfromthe start menuforthe featurestodisplayonthe maps.You shouldbe
  • 7. 7 (7) now able to access http://localhost/name_of_your_application and start exploringthe wondersof NPWebII